From b6c81478420c562ccbf90a76a9918b426bcd62f5 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 8 Apr 2019 06:27:28 +0000 Subject: [PATCH] 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 --- source/sw/src/game.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 630f93eb0..4534d5055 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -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");