Skip to content

Commit

Permalink
fixed bug with finding load order path for sse
Browse files Browse the repository at this point in the history
  • Loading branch information
matortheeternal committed Dec 29, 2016
1 parent 291a970 commit 0c4592d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/mpLoader.pas
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function InitBase: boolean;
if (not settings.usingMO) or (not DirectoryExists(sLoadPath)) then begin
if settings.usingMO then
Logger.Write('GENERAL', 'Load Order', 'Couldn''t find MO profile folder '+sLoadPath);
sLoadPath := GetCSIDLShellFolder(CSIDL_LOCAL_APPDATA) + wbGameName+'\';
sLoadPath := GetCSIDLShellFolder(CSIDL_LOCAL_APPDATA) + wbGameName2+'\';
end;
Logger.Write('GENERAL', 'Load Order', 'Using '+sLoadPath);

Expand Down Expand Up @@ -223,6 +223,7 @@ procedure SetGame(id: integer);
begin
ProgramStatus.GameMode := GameArray[id];
wbGameName := ProgramStatus.GameMode.gameName;
wbGameName2 := ProgramStatus.GameMode.regName;
wbGameMode := ProgramStatus.GameMode.gameMode;
wbAppName := ProgramStatus.GameMode.appName;
wbDataPath := CurrentProfile.gamePath + 'Data\';
Expand Down

0 comments on commit 0c4592d

Please sign in to comment.