// // cocos2d::CCFileUtils::loadFilenameLookupDictionaryFromFile from 0xd74ed0 to 0xd75080 (432 bytes) // // 3 xrefs: // > @ 0x67738 // > @ 0x152d910 // > @ 0x152ddd0 // // 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 13:08:02 +0000 // __int64 __fastcall cocos2d::CCFileUtils::loadFilenameLookupDictionaryFromFile( cocos2d::CCFileUtils *this, const char *a2) { const char *v3; // x1 cocos2d::CCObject *v4; // x22 __int64 v5; // x23 cocos2d::CCString *v6; // x0 int v7; // w23 void (__fastcall *v9)(cocos2d::CCFileUtils *, __int64); // x23 __int64 v10; // x0 void *v11[2]; // [xsp+48h] [xbp+48h] BYREF void *v12; // [xsp+58h] [xbp+58h] __int64 v13; // [xsp+60h] [xbp+60h] BYREF __int64 v14; // [xsp+68h] [xbp+68h] void *v15; // [xsp+70h] [xbp+70h] (*(void (__fastcall **)(void **__return_ptr, cocos2d::CCFileUtils *, const char *, _QWORD))(*(_QWORD *)this + 48LL))( v11, this, a2, 0); if ( ((__int64)v11[0] & 1) != 0 ) { if ( !v11[1] ) goto LABEL_14; v4 = cocos2d::CCDictionary::createWithContentsOfFile((cocos2d::CCDictionary *)v12, v3); if ( !v4 ) { LABEL_13: if ( ((__int64)v11[0] & 1) == 0 ) return _stack_chk_guard; LABEL_14: operator delete(v12); return _stack_chk_guard; } } else { if ( !((int)LOBYTE(v11[0]) >> 1) ) return _stack_chk_guard; v4 = cocos2d::CCDictionary::createWithContentsOfFile((cocos2d::CCDictionary *)((char *)v11 + 1), v3); if ( !v4 ) goto LABEL_13; } v13 = 0; v14 = 0; v15 = nullptr; std::string::__init(&v13, "metadata", 8u); v5 = cocos2d::CCDictionary::objectForKey((__int64)v4, (__int64)&v13); if ( (v13 & 1) != 0 ) operator delete(v15); v13 = 0; v14 = 0; v15 = nullptr; std::string::__init(&v13, "version", 7u); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, (__int64)&v13); v7 = cocos2d::CCString::intValue(v6); if ( (v13 & 1) != 0 ) operator delete(v15); if ( v7 == 1 ) { v9 = *(void (__fastcall **)(cocos2d::CCFileUtils *, __int64))(*(_QWORD *)this + 72LL); v13 = 0; v14 = 0; v15 = nullptr; std::string::__init(&v13, "filenames", 9u); v10 = cocos2d::CCDictionary::objectForKey((__int64)v4, (__int64)&v13); v9(this, v10); if ( (v13 & 1) != 0 ) operator delete(v15); goto LABEL_13; } if ( ((__int64)v11[0] & 1) != 0 ) goto LABEL_14; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source