Update to 1.67 (#1407)

This commit is contained in:
maybegreat48
2023-06-14 21:29:25 +00:00
committed by GitHub
parent 131544e538
commit 0ff99ececc
43 changed files with 262 additions and 486 deletions

View File

@ -75,6 +75,4 @@ namespace big
{
return nav;
}
}

View File

@ -45,6 +45,7 @@ namespace big
SETTINGS,
LUA_SCRIPTS,
CONTEXT_MENU_SETTINGS,
ESP_SETTINGS,
GTA_CACHE_SETTINGS,
GUI_SETTINGS,

View File

@ -7,7 +7,7 @@
namespace big
{
player_service::player_service() :
m_self(),
m_self(nullptr),
m_selected_player(m_dummy)
{
g_player_service = this;

View File

@ -62,7 +62,7 @@ namespace big
{
std::uint64_t args[] = {6, 27, 1}; // TODO: check args
int id = SYSTEM::START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS(RAGE_JOAAT("tuneables_processing"), (Any*)args, sizeof(args) / 8, 1424);
int id = SYSTEM::START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS(RAGE_JOAAT("tuneables_processing"), (Any*)args, sizeof(args) / 8, 5050);
if (!id)
{
@ -82,6 +82,12 @@ namespace big
{
if (SCRIPT::GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH(RAGE_JOAAT("tuneables_processing")) == 0)
{
if (m_tunables.size() == 0)
{
LOG(FATAL) << "Failed to cache tunables";
return;
}
m_script_started = false;
m_initialized = true;
LOG(INFO) << "Saving " << m_tunables.size() << " tunables to cache";