Skip to content

Commit c752be2

Browse files
committed
ModApi.UpdateManager: handle empty space in path argument
1 parent 988ff66 commit c752be2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Updater/ModApi.Updater/MainWindow.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ private void MainWindow_Loaded(object sender, RoutedEventArgs e)
3030
return;
3131
}
3232

33-
string path = args[1];
33+
// trim is required here because for some reason the launcher kit
34+
// adds an empty space at the end of the installed path
35+
string path = args[1].TrimEnd();
3436

3537
bool foundLauncher = File.Exists(Path.Combine(path, "Spore ModAPI Launcher.exe"));
3638
if (foundLauncher)

0 commit comments

Comments
 (0)