// // LevelListLayer::onBack from 0xa78244 to 0xa7848c (584 bytes) // // 2 xrefs: // > @ 0x9a158 // > @ 0x11efb40 // // 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 LevelListLayer::onBack(LevelListLayer *a1, cocos2d::CCObject *a2) { CCTextInputNode *m_titleInput; // x0 GameLevelManager *v5; // x23 GJDifficulty *p_m_demonFilter; // x0 GameLevelManager *v7; // x20 cocos2d::CCScene *SearchScene; // x20 GJDifficulty *v9; // x22 cocos2d::CCDirector *v10; // x21 cocos2d::CCTransitionFade *v11; // x0 GJSearchObject *v12; // x0 unsigned int *p_m_searchMode; // x1 int m_searchMode; // w2 unsigned int *v15; // x21 int v16; // w0 GJSearchObject *v17; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_exiting ) { ((void (__fastcall *)(LevelListLayer *))a1->setKeypadEnabled)(a1); m_titleInput = a1->m_titleInput; if ( m_titleInput ) m_titleInput->onClickTrackNode(m_titleInput, 0); LevelListLayer::verifyListName(a1); v5 = GameLevelManager::sharedState(); sub_D18D28(&v17); sub_D18EA8(&v5->m_searchKey, &v17); p_m_demonFilter = &v17[-1].m_demonFilter; if ( &v17[-1].m_demonFilter != (GJDifficulty *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_searchMode = (unsigned int *)&v17[-1].m_searchMode; do m_searchMode = __ldaxr(p_m_searchMode); while ( __stlxr(m_searchMode - 1, p_m_searchMode) ); } else { m_searchMode = v17[-1].m_searchMode; v17[-1].m_searchMode = m_searchMode - 1; } if ( m_searchMode <= 0 ) operator delete(p_m_demonFilter); } if ( a1->m_levelList->m_listType == Editor ) { v7 = GameLevelManager::sharedState(); GameLevelManager::sharedState(); sub_D18D28(&v17); SearchScene = GameLevelManager::getSearchScene(v7, (const char *)v17); v9 = &v17[-1].m_demonFilter; if ( &v17[-1].m_demonFilter != (GJDifficulty *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)&v17[-1].m_searchMode; do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = v17[-1].m_searchMode; v17[-1].m_searchMode = v16 - 1; } if ( v16 <= 0 ) operator delete(v9); } if ( GameLevelManager::sharedState()->m_returnToLocalLevels || !SearchScene ) { GameLevelManager::sharedState()->m_returnToLocalLevels = 0; v12 = (GJSearchObject *)GJSearchObject::create(102); SearchScene = LevelBrowserLayer::scene(v12); } v10 = cocos2d::CCDirector::sharedDirector(); v11 = cocos2d::CCTransitionFade::create(0.5, SearchScene); cocos2d::CCDirector::replaceScene(v10, v11); } else { LevelBrowserLayer::onBack(a1, a2); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source