Make 3 versions of SigCache files

The 3 versions are now:
- cfg/server/startup.bin
- cfg/client/startup.bin
- cfg/startup.bin

The last one is used by the GameSDK. Bumped header version to 6.
This commit is contained in:
Kawe Mazidjatari 2023-07-20 22:16:21 +02:00
parent 319b534d62
commit e7a4a6f161
2 changed files with 9 additions and 7 deletions

View File

@ -384,6 +384,14 @@ void CheckCPU() // Respawn's engine and our SDK utilize POPCNT, SSE3 and SSSE3 (
}
}
#if defined (DEDICATED)
#define SIGDB_FILE "cfg/server/startup.bin"
#elif defined (CLIENT_DLL)
#define SIGDB_FILE "cfg/client/startup.bin"
#else
#define SIGDB_FILE "cfg/startup.bin"
#endif
void DetourInit() // Run the sigscan
{
const bool bLogAdr = CommandLine()->CheckParm("-sig_toconsole") ? true : false;

View File

@ -7,13 +7,7 @@
#define SIGDB_DICT_SIZE 20
#define SIGDB_MAJOR_VERSION 0x2 // Increment when library changes are made.
#define SIGDB_MINOR_VERSION 0x5 // Increment when SDK updates are released.
#ifdef DEDICATED
#define SIGDB_FILE "cfg/server/startup.bin"
#else
#define SIGDB_FILE "cfg/client/startup.bin"
#endif
#define SIGDB_MINOR_VERSION 0x6 // Increment when SDK updates are released.
class CSigCache
{