// // sub_1004E8820 from 0x1004e8820 to 0x1004e888f (111 bytes) // // 1 xrefs: // > @ 0x100957038 // // 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 sub_1004E8820(__int64 a1, __int64 a2, unsigned __int8 a3) { GameLevelManager *v3; // rax GJSmartTemplate *v4; // rsi GJSearchObject *v5; // rax LevelBrowserLayer *v6; // rax if ( !(a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 5)) ) { v3 = GameLevelManager::sharedState(); v4 = *(GJSmartTemplate **)(a1 + 8); GameLevelManager::deleteSmartTemplate(v3, v4); SetupSmartTemplateLayer::onClose((SetupSmartTemplateLayer *)(a1 - 640), v4); v5 = GJSearchObject::create_2(SmartTemplates); v5->m_searchIsOverlay = 1; v6 = LevelBrowserLayer::create(v5); LevelBrowserLayer::show(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source