diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index 1043b9a4..8c6ce3c9 100644 --- a/code/sys/sys_unix.c +++ b/code/sys/sys_unix.c @@ -120,6 +120,18 @@ char *Sys_GogPath( void ) return gogPath; } +/* +================ +Sys_MicrosoftStorePath +================ +*/ +char* Sys_MicrosoftStorePath(void) +{ + // Microsoft Store doesn't exist on Mac/Linux + return microsoftStorePath; +} + + /* ================ Sys_Milliseconds diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c index f818bb04..bb0e49fa 100644 --- a/code/sys/sys_win32.c +++ b/code/sys/sys_win32.c @@ -232,7 +232,10 @@ Sys_MicrosoftStorePath */ char* Sys_MicrosoftStorePath(void) { - Q_strcat(microsoftStorePath, MAX_OSPATH, "C:\\Program Files\\ModifiableWindowsApps\\Quake 3\\EN"); + if (!microsoftStorePath[0]) + { + Q_strcat(microsoftStorePath, MAX_OSPATH, "C:\\Program Files\\ModifiableWindowsApps\\Quake 3\\EN"); + } return microsoftStorePath; }