Modified MS Store path handling to better follow the pattern of Steam/GOG

This commit is contained in:
Tom Kidd 2021-10-22 11:28:55 -05:00
parent 294eeb3c1c
commit 3afe37a896
2 changed files with 3 additions and 0 deletions

View file

@ -51,6 +51,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define STEAMPATH_NAME "Quake 3 Arena" #define STEAMPATH_NAME "Quake 3 Arena"
#define STEAMPATH_APPID "2200" #define STEAMPATH_APPID "2200"
#define GOGPATH_ID "1441704920" #define GOGPATH_ID "1441704920"
#define MSSTORE_PATH "Quake 3"
#define GAMENAME_FOR_MASTER "Quake3Arena" #define GAMENAME_FOR_MASTER "Quake3Arena"
#define CINEMATICS_LOGO "idlogo.RoQ" #define CINEMATICS_LOGO "idlogo.RoQ"
#define CINEMATICS_INTRO "intro.RoQ" #define CINEMATICS_INTRO "intro.RoQ"

View file

@ -232,10 +232,12 @@ Sys_MicrosoftStorePath
*/ */
char* Sys_MicrosoftStorePath(void) char* Sys_MicrosoftStorePath(void)
{ {
#ifdef MSSTORE_PATH
if (!microsoftStorePath[0]) if (!microsoftStorePath[0])
{ {
Q_strcat(microsoftStorePath, MAX_OSPATH, "C:\\Program Files\\ModifiableWindowsApps\\Quake 3\\EN"); Q_strcat(microsoftStorePath, MAX_OSPATH, "C:\\Program Files\\ModifiableWindowsApps\\Quake 3\\EN");
} }
#endif
return microsoftStorePath; return microsoftStorePath;
} }