// // LocalLevelManager::tryLoadMainLevelString from 0x10025e348 to 0x10025e484 (316 bytes) // // 1 xrefs: // > LocalLevelManager::getMainLevelString @ 0x10025e4f4 // // 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:01:37 +0000 // void __fastcall LocalLevelManager::tryLoadMainLevelString(__int64 a1, int a2) { __int64 v3; // x20 __int64 v4; // x0 char *CString; // x0 void **v6; // x1 void **v7; // x0 __int64 v8; // x0 char *v9; // x0 std::string::size_type size; // x9 char v11; // w8 std::string *v12; // x0 std::string __str; // [xsp+8h] [xbp-78h] BYREF void *__p[2]; // [xsp+20h] [xbp-60h] BYREF char v15; // [xsp+37h] [xbp-49h] void *v16[2]; // [xsp+38h] [xbp-48h] BYREF char v17; // [xsp+4Fh] [xbp-31h] int v18; // [xsp+50h] [xbp-30h] BYREF int *v19; // [xsp+58h] [xbp-28h] BYREF v18 = a2; if ( !sub_100019268((_QWORD *)(a1 + 376), &v18) ) { v3 = cocos2d::CCFileUtils::sharedFileUtils(0); v4 = sub_1003065B0("levels/%i.txt", v18); CString = (char *)cocos2d::CCString::getCString(v4); sub_100009900(v16, CString); if ( v17 >= 0 ) v6 = v16; else v6 = (void **)v16[0]; (*(void (__fastcall **)(void **__return_ptr, __int64, void **, _QWORD))(*(_QWORD *)v3 + 48LL))(__p, v3, v6, 0); if ( v15 >= 0 ) v7 = __p; else v7 = (void **)__p[0]; v8 = cocos2d::CCString::createWithContentsOfFile(v7); if ( v8 ) { v9 = (char *)cocos2d::CCString::getCString(v8); sub_100009900(&__str, v9); size = HIBYTE(__str.__r_.__value_.__r.__words[2]); v11 = HIBYTE(__str.__r_.__value_.__r.__words[2]); if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = __str.__r_.__value_.__l.__size_; if ( size ) { v19 = &v18; v12 = (std::string *)sub_1000D9108(a1 + 376, &v18, (__int64)&unk_100762C2B, &v19); std::string::operator=(v12 + 1, &__str); v11 = HIBYTE(__str.__r_.__value_.__r.__words[2]); } if ( v11 < 0 ) operator delete(__str.__r_.__value_.__l.__data_); } if ( v15 < 0 ) operator delete(__p[0]); if ( v17 < 0 ) operator delete(v16[0]); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source