mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: apply caseinsensitivity to file creation
Replace fs_writedir with fs_writepath, exposing current writeable searchpath. Fix caseinsensitive FS_Search Remove unused argument from listdirectory() Minor optimizations and refactoring
This commit is contained in:
@@ -42,14 +42,14 @@ static inline qboolean IsIdGamedir( const char *id )
|
||||
!Q_strcmp( id, "GAMEDOWNLOAD" );
|
||||
}
|
||||
|
||||
static inline const char* IdToDir( const char *id )
|
||||
static inline const char *IdToDir( const char *id )
|
||||
{
|
||||
if( !Q_strcmp( id, "GAME" ))
|
||||
return GI->gamefolder;
|
||||
else if( !Q_strcmp( id, "GAMEDOWNLOAD" ))
|
||||
return va( "%s/downloaded", GI->gamefolder );
|
||||
else if( !Q_strcmp( id, "GAMECONFIG" ))
|
||||
return fs_writedir; // full path here so it's totally our write allowed directory
|
||||
return fs_writepath->filename; // full path here so it's totally our write allowed directory
|
||||
else if( !Q_strcmp( id, "PLATFORM" ))
|
||||
return "platform"; // stub
|
||||
else if( !Q_strcmp( id, "CONFIG" ))
|
||||
|
||||
Reference in New Issue
Block a user