File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments