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

@ -989,7 +989,7 @@ INT32 I_GetJoystickDeviceIndex(SDL_GameController *dev)
SDL_Joystick *joystick = NULL; SDL_Joystick *joystick = NULL;
joystick = SDL_GameControllerGetJoystick(dev); joystick = SDL_GameControllerGetJoystick(dev);
if (joystick) if (joystick)
{ {
return SDL_JoystickInstanceID(joystick); return SDL_JoystickInstanceID(joystick);
@ -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