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:
hendricks266 2019-04-08 06:27:28 +00:00 committed by Christoph Oelckers
parent 6689bbd913
commit b6c8147842
1 changed files with 7 additions and 1 deletions

View File

@ -3475,7 +3475,7 @@ int32_t app_main(int32_t argc, char const * const * argv)
OSD_SetLogFile(APPBASENAME ".log");
{
char *supportdir = Bgetsupportdir(TRUE);
//char *supportdir = Bgetsupportdir(TRUE);
char *appdir = Bgetappdir();
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
#if 0 // [JM] ifdef'd out for now. !CHECKME!
if (supportdir)
{
Bsnprintf(dirpath, sizeof(dirpath), "%s/JFShadowWarrior", supportdir);
addsearchpath(dirpath);
free(supportdir);
}
#endif
}
// default behaviour is to write to the user profile directory, but
// creating a 'user_profiles_disabled' file in the current working
// directory where the game was launched makes the installation
// "portable" by writing into the working directory
#if 0 // [JM] ifdef'd out for now. !CHECKME!
if (access("user_profiles_disabled", F_OK) == 0)
#endif
{
char cwd[BMAX_PATH+1];
if (getcwd(cwd, sizeof(cwd)))
@ -3507,6 +3511,7 @@ int32_t app_main(int32_t argc, char const * const * argv)
addsearchpath(cwd);
}
}
#if 0 // [JM] ifdef'd out for now. !CHECKME!
else
{
char *supportdir;
@ -3541,6 +3546,7 @@ int32_t app_main(int32_t argc, char const * const * argv)
free(supportdir);
}
}
#endif
OSD_SetLogFile("sw.log");