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()]; [self fixMenu:[NSApp mainMenu] withAppName:getApplicationName()];
#endif #endif
if (!getenv("SRB2WADDIR")) if (!getenv("RINGRACERSWADDIR"))
setenv("SRB2WADDIR", [[[NSBundle mainBundle] resourcePath] UTF8String], 1); setenv("RINGRACERSWADDIR", [[[NSBundle mainBundle] resourcePath] UTF8String], 1);
/* Hand off to main application code */ /* Hand off to main application code */
status = SDL_main (gArgc, gArgv); status = SDL_main (gArgc, gArgv);

View file

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