mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-09 21:54:36 +00:00
engine: server: sv_save: use new quicksave_aged_count and autosave_aged_count gameinfo.txt keys
This commit is contained in:
parent
88c560aac4
commit
d5f4b409e8
@ -35,7 +35,6 @@ half-life implementation of saverestore system
|
|||||||
|
|
||||||
#define SAVE_HEAPSIZE 0x400000 // reserve 4Mb for now
|
#define SAVE_HEAPSIZE 0x400000 // reserve 4Mb for now
|
||||||
#define SAVE_HASHSTRINGS 0xFFF // 4095 unique strings
|
#define SAVE_HASHSTRINGS 0xFFF // 4095 unique strings
|
||||||
#define SAVE_AGED_COUNT 2
|
|
||||||
|
|
||||||
// savedata headers
|
// savedata headers
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -1727,8 +1726,10 @@ static qboolean SaveGameSlot( const char *pSaveName, const char *pSaveComment )
|
|||||||
COM_FixSlashes( name );
|
COM_FixSlashes( name );
|
||||||
|
|
||||||
// output to disk
|
// output to disk
|
||||||
if( !Q_stricmp( pSaveName, "quick" ) || !Q_stricmp( pSaveName, "autosave" ))
|
if( !Q_stricmp( pSaveName, "quick" ))
|
||||||
AgeSaveList( pSaveName, SAVE_AGED_COUNT );
|
AgeSaveList( pSaveName, GI->quicksave_aged_count );
|
||||||
|
else if( !Q_stricmp( pSaveName, "autosave" ))
|
||||||
|
AgeSaveList( pSaveName, GI->autosave_aged_count );
|
||||||
|
|
||||||
// output to disk
|
// output to disk
|
||||||
if(( pFile = FS_Open( name, "wb", true )) == NULL )
|
if(( pFile = FS_Open( name, "wb", true )) == NULL )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user