mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: remove unused -caseinsensitive command line argument
This commit is contained in:
parent
92b72a7d33
commit
07fd4f37ef
@ -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;
|
||||
|
@ -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 ));
|
||||
|
Loading…
x
Reference in New Issue
Block a user