Addressed string concatenation issue and added dummy method for Mac/Linux

This commit is contained in:
Tom Kidd 2021-10-02 21:21:10 -05:00
parent 3c78fe2295
commit 7533dcd00b
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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;
}