Bug fixes

This commit is contained in:
strongleong 2022-02-16 19:52:38 +11:00
parent 25c3fd0425
commit deffd05581
2 changed files with 3 additions and 2 deletions

View File

@ -181,7 +181,7 @@ namespace ScrapModLoader
String gamePath = modsLauncher.SelectedGameVersion == "1.0" ?
modsLauncher.ScraplandPath : modsLauncher.ScraplandRemasteredPath;
Process.Start(Path.Combine(gamePath, @"\bin\Scrap.exe"), args);
Process.Start(Path.Combine(gamePath, @"bin\Scrap.exe"), args);
if (CloseLauncher.IsChecked ?? false)
Close();

View File

@ -114,7 +114,8 @@ namespace ScrapModLoader
}
}
private String ModPath(ScrapMod mod) => Path.Combine(SelectedGamePath, "Mod", mod.Name);
private String ModPath(ScrapMod mod) =>
Path.Combine(SelectedGamePath, "Mods", mod.Name);
public Boolean IsLoaded(ScrapMod mod) =>
Directory.Exists(ModPath(mod));