// // EndLevelLayer::onMenu from 0x5352e4 to 0x5353a0 (188 bytes) // // 2 xrefs: // > EndLevelLayer::keyBackClicked @ 0x5353ae // > EndLevelLayer::keyDown @ 0x5353ee // // 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:52:06 +0000 // int __fastcall EndLevelLayer::onMenu(int this, cocos2d::CCObject *a2) { int v2; // r4 int v3; // r3 int v4; // r3 FMODAudioEngine *v5; // r0 FMODAudioEngine *v6; // r4 GameManager *v7; // r0 int v8[3]; // [sp+8h] [bp-10h] BYREF v2 = this; if ( !*(_BYTE *)(this + 487) ) { *(_BYTE *)(this + 487) = 1; v3 = *(_DWORD *)(this + 480); if ( *(_BYTE *)(v3 + 12104) || *(_BYTE *)(this + 488) || *(int *)(v3 + 12108) > 0 || *(int *)(v3 + 12112) > 0 ) { v7 = (GameManager *)GameManager::sharedState((GameManager *)this); GameManager::doQuickSave(v7); } PlayLayer::onQuit(*(GJGameLevel ***)(v2 + 480)); v4 = *(_DWORD *)v2; *(_DWORD *)(v2 + 480) = 0; v5 = (FMODAudioEngine *)(*(int (__fastcall **)(int, _DWORD))(v4 + 660))(v2, 0); memset(v8, 0, sizeof(v8)); v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v5); std::string::__init(v8, "quitSound_01.ogg", 0x10u); FMODAudioEngine::playEffect(v6, (int)v8, 1065353216, 0, 1060320051); return std::string::~string((int)v8); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source