feat: add casino country restriction bypass (#1018)
This commit is contained in:
parent
86e37c57d5
commit
7a3c55e759
10
src/native_hooks/casino.hpp
Normal file
10
src/native_hooks/casino.hpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace big
|
||||||
|
{
|
||||||
|
namespace casino
|
||||||
|
{
|
||||||
|
void NETWORK_CASINO_CAN_BET(rage::scrNativeCallContext* src)
|
||||||
|
{
|
||||||
|
src->set_return_value<BOOL>(TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user