// // LevelBrowserLayer::showImportResult from 0x10049a9f8 to 0x10049ab60 (360 bytes) // // 2 xrefs: // > LevelBrowserLayer::onImportLevels @ 0x100497600 // > LevelBrowserLayer::onLevelsImported @ 0x10049762c // // This function is hookable on this platform (idp: arm, 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:05:58 +0000 // void __fastcall LevelBrowserLayer::showImportResult(_QWORD *a1, int a2) { __int64 v3; // x0 void *v4; // x0 void *v5; // x0 const std::string::value_type *CString; // x0 _QWORD *v7; // x0 _QWORD v8[2]; // [xsp+10h] [xbp-70h] BYREF char v9; // [xsp+27h] [xbp-59h] void *__p[2]; // [xsp+28h] [xbp-58h] BYREF char v11; // [xsp+3Fh] [xbp-41h] std::string __dst; // [xsp+40h] [xbp-40h] BYREF std::string v13; // [xsp+58h] [xbp-28h] BYREF if ( a2 < 1 ) { if ( !a2 ) { sub_100009900(v8, "No levels were imported."); v3 = sub_10034A8F8(0, (__int64)"Info", (__int64)v8, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3); if ( v9 < 0 ) { v4 = (void *)v8[0]; LABEL_17: operator delete(v4); } } } else { memset(&v13, 0, sizeof(v13)); if ( a2 == 1 ) { std::string::assign(&v13, "Level imported!"); } else { v5 = sub_1003065B0("%i levels imported!", a2); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v5); std::string::assign(&v13, CString); } if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_); else __dst = v13; sub_100009900(__p, ""); v7 = TextAlertPopup::create((__int64)&__dst, 150, (__int64)__p, 0.5, 0.6); (*(void (__fastcall **)(_QWORD *, _QWORD *, __int64))(*a1 + 464LL))(a1, v7, 100); if ( v11 < 0 ) operator delete(__p[0]); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); LevelBrowserLayer::loadPage(a1, a1[83]); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) { v4 = (void *)v13.__r_.__value_.__r.__words[0]; goto LABEL_17; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source