[Stats]: Update Function (#995)

This commit is contained in:
Edo 2023-05-02 20:42:31 +01:00 committed by GitHub
parent 76a24d9277
commit 4c7353646c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ namespace Components
SendStats();
}
int Stats::SaveStats(char* dest, const char* folder, const char* buffer, size_t length)
int Stats::SaveStats(char* dest, const char* folder, const char* buffer, int size)
{
assert(*Game::fs_gameDirVar);
@ -74,7 +74,7 @@ namespace Components
folder = (*Game::fs_gameDirVar)->current.string;
}
return Utils::Hook::Call<int(char*, const char*, const char*, size_t)>(0x426450)(dest, folder, buffer, length);
return Utils::Hook::Call<int(char*, const char*, const char*, int)>(0x426450)(dest, folder, buffer, size);
}
void Stats::AddScriptFunctions()

View File

@ -13,7 +13,7 @@ namespace Components
static void UpdateClasses([[maybe_unused]] const UIScript::Token& token, [[maybe_unused]] const Game::uiInfo_s* info);
static void SendStats();
static int SaveStats(char* dest, const char* folder, const char* buffer, size_t length);
static int SaveStats(char* dest, const char* folder, const char* buffer, int size);
static std::int64_t* GetStatsID();