//
// PlatformerControlsPopup::onApplyCreator from 0x79e024 to 0x79e116 (242 bytes)
//
// 0 xrefs:
//
// 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:59:51 +0000
//
int __fastcall PlatformerControlsPopup::onApplyCreator(int this, cocos2d::CCObject *a2)
{
int v2; // r5
PlatformerControlsPopup *v3; // r4
unsigned int v4; // r3
cocos2d::CCObject *v5; // r0
int *v6; // r0
int v7; // r3
void (__fastcall *v8)(PlatformerControlsPopup *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v9; // r0
int v10[3]; // [sp+Ch] [bp-20h] BYREF
int v11[3]; // [sp+18h] [bp-14h] BYREF
v2 = *(_DWORD *)(this + 728);
v3 = (PlatformerControlsPopup *)this;
if ( v2 )
{
v4 = *(unsigned __int8 *)(v2 + 1328);
if ( (v4 & 1) != 0 )
{
if ( !*(_DWORD *)(v2 + 1332) )
return this;
}
else if ( !(v4 >> 1) )
{
return this;
}
std::string::operator=((unsigned __int8 *)(v2 + 1344), (unsigned __int8 *)(v2 + 1328));
*(_BYTE *)(v2 + 1360) = 0;
*(_DWORD *)(v2 + 1356) = 1;
v5 = *((cocos2d::CCObject **)v3 + 184);
if ( v5 )
{
cocos2d::CCObject::release(v5);
*((_DWORD *)v3 + 184) = 0;
}
v6 = LevelControlConfig::createFromB64((LevelControlConfig *)(*((_DWORD *)v3 + 182) + 1344));
*((_DWORD *)v3 + 213) = LevelControlConfig::presentClasses((LevelControlConfig *)v6);
PlatformerControlsPopup::syncSourceUI(v3);
PlatformerControlsPopup::reapplyRuntime(v3);
v7 = *(_DWORD *)v3;
memset(v10, 0, sizeof(v10));
v8 = *(void (__fastcall **)(PlatformerControlsPopup *, cocos2d::CCNode *, int))(v7 + 232);
std::string::__init(v10, "Creator controls applied", 0x18u);
memset(v11, 0, sizeof(v11));
std::string::__init(v11, &unk_B6B226, 0);
v9 = TextAlertPopup::create((int)v10, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v11);
v8(v3, v9, 100);
std::string::~string((int)v11);
return std::string::~string((int)v10);
}
return this;
}