mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30:58 +00:00
- removed all code related to the -usecwd command line switch.
While feature-wise ok this was far too scattered throughout the frontends and needs to be done in a more concise way.
This commit is contained in:
parent
c342d25879
commit
0d737ee130
11 changed files with 6 additions and 84 deletions
|
@ -212,15 +212,12 @@ void G_SetupGlobalPsky(void)
|
|||
//////////
|
||||
|
||||
static char g_rootDir[BMAX_PATH];
|
||||
int g_useCwd;
|
||||
static void G_LoadAddon(void);
|
||||
int32_t g_groupFileHandle;
|
||||
struct strllist* CommandPaths, * CommandGrps;
|
||||
|
||||
void G_ExtPreInit(int32_t argc,char const * const * argv)
|
||||
{
|
||||
g_useCwd = G_CheckCmdSwitch(argc, argv, "-usecwd");
|
||||
|
||||
#ifdef _WIN32
|
||||
GetModuleFileNameA(NULL,g_rootDir,BMAX_PATH);
|
||||
Bcorrectfilename(g_rootDir,1);
|
||||
|
@ -264,11 +261,7 @@ void G_ExtInit(void)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
if (!access("user_profiles_enabled", F_OK))
|
||||
#else
|
||||
if (g_useCwd == 0 && access("user_profiles_disabled", F_OK))
|
||||
#endif
|
||||
{
|
||||
char *homedir;
|
||||
int32_t asperr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue