// // ClearPlatformerSavesOptionsPopup::init from 0x1400a4510 to 0x1400a4aa0 (1424 bytes) // // 5 xrefs: // > ClearPlatformerSavesPopup::onOptions @ 0x1400a3fa7 // > ClearPlatformerSavesPopup::onOptions @ 0x1400a3fae // > ClearPlatformerSavesPopup::onOptions @ 0x1400a3f98 // > @ 0x14071d218 // > @ 0x14091316c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:26:07 +0000 // // Hidden C++ exception states: #wind=4 char __fastcall ClearPlatformerSavesOptionsPopup::init(__int64 a1, __int64 a2, __int64 a3, int a4) { char result; // al __int64 v6; // rcx __int64 v7; // rax float v8; // xmm9_4 float v9; // xmm10_4 float v10; // xmm7_4 struct cocos2d::CCSprite *v11; // rax int v12; // ebx cocos2d::CCObject *v13; // rsi __int64 v14; // rdi __int64 v15; // rbx __int64 v16; // rax __int64 v17; // rax char *v18; // r13 _QWORD *v19; // rax __int64 *v20; // rsi __int64 v21; // rdi __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rax __int64 v25; // r12 __int64 v26; // rsi __int64 v27; // r14 float *v28; // rax float *v29; // rbx __int64 v30; // rax __int64 v31; // rdi unsigned __int8 GameVariable; // al cocos2d::CCMenuItem *ToggleButton; // rax __int128 *v34; // [rsp+80h] [rbp-80h] BYREF __int128 v35; // [rsp+88h] [rbp-78h] BYREF __int64 v36; // [rsp+98h] [rbp-68h] __int64 v37; // [rsp+A0h] [rbp-60h] float v38; // [rsp+A8h] [rbp-58h] BYREF float v39; // [rsp+ACh] [rbp-54h] _BYTE v40[8]; // [rsp+B0h] [rbp-50h] BYREF __int128 v41; // [rsp+B8h] [rbp-48h] BYREF __int64 v42; // [rsp+C8h] [rbp-38h] __int64 v43; // [rsp+D0h] [rbp-30h] __int128 *v44; // [rsp+D8h] [rbp-28h] void *v45; // [rsp+E0h] [rbp-20h] _BYTE v46[8]; // [rsp+E8h] [rbp-18h] BYREF _BYTE v47[8]; // [rsp+F0h] [rbp-10h] BYREF __int128 v48; // [rsp+F8h] [rbp-8h] __int64 v49; // [rsp+108h] [rbp+8h] __int64 v50; // [rsp+110h] [rbp+10h] result = SetupTriggerPopup::init(a1, 0, 0, a4, 1120403456, 1, 0); if ( result ) { v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v38); v8 = v38 * 0.5; v9 = v39 * 0.5; v10 = (float)(v39 * 0.5) + 50.0; v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v12 = (int)v11; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 160LL))(v11); v13 = CCMenuItemSpriteExtra::create(v12, 0, a1, (__int64)sub_14009D628); *((_DWORD *)v13 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13); v14 = *(_QWORD *)v13; v15 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (float)(v8 - 120.0) + 8.0, v10 - 12.0); cocos2d::CCNode::convertToNodeSpace(v15, &v34, v16); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v14 + 184))(v13, v17); v48 = 0; v18 = (char *)sub_14003D460(0xC0u); *(_QWORD *)&v48 = v18; v49 = 184; v50 = 191; strcpy( v18, "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"); v34 = &v41; v41 = 0; v42 = 0; v43 = 0; v19 = sub_14003D460(0xC0u); *(_QWORD *)&v41 = v19; v42 = 184; v43 = 191; *(_OWORD *)v19 = *(_OWORD *)v18; *((_OWORD *)v19 + 1) = *((_OWORD *)v18 + 1); *((_OWORD *)v19 + 2) = *((_OWORD *)v18 + 2); *((_OWORD *)v19 + 3) = *((_OWORD *)v18 + 3); *((_OWORD *)v19 + 4) = *((_OWORD *)v18 + 4); *((_OWORD *)v19 + 5) = *((_OWORD *)v18 + 5); *((_OWORD *)v19 + 6) = *((_OWORD *)v18 + 6); *((_OWORD *)v19 + 7) = *((_OWORD *)v18 + 7); *((_OWORD *)v19 + 8) = *((_OWORD *)v18 + 8); *((_OWORD *)v19 + 9) = *((_OWORD *)v18 + 9); *((_OWORD *)v19 + 10) = *((_OWORD *)v18 + 10); v19[22] = *((_QWORD *)v18 + 22); *((_BYTE *)v19 + 184) = v18[184]; v36 = 12; v37 = 15; strcpy((char *)&v35, "Backup Saves"); BYTE13(v35) = 0; HIWORD(v35) = 0; v20 = (__int64 *)InfoAlertButton::create(&v35, &v41); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v20); v21 = *v20; v22 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, (float)(v8 + 120.0) - 16.0, v10 - 16.0); cocos2d::CCNode::convertToNodeSpace(v22, v40, v23); (*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v20, v24); v44 = &v35; v35 = 0; v36 = 0; v37 = 0; *(_QWORD *)&v35 = sub_14003D460(0x20u); v36 = 27; v37 = 31; strcpy((char *)v35, "No favorite saves\nin backup"); v25 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v45 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v45); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v25 = qword_14090BFD0; } v26 = *(_QWORD *)(a1 + 584); v27 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 8.0, 0.0); v29 = v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v8 - 68.0, v9); v31 = v30; GameVariable = GameManager::getGameVariable(v25, "0237"); ToggleButton = GameToolbox::createToggleButton( (const char *)&v35, (__int64)ClearPlatformerSavesOptionsPopup::onBackupToggle, GameVariable, v27, v31, a1, v26, 0.80000001, 0.5, 130.0, v29, (const char *)&qword_140704F78, 0, 0, nullptr); *(_QWORD *)(a1 + 1000) = ToggleButton; *(_DWORD *)(*((_QWORD *)ToggleButton + 47) + 372LL) = 1065353216; *(_DWORD *)(*((_QWORD *)ToggleButton + 48) + 372LL) = 1065353216; CCMenuItemToggler::toggle((__int64)ToggleButton, *((unsigned __int8 *)ToggleButton + 392)); j_j_free(v18); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source