// // LevelAreaInnerLayer::playStep1 from 0xa2d73c to 0xa2d884 (328 bytes) // // 3 xrefs: // > @ 0x43bc0 // > LevelAreaInnerLayer::onDoor @ 0xa2d9b0 // > @ 0x122a248 // // 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 // bool LevelAreaInnerLayer::playStep1(LevelAreaInnerLayer *a1) { GameLevelManager *v2; // x0 GJGameLevel *MainLevel; // x22 LocalLevelManager *v4; // x0 void *v5; // x0 cocos2d::CCDirector *v6; // x20 cocos2d::CCScene *v7; // x0 cocos2d::CCTransitionFade *v8; // x0 unsigned int *v10; // x2 int v11; // w1 __int64 v12; // [xsp+40h] [xbp+40h] BYREF GameManager::sharedState()->m_sceneEnum = 15; a1->m_exiting = 1; v2 = GameLevelManager::sharedState(); MainLevel = GameLevelManager::getMainLevel(v2, a1->m_levelID, 1); v4 = LocalLevelManager::sharedState(); LocalLevelManager::getMainLevelString(&v12, v4, a1->m_levelID); sub_D18EA8(&MainLevel->m_levelString, &v12); v5 = (void *)(v12 - 24); if ( (__int64 *)(v12 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v12 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *(_DWORD *)(v12 - 8); *(_DWORD *)(v12 - 8) = v11 - 1; } if ( v11 <= 0 ) operator delete(v5); } v6 = cocos2d::CCDirector::sharedDirector(); v7 = PlayLayer::scene(MainLevel, 0, 0); v8 = cocos2d::CCTransitionFade::create(0.5, v7); cocos2d::CCDirector::replaceScene(v6, v8); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source