mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-21 15:32:34 +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()];
|
[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);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue