Windows NT and Linux being both multi-user system, the homepath now defaults to %APPDATA%\openmohaa (Windows NT) and ~/openmohaa (unix)

This commit is contained in:
smallmodel 2023-08-25 22:58:55 +02:00
parent 78b3ad8075
commit 15860a7795
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -3451,8 +3451,7 @@ static void FS_Startup(const char* gameName)
fs_debug = Cvar_Get( "fs_debug", "0", 0 );
fs_basepath = Cvar_Get("fs_basepath", Sys_DefaultInstallPath(), CVAR_INIT | CVAR_PROTECTED);
fs_basegame = Cvar_Get ("fs_basegame", "", CVAR_INIT );
//homePath = Sys_DefaultHomePath();
homePath = "";
homePath = Sys_DefaultHomePath();
if (!homePath || !homePath[0]) {
homePath = fs_basepath->string;
}