core: change SRB2WADDIR var to RINGRACERSWADDIR

This commit is contained in:
Eidolon 2023-01-04 19:36:33 -06:00
parent d53efbdace
commit 4522b4953e
2 changed files with 6 additions and 6 deletions

View file

@ -287,8 +287,8 @@ static void CustomApplicationMain (int argc, char **argv)
[self fixMenu:[NSApp mainMenu] withAppName:getApplicationName()];
#endif
if (!getenv("SRB2WADDIR"))
setenv("SRB2WADDIR", [[[NSBundle mainBundle] resourcePath] UTF8String], 1);
if (!getenv("RINGRACERSWADDIR"))
setenv("RINGRACERSWADDIR", [[[NSBundle mainBundle] resourcePath] UTF8String], 1);
/* Hand off to main application code */
status = SDL_main (gArgc, gArgv);

View file

@ -2242,9 +2242,9 @@ static const char *locateWad(void)
const char *envstr;
const char *WadPath;
I_OutputMsg("SRB2WADDIR");
// does SRB2WADDIR exist?
if (((envstr = I_GetEnv("SRB2WADDIR")) != NULL) && isWadPathOk(envstr))
I_OutputMsg("RINGRACERSWADDIR");
// does RINGRACERSWADDIR exist?
if (((envstr = I_GetEnv("RINGRACERSWADDIR")) != NULL) && isWadPathOk(envstr))
return envstr;
#ifndef NOCWD