// // EndLevelLayer::onReplay from 0x1004c1e60 to 0x1004c1f3b (219 bytes) // // 3 xrefs: // > EndLevelLayer::keyDown @ 0x1004c3975 // > sub_1004C3990 @ 0x1004c39bc // > EndLevelLayer::customSetup @ 0x1004c0f05 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall EndLevelLayer::onReplay(EndLevelLayer *a1, cocos2d::CCObject *a2) { GameManager *v2; // rax FMODAudioEngine *v3; // rax FMODAudioEngine *v4; // rax void *v5[4]; // [rsp+0h] [rbp-20h] BYREF if ( !a1->m_exiting ) { a1->m_exiting = 1; v2 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v2, "0024") ) PlatformToolbox::hideCursor(); v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::clearAllAudio(v3); v4 = FMODAudioEngine::sharedEngine(); strcpy((char *)v5, " playSound_01.ogg"); FMODAudioEngine::playEffect((__int64)v4, (__int64)v5, (__m128)0x3F800000u, 0.0, 0.30000001); if ( ((__int64)v5[0] & 1) != 0 ) operator delete(v5[2]); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->exitLayer)(a1, 0); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setTouchEnabled)(a1, 0); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setKeyboardEnabled)(a1, 0); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); PlayLayer::delayedFullReset(a1->m_playLayer); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source