// // GameSettingsLayer::onCustomButton from 0xc05408 to 0xc05588 (384 bytes) // // 2 xrefs: // > @ 0x4a080 // > @ 0x14e3690 // // This function is hookable on this platform (idp: arm, 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 13:03:51 +0000 // __int64 __fastcall GameSettingsLayer::onCustomButton(GameSettingsLayer *this, cocos2d::CCObject *a2) { GJKeybindManager *v3; // x0 __int64 v5; // x0 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x21 __int64 v8; // x0 __int64 v9; // x0 GameSettingsLayer *v10; // x1 __int64 v11; // x0 __int64 v12[2]; // [xsp+30h] [xbp+30h] BYREF void *v13; // [xsp+40h] [xbp+40h] v3 = (GJKeybindManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); switch ( (_DWORD)v3 ) { case 0xFFFFFC15: if ( *(_BYTE *)(GJKeybindManager::sharedState(v3) + 184) ) { v12[0] = 0; v12[1] = 0; v13 = nullptr; std::string::__init( v12, "You cannot edit Global Controls while Custom Level Controls are active.", 0x57u); v9 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Keybinds", (char *)v12, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); if ( (v12[0] & 1) != 0 ) operator delete(v13); } else { GameSettingsLayer::toggleVisibility(this, 0); v11 = KeybindingsLayer::create(this, v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11); } break; case 0xFFFFFC17: v6 = (cocos2d::CCDirector *)GJSongBrowser::create(v3); *((_QWORD *)v6 + 74) = (char *)this + 1088; v7 = v6; v8 = cocos2d::CCDirector::sharedDirector(v6); (*(void (__fastcall **)(_QWORD, cocos2d::CCDirector *, __int64))(**(_QWORD **)(v8 + 272) + 464LL))( *(_QWORD *)(v8 + 272), v7, 106); (*(void (__fastcall **)(cocos2d::CCDirector *, _QWORD))(*(_QWORD *)v7 + 1328LL))(v7, 0); break; case 0xFFFFFC14: v5 = ClearPlatformerSavesPopup::create(v3); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5); break; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source