// // EditLevelLayer::onBack from 0x1001fd090 to 0x1001fd1e9 (345 bytes) // // 5 xrefs: // > EditLevelLayer::onDelete @ 0x1001fe118 // > EditLevelLayer::FLAlert_Clicked @ 0x1001fe188 // > EditLevelLayer::keyBackClicked @ 0x1001fe605 // > sub_1001FE610 @ 0x1001fe61c // > EditLevelLayer::init @ 0x1001fb83d // // 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 __fastcall EditLevelLayer::onBack(EditLevelLayer *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 unsigned int v3; // r14d __int64 v4; // rax GameLevelManager *v5; // rbx GameLevelManager *v6; // rax std::string *p_m_searchKey; // rax const char *v8; // rsi cocos2d::CCScene *SearchScene; // rbx GJSearchObject *v10; // rax cocos2d::CCDirector *v11; // r14 cocos2d::CCTransitionFade *v12; // rax __int128 v13; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] if ( cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning ) return; if ( (unsigned int)sub_100720070(a1->m_textInputs) ) { v3 = 0; do { v4 = sub_1007200C0(a1->m_textInputs, v3); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1144LL))(v4, 0); ++v3; } while ( v3 < (unsigned int)sub_100720070(a1->m_textInputs) ); } EditLevelLayer::verifyLevelName(a1); ((void (__fastcall *)(EditLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); v5 = GameLevelManager::sharedState(); v6 = GameLevelManager::sharedState(); if ( (v6->m_searchKey.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v13, v6->m_searchKey.m_data.m_long.longStorage, v6->m_searchKey.m_data.m_long.size, v2); if ( (v13 & 1) == 0 ) goto LABEL_7; LABEL_9: v8 = (const char *)__p; goto LABEL_10; } p_m_searchKey = &v6->m_searchKey; __p = p_m_searchKey->m_data.m_long.longStorage; v13 = *(_OWORD *)&p_m_searchKey->m_data.m_short.sizex2; if ( (v13 & 1) != 0 ) goto LABEL_9; LABEL_7: v8 = (char *)&v13 + 1; LABEL_10: SearchScene = GameLevelManager::getSearchScene(v5, v8); if ( (v13 & 1) != 0 ) operator delete(__p); if ( GameLevelManager::sharedState()->m_returnToLocalLevels || !SearchScene ) { GameLevelManager::sharedState()->m_returnToLocalLevels = 0; v10 = GJSearchObject::create_2(MyLevels); SearchScene = LevelBrowserLayer::scene(v10); } v11 = cocos2d::CCDirector::sharedDirector(); v12 = cocos2d::CCTransitionFade::create_1(0.5, SearchScene); cocos2d::CCDirector::replaceScene(v11, v12); }