// // cocos2d::CCFileUtils::init from 0x10043ac80 to 0x10043ad10 (144 bytes) // // 5 xrefs: // > cocos2d::CCFileUtils::sharedFileUtils @ 0x10060b93d // > cocos2d::CCFileUtilsMac::createCCDictionaryWithContentsOfFile @ 0x10060c191 // > cocos2d::CCFileUtilsMac::createCCArrayWithContentsOfFile @ 0x10060cf41 // > @ 0x100938048 // > @ 0x1009805e8 // // 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 // bool __fastcall cocos2d::CCFileUtils::init(cocos2d::CCFileUtils *a1) { double v1; // xmm0_8 cocos2d::CCFileUtils *v2; // rsi cocos2d::CCFileUtils_vtbl *v3; // r14 char *p_addSearchPath; // r14 _WORD v6[8]; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] v2 = a1 + 8; v3 = a1[6].__vftable; if ( v3 >= a1[7].__vftable ) { p_addSearchPath = sub_100054890((__int64)&a1[5], (__int64)v2, v1); } else { if ( ((__int64)v2->__vftable & 1) != 0 ) { sub_100006B70(&a1[6].getClassTypeInfo, a1[10].__vftable, (unsigned __int64)a1[9].__vftable, v1); } else { v3->~CCFileUtils_0 = (void (__cdecl *)(cocos2d::CCFileUtils *__hidden))a1[10].__vftable; *(_OWORD *)&v3->getClassTypeInfo = *(_OWORD *)&v2->__vftable; } p_addSearchPath = (char *)&v3->addSearchPath; a1[6].__vftable = (cocos2d::CCFileUtils_vtbl *)p_addSearchPath; } a1[6].__vftable = (cocos2d::CCFileUtils_vtbl *)p_addSearchPath; v6[0] = 0; sub_10017A000((__int64)&a1[2], (__int64)v6); if ( (v6[0] & 1) != 0 ) operator delete(__p); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source