[Stats]: Update Function (#995)
This commit is contained in:
parent
76a24d9277
commit
4c7353646c
@ -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()
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user