--no-admin and fix migoto setting

This commit is contained in:
SpikeHD
2022-09-18 17:54:05 -07:00
parent c4526e2ff6
commit e75f65ab56
3 changed files with 5 additions and 5 deletions

View File

@@ -115,7 +115,7 @@ pub fn set_migoto_target(path: String, migoto_path: String) -> bool {
// Set options
conf
.with_section(Some("Loader"))
.set("target", pathbuf.to_str().unwrap());
.set("target", pathbuf.file_name().unwrap().to_str().unwrap());
// Write file
match conf.write_to_file(&migoto_pathbuf) {