diff --git a/engine/common/filesystem_engine.c b/engine/common/filesystem_engine.c index 668a44a4..74057c7e 100644 --- a/engine/common/filesystem_engine.c +++ b/engine/common/filesystem_engine.c @@ -104,22 +104,16 @@ FS_Init */ void FS_Init( void ) { - qboolean caseinsensitive = true; string gamedir; Cmd_AddRestrictedCommand( "fs_rescan", FS_Rescan_f, "rescan filesystem search pathes" ); Cmd_AddRestrictedCommand( "fs_path", FS_Path_f_, "show filesystem search pathes" ); Cmd_AddRestrictedCommand( "fs_clearpaths", FS_ClearPaths_f, "clear filesystem search pathes" ); -#if !XASH_WIN32 - if( Sys_CheckParm( "-casesensitive" ) ) - caseinsensitive = false; -#endif - if( !Sys_GetParmFromCmdLine( "-game", gamedir )) Q_strncpy( gamedir, SI.basedirName, sizeof( gamedir )); // gamedir == basedir - if( !FS_InitStdio( caseinsensitive, host.rootdir, SI.basedirName, gamedir, host.rodir )) + if( !FS_InitStdio( true, host.rootdir, SI.basedirName, gamedir, host.rodir )) { Host_Error( "Can't init filesystem_stdio!\n" ); return; diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index 9c574cac..68459917 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -55,9 +55,6 @@ searchpath_t *fs_writepath; static char fs_basedir[MAX_SYSPATH]; // base game directory static char fs_gamedir[MAX_SYSPATH]; // game current directory -#if !XASH_WIN32 -static qboolean fs_caseinsensitive = true; // try to search missing files -#endif #ifdef XASH_REDUCE_FD static file_t *fs_last_readfile; @@ -1339,9 +1336,6 @@ qboolean FS_InitStdio( qboolean caseinsensitive, const char *rootdir, const char char buf[MAX_VA_STRING]; FS_InitMemory(); -#if !XASH_WIN32 - fs_caseinsensitive = caseinsensitive; -#endif Q_strncpy( fs_rootdir, rootdir, sizeof( fs_rootdir )); Q_strncpy( fs_gamedir, gamedir, sizeof( fs_gamedir ));