- when converting to a portable install, flag the current session accordingly.

This commit is contained in:
Christoph Oelckers 2022-11-06 10:59:07 +01:00
parent 4ebcff8573
commit 5ea57a6c64

View file

@ -302,6 +302,7 @@ FString M_GetConfigPath(bool for_reading)
if (action == IDNO) if (action == IDNO)
{ {
path.Format("%s" GAMENAMELOWERCASE "_portable.ini", progdir.GetChars()); path.Format("%s" GAMENAMELOWERCASE "_portable.ini", progdir.GetChars());
isportable = true;
} }
} }
bool res = MoveFileExW(WideString(oldpath).c_str(), WideString(path).c_str(), MOVEFILE_COPY_ALLOWED); bool res = MoveFileExW(WideString(oldpath).c_str(), WideString(path).c_str(), MOVEFILE_COPY_ALLOWED);