feat: add casino country restriction bypass (#1018)

This commit is contained in:
Johann 2023-02-23 07:20:04 +01:00 committed by GitHub
parent 86e37c57d5
commit 7a3c55e759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,10 @@
namespace big
{
namespace casino
{
void NETWORK_CASINO_CAN_BET(rage::scrNativeCallContext* src)
{
src->set_return_value<BOOL>(TRUE);
}
}
}

View File

@ -6,6 +6,7 @@
#include "shop_controller.hpp" #include "shop_controller.hpp"
#include "network_session_host.hpp" #include "network_session_host.hpp"
#include "am_launcher.hpp" #include "am_launcher.hpp"
#include "casino.hpp"
#include "creator.hpp" #include "creator.hpp"
#include "crossmap.hpp" #include "crossmap.hpp"
@ -143,6 +144,8 @@ namespace big
add_native_detour(RAGE_JOAAT("fm_lts_creator"), 0x3D3D8B3BE5A83D35, creator::GET_USED_CREATOR_BUDGET); add_native_detour(RAGE_JOAAT("fm_lts_creator"), 0x3D3D8B3BE5A83D35, creator::GET_USED_CREATOR_BUDGET);
add_native_detour(RAGE_JOAAT("fm_survival_creator"), 0x3D3D8B3BE5A83D35, creator::GET_USED_CREATOR_BUDGET); add_native_detour(RAGE_JOAAT("fm_survival_creator"), 0x3D3D8B3BE5A83D35, creator::GET_USED_CREATOR_BUDGET);
//bypass casino country restrictions
add_native_detour(0x158C16F5E4CF41F8, casino::NETWORK_CASINO_CAN_BET);
for (auto& entry : *g_pointers->m_script_program_table) for (auto& entry : *g_pointers->m_script_program_table)
if (entry.m_program) if (entry.m_program)