// // sub_10002A588 from 0x10002a588 to 0x10002a688 (256 bytes) // // 2 xrefs: // > LevelInfoLayer::onPlay @ 0x100029d7c // > LevelInfoLayer::init @ 0x10002843c // // 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 10:57:28 +0000 // _BYTE *__fastcall sub_10002A588(_BYTE *result) { _BYTE *v1; // x19 __int64 v2; // x0 __int64 v3; // x0 __int64 v4; // x20 __int64 Music; // x0 int v6; // w20 __int64 v7; // x0 void *v8; // x0 void *__p[2]; // [xsp+8h] [xbp-28h] BYREF char v10; // [xsp+1Fh] [xbp-11h] if ( (result[488] & 1) == 0 ) { v1 = result; if ( result[645] == 1 ) { result = (_BYTE *)cocos2d::CCDirector::sharedDirector(result); if ( (result[176] & 1) == 0 ) { if ( (unsigned int)LevelInfoLayer::shouldDownloadLevel(v1) ) { return (_BYTE *)LevelInfoLayer::downloadLevel(v1); } else { v2 = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v1 + 1072LL))(v1, 0); v1[488] = 1; v3 = GameManager::sharedState(v2); *(_DWORD *)(v3 + 708) = 3; v4 = FMODAudioEngine::sharedEngine(v3); GJGameLevel::getAudioFileName(__p, *((_QWORD *)v1 + 63)); Music = FMODAudioEngine::loadMusic(v4, __p, 1, 0, 0, 0, 1.0, 0.0, 1.0); if ( v10 < 0 ) operator delete(__p[0]); v6 = cocos2d::CCDirector::sharedDirector(Music); v7 = LevelEditorLayer::scene(*((_QWORD *)v1 + 63), 0); v8 = (void *)cocos2d::CCTransitionFade::create_1(v7, 0.5); return (_BYTE *)cocos2d::CCDirector::replaceScene(v6, v8); } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source