mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-21 07:22:33 +00:00
core: change SRB2WADDIR var to RINGRACERSWADDIR
This commit is contained in:
parent
d53efbdace
commit
4522b4953e
2 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue