filesystem: hold mode fix

This commit is contained in:
Crow-bar
2022-04-10 21:34:43 +03:00
parent a308ce2f48
commit e7e10ac8b9
2 changed files with 11 additions and 11 deletions
+8 -9
View File
@@ -2387,19 +2387,13 @@ static file_t *FS_SysOpen( const char *filepath, const char *mode )
int mod, opt;
uint ind;
#if XASH_PSP
#ifdef XASH_REDUCE_FD
qboolean backup_hold = false;
// Hold file in open state
if( mode[0] == '*' )
{
backup_hold = true;
mode++;
}
#endif
// Parse the mode string
switch( mode[0] )
{
case 'r': // read
case 'r': // read
mod = PSP_O_RDONLY;
opt = 0;
break;
@@ -2428,6 +2422,11 @@ static file_t *FS_SysOpen( const char *filepath, const char *mode )
break;
case 'b': // not used
break;
#ifdef XASH_REDUCE_FD
case 'h': // hold
backup_hold = true;
break;
#endif
default:
break;
}