// // cocos2d::CCRenderTexture::saveToFile from 0x5d8b44 to 0x5d8bbe (122 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 // bool cocos2d::CCRenderTexture::saveToFile(cocos2d::CCRenderTexture *a1, const char *a2) { cocos2d::CCImage *v3; // r6 cocos2d::CCFileUtils *v4; // r0 const char **v5; // r0 bool v6; // r7 int v7; // r1 const char *v9; // [sp+4h] [bp-10h] BYREF _BYTE v10[4]; // [sp+8h] [bp-Ch] BYREF v3 = cocos2d::CCRenderTexture::newCCImage(a1, 1); if ( !v3 ) return 0; v4 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(_BYTE *, cocos2d::CCFileUtils *))v4->init)(v10, v4); v5 = (const char **)sub_774544((int)v10, (char *)a2); v9 = *v5; *v5 = (const char *)&unk_ACDDA8; sub_774008(v10); v6 = cocos2d::CCImage::saveToFile(v3, v9, 1); v7 = (unsigned __int64)sub_774008(&v9) >> 32; ((void (__fastcall *)(cocos2d::CCImage *, int))v3->~CCImage_0)(v3, v7); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source