mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
SW: #ifdef'd out supportdir and user_profiles_disabled stuff for now.
Patch from Striker. git-svn-id: https://svn.eduke32.com/eduke32@7522 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6689bbd913
commit
b6c8147842
1 changed files with 7 additions and 1 deletions
|
@ -3475,7 +3475,7 @@ int32_t app_main(int32_t argc, char const * const * argv)
|
||||||
OSD_SetLogFile(APPBASENAME ".log");
|
OSD_SetLogFile(APPBASENAME ".log");
|
||||||
|
|
||||||
{
|
{
|
||||||
char *supportdir = Bgetsupportdir(TRUE);
|
//char *supportdir = Bgetsupportdir(TRUE);
|
||||||
char *appdir = Bgetappdir();
|
char *appdir = Bgetappdir();
|
||||||
char dirpath[BMAX_PATH+1];
|
char dirpath[BMAX_PATH+1];
|
||||||
|
|
||||||
|
@ -3487,19 +3487,23 @@ int32_t app_main(int32_t argc, char const * const * argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
// the global support files directory
|
// the global support files directory
|
||||||
|
#if 0 // [JM] ifdef'd out for now. !CHECKME!
|
||||||
if (supportdir)
|
if (supportdir)
|
||||||
{
|
{
|
||||||
Bsnprintf(dirpath, sizeof(dirpath), "%s/JFShadowWarrior", supportdir);
|
Bsnprintf(dirpath, sizeof(dirpath), "%s/JFShadowWarrior", supportdir);
|
||||||
addsearchpath(dirpath);
|
addsearchpath(dirpath);
|
||||||
free(supportdir);
|
free(supportdir);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// default behaviour is to write to the user profile directory, but
|
// default behaviour is to write to the user profile directory, but
|
||||||
// creating a 'user_profiles_disabled' file in the current working
|
// creating a 'user_profiles_disabled' file in the current working
|
||||||
// directory where the game was launched makes the installation
|
// directory where the game was launched makes the installation
|
||||||
// "portable" by writing into the working directory
|
// "portable" by writing into the working directory
|
||||||
|
#if 0 // [JM] ifdef'd out for now. !CHECKME!
|
||||||
if (access("user_profiles_disabled", F_OK) == 0)
|
if (access("user_profiles_disabled", F_OK) == 0)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
char cwd[BMAX_PATH+1];
|
char cwd[BMAX_PATH+1];
|
||||||
if (getcwd(cwd, sizeof(cwd)))
|
if (getcwd(cwd, sizeof(cwd)))
|
||||||
|
@ -3507,6 +3511,7 @@ int32_t app_main(int32_t argc, char const * const * argv)
|
||||||
addsearchpath(cwd);
|
addsearchpath(cwd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if 0 // [JM] ifdef'd out for now. !CHECKME!
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *supportdir;
|
char *supportdir;
|
||||||
|
@ -3541,6 +3546,7 @@ int32_t app_main(int32_t argc, char const * const * argv)
|
||||||
free(supportdir);
|
free(supportdir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
OSD_SetLogFile("sw.log");
|
OSD_SetLogFile("sw.log");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue