// // LevelBrowserLayer::setIDPopupClosed from 0x100490f70 to 0x10049107f (271 bytes) // // 4 xrefs: // > LevelListLayer::setIDPopupClosed @ 0x10035fa37 // > sub_10035FA50 @ 0x10035fad9 // > sub_100491080 @ 0x10049108c // > @ 0x100942a78 // // 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 LevelBrowserLayer::setIDPopupClosed(LevelBrowserLayer *a1, SetIDPopup *a2, int a3) { int v4; // eax int v5; // r14d GJSearchObject *m_searchObject; // rsi GJSearchObject *v7; // rax GameManager *v8; // rax const char *v9; // rsi int v10; // eax int m_lastPage; // ecx bool v12; // cc int v13; // r14d GJSearchObject *v14; // rax GJSearchObject *PageObject; // rax if ( ((unsigned int (__fastcall *)(SetIDPopup *))a2->getTag)(a2) == 4 ) { v4 = 0; if ( a3 > 0 ) v4 = a3; v5 = 999; if ( v4 < 999 ) v5 = v4; if ( a1->m_searchObject ) { GameManager::sharedState()->m_currentLevelID = 0; m_searchObject = a1->m_searchObject; m_searchObject->m_folder = v5; m_searchObject->m_page = 0; LevelBrowserLayer::loadPage(a1, m_searchObject); v7 = a1->m_searchObject; if ( v7 && v7->m_searchType == SavedLevels ) { v8 = GameManager::sharedState(); v9 = "0092"; } else { v8 = GameManager::sharedState(); v9 = "0091"; } GameManager::setIntGameVariable(v8, v9, v5); } } else { v10 = a3 - 1; m_lastPage = a1->m_lastPage; v12 = m_lastPage < a3; v13 = a3 - 1; if ( v12 ) v13 = a1->m_lastPage; if ( m_lastPage <= 0 ) v13 = v10; v14 = a1->m_searchObject; if ( v14 && v14->m_page != v13 ) { GameManager::sharedState()->m_currentLevelID = 0; PageObject = GJSearchObject::getPageObject(a1->m_searchObject, v13); LevelBrowserLayer::loadPage(a1, PageObject); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source