// // cocos2d::CCDictionary::writeToFile from 0xad17b8 to 0xad18a8 (240 bytes) // // 1 xrefs: // > @ 0xb8a70 // // 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 cocos2d::CCDictionary::writeToFile(cocos2d::CCDictionary *a1, const char *a2) { cocos2d::CCFileUtils *v3; // x21 __int64 (__fastcall *getClassTypeInfo)(cocos2d::TypeInfo *__hidden); // x22 char v5; // w20 void *v6; // x0 unsigned int *v8; // x2 int v9; // w1 __int64 v11; // [xsp+60h] [xbp+60h] BYREF v3 = cocos2d::CCFileUtils::sharedFileUtils(); getClassTypeInfo = v3->__vftable[1].getClassTypeInfo; sub_D153B8((int)&v11, (char *)a2); v5 = ((__int64 (__fastcall *)(cocos2d::CCFileUtils *, cocos2d::CCDictionary *, __int64 *))getClassTypeInfo)( v3, a1, &v11); v6 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v11 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v6); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source