Browse Source

engine: remove unused -caseinsensitive command line argument

pull/2/head
Alibek Omarov 2 years ago
parent
commit
07fd4f37ef
  1. 8
      engine/common/filesystem_engine.c
  2. 6
      filesystem/filesystem.c

8
engine/common/filesystem_engine.c

@ -104,22 +104,16 @@ FS_Init @@ -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;

6
filesystem/filesystem.c

@ -55,9 +55,6 @@ searchpath_t *fs_writepath; @@ -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 @@ -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 ));

Loading…
Cancel
Save