// // cocos2d::CCDirector::replaceScene from 0x100175fd4 to 0x1001760e8 (276 bytes) // // 67 xrefs: // > LevelInfoLayer::onBack @ 0x100028c84 // > LevelInfoLayer::playStep4 @ 0x10002a844 // > LevelInfoLayer::onClone @ 0x10002aab4 // > LevelSearchLayer::onSearchMode @ 0x1000531a0 // > SecretLayer5::onBack @ 0x100074ec4 // > GameLevelManager::gotoLevelPage @ 0x100099280 // > CreatorLayer::onSecretVault @ 0x1000b6548 // > CreatorLayer::onTreasureRoom @ 0x1000b6734 // > CreatorLayer::onBack @ 0x1000b6b08 // > EditLevelLayer::onEdit @ 0x1000ea310 // > EditLevelLayer::onBack @ 0x1000eb504 // > EditLevelLayer::playStep3 @ 0x1000ec054 // > EditLevelLayer::onClone @ 0x1000ec3f4 // > OptionsLayer::onSecretVault @ 0x1000ed1dc // > VideoOptionsLayer::onApply @ 0x1000f0e64 // > LevelListCell::onClick @ 0x100112ecc // > GJShopLayer::onBack @ 0x10014bc00 // > GJShopLayer::dialogClosed @ 0x10014d69c // > GauntletSelectLayer::onBack @ 0x1001bf100 // > GauntletSelectLayer::onPlay @ 0x1001bfa14 // > cocos2d::CCTransitionScene::setNewScene @ 0x1001cdd18 // > LoadingLayer::loadingFinished @ 0x1001d6e6c // > GJGameLoadingLayer::transitionToLoadingLayer @ 0x100209240 // > GJGameLoadingLayer::loadLevel @ 0x100209500 // > GauntletLayer::onBack @ 0x10023299c // > LevelListLayer::onBack @ 0x1002468e8 // > LevelListLayer::cloneList @ 0x100246cf4 // > UploadListPopup::onBack @ 0x100249880 // > UploadListPopup::onReturnToList @ 0x100249a6c // > MenuLayer::onPlay @ 0x1002677cc // > MenuLayer::onGarage @ 0x10026781c // > MenuLayer::onCreator @ 0x10026786c // > UploadPopup::onReturnToLevel @ 0x100276bf4 // > SecretRewardsLayer::onBack @ 0x1002e9a04 // > SecretRewardsLayer::showShop @ 0x1002ee91c // > GJGarageLayer::onBack @ 0x1003044f8 // > GJGarageLayer::onShop @ 0x10030452c // > SecretLayer2::onBack @ 0x10030a748 // > SecretLayer2::onDoor @ 0x10030b970 // > SecretLayer2::onSecretLevel @ 0x10030bb6c // > SecretLayer3::onBack @ 0x10030fdd0 // > GameManager::returnToLastScene @ 0x10031d684 // > GameManager::returnToLastScene @ 0x10031d7d0 // > GameManager::safePopScene @ 0x10031d854 // > GameManager::reloadMenu @ 0x10031d90c // > GameManager::reloadAll @ 0x10031d95c // > GameManager::reloadAllStep5 @ 0x10031dbd4 // > LevelAreaLayer::onBack @ 0x100344724 // > LevelAreaLayer::onEnterTower @ 0x10034554c // > LevelAreaInnerLayer::onBack @ 0x10034628c // > LevelAreaInnerLayer::onOnlineVault @ 0x100346484 // > LevelAreaInnerLayer::playStep1 @ 0x100346d64 // > InfoLayer::onOriginal @ 0x1003516cc // > SecretLayer4::onBack @ 0x100354e8c // > SecretLayer::onBack @ 0x1003bddf4 // > LevelSelectLayer::onBack @ 0x100402394 // > LevelPage::onTheTower @ 0x1004049ec // > LevelPage::onSecretDoor @ 0x1004053ac // > LevelPage::playStep3 @ 0x100405adc // > LevelBrowserLayer::onMyOnlineLevels @ 0x100416324 // > LevelBrowserLayer::onLocalMode @ 0x100416424 // > LevelBrowserLayer::onSavedMode @ 0x1004166ac // > LevelBrowserLayer::onSaved @ 0x10041676c // > LevelBrowserLayer::onFavorites @ 0x100416854 // > LevelBrowserLayer::createNewList @ 0x1004191f8 // > LevelBrowserLayer::createNewLevel @ 0x1004192a4 // > LevelBrowserLayer::FLAlert_Clicked @ 0x1004197bc // // 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 __fastcall cocos2d::CCDirector::replaceScene(cocos2d::CCDirector *a1, cocos2d::CCScene *a2) { void *v4; // x0 bool v5; // w22 bool *p_m_bIsTransitioning; // x23 bool v8; // w24 int v9; // w21 cocos2d::CCSceneDelegate *m_pAppDelegate; // x0 cocos2d::CCSceneDelegate *m_pDelegate; // x0 if ( a2 ) { v4 = __dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0); v5 = v4 != nullptr; p_m_bIsTransitioning = &a1->m_bIsTransitioning; if ( a1->m_bIsTransitioning && v4 != nullptr ) return 0; v8 = v4 != nullptr; } else { v5 = 0; v8 = 0; p_m_bIsTransitioning = &a1->m_bIsTransitioning; } v9 = sub_10024A36C(a1->m_pobScenesStack); a1->m_bSendCleanupToScene = 1; if ( a1->m_pSceneReference && a1->m_pSceneReference == (cocos2d::CCScene *)sub_10024A398(a1->m_pobScenesStack) ) a1->m_pSceneReference = nullptr; sub_10024A46C(a1->m_pobScenesStack, (unsigned int)(v9 - 1), a2, 1); a1->m_pNextScene = a2; if ( !v8 && !a1->m_bDontCallWillSwitch ) { m_pAppDelegate = a1->m_pAppDelegate; if ( m_pAppDelegate ) ((void (__fastcall *)(cocos2d::CCSceneDelegate *, cocos2d::CCScene *))m_pAppDelegate->willSwitchToScene)( m_pAppDelegate, a2); m_pDelegate = a2->m_pDelegate; if ( m_pDelegate ) ((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pDelegate->willSwitchToScene)(m_pDelegate); } *p_m_bIsTransitioning = v5; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source