// // ClearPlatformerSavesOptionsPopup::init from 0x761acc to 0x761d48 (636 bytes) // // 1 xrefs: // > ClearPlatformerSavesOptionsPopup::create @ 0x761818 // // 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:04 +0000 // GameManager *__fastcall ClearPlatformerSavesOptionsPopup::init(CCMenuItemToggler **this) { GameManager *v2; // r0 GameManager *v3; // r9 const char *v4; // r1 float v5; // s18 float v6; // s19 int v7; // r5 int v8; // r7 const cocos2d::CCPoint *v9; // r10 void (__fastcall *v10)(int, const char *(__fastcall **)(ClearPlatformerSavesOptionsPopup *, cocos2d::CCObject *)); // r8 int v11; // r11 const cocos2d::CCPoint *v12; // r10 void (__fastcall *v13)(int, const char *(__fastcall **)(ClearPlatformerSavesOptionsPopup *, cocos2d::CCObject *)); // r8 GameManager *v14; // r0 GameManager *v15; // r0 int GameVariable; // r11 const cocos2d::CCPoint *v18; // [sp+34h] [bp-70h] int v19; // [sp+38h] [bp-6Ch] float v20[2]; // [sp+44h] [bp-60h] BYREF _BYTE v21[8]; // [sp+4Ch] [bp-58h] BYREF _BYTE v22[8]; // [sp+54h] [bp-50h] BYREF int v23; // [sp+5Ch] [bp-48h] int v24; // [sp+60h] [bp-44h] const char *(__fastcall *v25)(ClearPlatformerSavesOptionsPopup *, cocos2d::CCObject *); // [sp+64h] [bp-40h] BYREF int v26; // [sp+68h] [bp-3Ch] int v27[3]; // [sp+6Ch] [bp-38h] BYREF int v28[3]; // [sp+78h] [bp-2Ch] BYREF int v29[3]; // [sp+84h] [bp-20h] BYREF int v30[3]; // [sp+90h] [bp-14h] BYREF v2 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 240.0, 100.0, (_BYTE *)&dword_0 + 1, 0.0); v3 = v2; if ( v2 ) { cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20); v5 = v20[0] * 0.5; v6 = v20[1] * 0.5; v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v4); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1061997773); v23 = 684; v24 = 1; v8 = CCMenuItemSpriteExtra::create(v7, 0, (int)this, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v8, 1.5); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v8); v9 = *(this + 111); v10 = *(void (__fastcall **)(int, const char *(__fastcall **)(ClearPlatformerSavesOptionsPopup *, cocos2d::CCObject *)))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, (float)(v5 - 120.0) + 8.0, (float)(v6 + 50.0) - 12.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v25, v9); v10(v8, &v25); memset(v27, 0, sizeof(v27)); std::string::__init( v27, "By default, online backup keeps platformer saves only for favorite levels.\n" "Enable this to exclude those too, so no platformer saves are backed up.\n" "\n" "Default: Off", 0xB8u); memset(v28, 0, sizeof(v28)); std::string::__init(v28, "Backup Saves", 0xCu); std::string::basic_string(v29, (int)v27); v11 = InfoAlertButton::create((char *)v28, (int)v29, 1061997773); std::string::~string((int)v29); std::string::~string((int)v28); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v11); v12 = *(this + 111); v13 = *(void (__fastcall **)(int, const char *(__fastcall **)(ClearPlatformerSavesOptionsPopup *, cocos2d::CCObject *)))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, (float)(v5 + 120.0) - 16.0, (float)(v6 + 50.0) - 16.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v25, v12); v13(v11, &v25); memset(v30, 0, sizeof(v30)); v14 = (GameManager *)std::string::__init(v30, "No favorite saves\nin backup", 0x1Bu); v26 = 0; v25 = ClearPlatformerSavesOptionsPopup::onBackupToggle; v15 = (GameManager *)GameManager::sharedState(v14); GameVariable = GameManager::getGameVariable(v15, "0237"); v18 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v5 - 68.0, v6); v19 = (int)*(this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 8.0, 0.0); *(this + 178) = GameToolbox::createToggleButton( (int)v30, (int)v25, v26, GameVariable, v18, (int)v21, (int)this, v19, 0.8, 0.5, 130.0, (int)v22, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)v30); CCMenuItemToggler::setSizeMult(*(this + 178), 1.0); std::string::~string((int)v27); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source