// // cocos2d::CCFileUtils::getFileData from 0x5de580 to 0x5de636 (182 bytes) // // 0 xrefs: // // 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 // unsigned __int8 *cocos2d::CCFileUtils::getFileData( cocos2d::CCFileUtils *a1, const char *a2, const char *a3, unsigned int *a4) { char *v7; // r3 FILE *v8; // r0 FILE *v9; // r6 void *v10; // r8 int v11; // r0 char *filename[2]; // [sp+8h] [bp-8h] BYREF filename[0] = (char *)a3; v7 = (char *)_stack_chk_guard; *a4 = 0; filename[1] = v7; ((void (__fastcall *)(char **, cocos2d::CCFileUtils *, const char *, _DWORD, cocos2d::CCFileUtils *, const char *))a1->createCCArrayWithContentsOfFile)( filename, a1, a2, 0, a1, a2); v8 = fopen(filename[0], a3); v9 = v8; if ( v8 ) { fseek(v8, 0, 2); *a4 = ftell(v9); fseek(v9, 0, 0); v10 = (void *)operator new[](*a4); *a4 = fread(v10, 1u, *a4, v9); fclose(v9); } else { v10 = nullptr; sub_774008(filename); sub_776584((int)filename, "Get data from file("); v11 = sub_774544((int)filename, (char *)a2); sub_774544(v11, ") failed!"); } sub_774008(filename); return (unsigned __int8 *)v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source