// // LevelBrowserLayer::onExportSelected from 0x1403e9700 to 0x1403e97b2 (178 bytes) // // 4 xrefs: // > LevelBrowserLayer::init @ 0x1403e2e24 // > @ 0x1408c4f2c // > @ 0x1408c4f84 // > @ 0x14092507c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:44 +0000 // void __fastcall LevelBrowserLayer::onExportSelected(__int64 a1) { cocos2d::CCArray *v2; // rsi __int64 v3; // rax unsigned int *v4; // rbx __int64 v5; // rax struct cocos2d::CCObject **v6; // rbx struct cocos2d::CCObject **i; // rdi struct cocos2d::CCObject *v8; // rdx __int64 v9; // rcx __int64 v10; // rcx unsigned int v11; // eax if ( *(_QWORD *)(a1 + 656) ) { v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 = *(_QWORD *)(a1 + 656); if ( v3 ) { v4 = *(unsigned int **)(v3 + 56); v5 = *v4; if ( (_DWORD)v5 ) { v6 = *((struct cocos2d::CCObject ***)v4 + 2); for ( i = &v6[v5 - 1]; v6 <= i; ++v6 ) { v8 = *v6; if ( !*v6 ) break; if ( *((_BYTE *)v8 + 843) ) cocos2d::CCArray::addObject(v2, v8); } } } if ( cocos2d::CCArray::count(v2) ) { LocalLevelManager::sharedState(v9); v11 = LocalLevelManager::exportLevelsToFile(v10, v2); LevelBrowserLayer::showExportResult(a1, v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source