mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Don't change the CWD to the eduke32.exe directory on Windows. EDuke32 now searches the CWD for data files on all platforms.
git-svn-id: https://svn.eduke32.com/eduke32@1553 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
44575d7e2c
commit
1a1ba2b0b1
2 changed files with 2 additions and 2 deletions
|
@ -8576,7 +8576,7 @@ int32_t ExtPreInit(int32_t argc,const char **argv)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
tempbuf[GetModuleFileName(NULL,tempbuf,BMAX_PATH)] = 0;
|
tempbuf[GetModuleFileName(NULL,tempbuf,BMAX_PATH)] = 0;
|
||||||
Bcorrectfilename(tempbuf,1);
|
Bcorrectfilename(tempbuf,1);
|
||||||
chdir(tempbuf);
|
//chdir(tempbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
OSD_SetLogFile("mapster32.log");
|
OSD_SetLogFile("mapster32.log");
|
||||||
|
|
|
@ -10773,7 +10773,7 @@ void app_main(int32_t argc,const char **argv)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
tempbuf[GetModuleFileName(NULL,root,BMAX_PATH)] = 0;
|
tempbuf[GetModuleFileName(NULL,root,BMAX_PATH)] = 0;
|
||||||
Bcorrectfilename(root,1);
|
Bcorrectfilename(root,1);
|
||||||
chdir(root);
|
//chdir(root);
|
||||||
#else
|
#else
|
||||||
getcwd(root,BMAX_PATH);
|
getcwd(root,BMAX_PATH);
|
||||||
strcat(root,"/");
|
strcat(root,"/");
|
||||||
|
|
Loading…
Reference in a new issue