Skip to content

Commit 9069f95

Browse files
committed
Spore ModAPI Launcher: use Path.Combine() in more places
1 parent 3f1431b commit 9069f95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Spore ModAPI Launcher/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void Execute()
7878
SporebinPath = PathDialogs.ProcessGalacticAdventures();
7979

8080
// use the default path for now (we might have to use a different one for Origin)
81-
this.ExecutablePath = this.SporebinPath + "SporeApp.exe";
81+
this.ExecutablePath = Path.Combine(this.SporebinPath, "SporeApp.exe");
8282
this.ProcessExecutableType();
8383

8484
if (this._executableType == GameVersionType.None)
@@ -88,7 +88,7 @@ void Execute()
8888
}
8989

9090
// get the correct executable path
91-
this.ExecutablePath = this.SporebinPath + GameVersion.ExecutableNames[(int)this._executableType];
91+
this.ExecutablePath = Path.Combine(this.SporebinPath, GameVersion.ExecutableNames[(int)this._executableType]);
9292
if (!File.Exists(this.ExecutablePath))
9393
{
9494
// the file might only not exist in Origin (since Origin users will use a different executable compatible with ModAPI)
@@ -107,7 +107,7 @@ void Execute()
107107

108108

109109
// we must also check if the steam_api.dll doesn't exist (it's required for Origin users)
110-
if (GameVersion.RequiresModAPIFix(this._executableType) && !File.Exists(this.SporebinPath + "steam_api.dll"))
110+
if (GameVersion.RequiresModAPIFix(this._executableType) && !File.Exists(Path.Combine(this.SporebinPath, "steam_api.dll")))
111111
{
112112
if (!HandleOriginUsers())
113113
{

0 commit comments

Comments
 (0)