// // LevelBrowserLayer::onLocalMode from 0x1402ce050 to 0x1402ce130 (224 bytes) // // 3 xrefs: // > LevelBrowserLayer::init @ 0x1402ca4cd // > @ 0x1406d2d80 // > @ 0x1406d2d8c // // 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 LevelBrowserLayer::onLocalMode(LevelBrowserLayer *a1, cocos2d::CCObject *a2) { SearchType m_searchType; // edi SearchType v4; // ebx __int64 v5; // rax GJSearchObject *v6; // rax struct cocos2d::CCScene *v7; // rax struct cocos2d::CCTransitionFade *v8; // rbx __int64 v9; // rcx cocos2d::CCDirector *v10; // rax void *v11; // [rsp+30h] [rbp+8h] if ( a1->m_searchObject ) { a1->setKeypadEnabled(a1, 0); a1->setKeyboardEnabled(a1, 0); m_searchType = a1->m_searchObject->m_searchType; v4 = MyLevels; if ( m_searchType == MyLevels ) v4 = MyLists; v5 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v11 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = qword_1406C2ED8; } *(_DWORD *)(v5 + 1200) = v4; v6 = GJSearchObject::create_2(v4); if ( m_searchType == MyLevels ) v6->m_searchMode = 1; v7 = LevelBrowserLayer::scene(v6); v8 = cocos2d::CCTransitionFade::create(0.5, v7); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::replaceScene(v10, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source