Bump sigcache version to 2.8 and rename methods

Bump version and rename CSigCache::LoadCache to CSigCache::ReacCache.
This commit is contained in:
Kawe Mazidjatari 2023-10-15 16:29:26 +02:00
parent 9c4fb57fa7
commit 967aa0dfd4
3 changed files with 4 additions and 4 deletions

View File

@ -402,7 +402,7 @@ void DetourInit() // Run the sigscan
bool bInitDivider = false;
g_SigCache.SetDisabled(bNoSmap);
g_SigCache.LoadCache(SIGDB_FILE);
g_SigCache.ReadCache(SIGDB_FILE);
// No debug logging in non dev builds.
const bool bDevMode = !IsCert() && !IsRetail();

View File

@ -7,7 +7,7 @@
#define SIGDB_DICT_SIZE 20
#define SIGDB_MAJOR_VERSION 0x2 // Increment when library changes are made.
#define SIGDB_MINOR_VERSION 0x7 // Increment when SDK updates are released.
#define SIGDB_MINOR_VERSION 0x8 // Increment when SDK updates are released.
class CSigCache
{
@ -23,7 +23,7 @@ public:
void AddEntry(const char* szPattern, const uint64_t nRVA);
bool FindEntry(const char* szPattern, uint64_t& nRVA);
bool LoadCache(const char* szCacheFile);
bool ReadCache(const char* szCacheFile);
bool WriteCache(const char* szCacheFile) const;
private:

View File

@ -83,7 +83,7 @@ bool CSigCache::FindEntry(const char* szPattern, uint64_t& nRVA)
// Purpose: loads the cache map from the disk
// Output : true on success, false otherwise
//-----------------------------------------------------------------------------
bool CSigCache::LoadCache(const char* szCacheFile)
bool CSigCache::ReadCache(const char* szCacheFile)
{
Assert(!m_bInitialized); // Recursive load.