//
// ThreadOpenHelper::showRulesOnce from 0x74b748 to 0x74b7ca (130 bytes)
//
// 2 xrefs:
// > MessageThreadsPage::show @ 0x74b830
// > NewThreadPopup::show @ 0x74b880
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:58:46 +0000
//
int __fastcall ThreadOpenHelper::showRulesOnce(ThreadOpenHelper *this)
{
GameManager *v1; // r0
int result; // r0
GameManager *v3; // r0
int *v4; // r0
int v5[3]; // [sp+8h] [bp-10h] BYREF
v1 = (GameManager *)GameManager::sharedState(this);
result = GameManager::getGameVariable(v1, "0246");
if ( !result )
{
v3 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::setGameVariable(v3, "0246", (_BYTE *)&dword_0 + 1);
memset(v5, 0, sizeof(v5));
std::string::__init(
v5,
"1. Do not harass, threaten, or bully other players.\n"
"2. Do not share personal info such as your address, passwords, or contact details.\n"
"3. Do not spam, scam, or send inappropriate content.\n"
"4. Do not try to bypass filters or safety systems.\n"
"Messages are filtered automatically and may be reviewed when reported or flagged for safety.\n"
"Report or Block users who break these rules.",
0x1A8u);
v4 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Messaging Rules",
(int)v5,
(ButtonSprite *)"OK",
nullptr,
380.0);
(*(void (__fastcall **)(int *))(*v4 + 656))(v4);
return std::string::~string((int)v5);
}
return result;
}