// // cocos2d::extension::AssetsManager::downLoad from 0x5a01a8 to 0x5a027c (212 bytes) // // 1 xrefs: // > cocos2d::extension::assetsManagerDownloadAndUncompress @ 0x5a02ac // // 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 // int __fastcall cocos2d::extension::AssetsManager::downLoad(cocos2d::extension::AssetsManager *this, char *a2) { FILE *v3; // r6 int v4; // r4 int v5; // r8 char *filename[2]; // [sp+0h] [bp+0h] BYREF filename[0] = (char *)this; filename[1] = a2; std::operator+((int)filename, (int)this + 4, "cocos2dx-update-temp-package.zip"); v3 = fopen(filename[0], "wb"); if ( v3 ) { sub_62AED4(*((_DWORD *)this + 6), 10002, *((_DWORD *)this + 3)); sub_62AED4(*((_DWORD *)this + 6), 20011, j_j_fwrite); sub_62AED4(*((_DWORD *)this + 6), 10001, v3); sub_62AED4(*((_DWORD *)this + 6), 43, 0); sub_62AED4(*((_DWORD *)this + 6), 20056, cocos2d::extension::assetsManagerProgressFunc); sub_62AED4(*((_DWORD *)this + 6), 10057, this); v5 = sub_62AEF4(*((_DWORD *)this + 6)); sub_62B05C(*((_DWORD *)this + 6)); if ( !v5 ) { fclose(v3); v4 = 1; goto LABEL_7; } cocos2d::extension::AssetsManager::sendErrorMessage((int)this, 1); fclose(v3); } else { cocos2d::extension::AssetsManager::sendErrorMessage((int)this, 0); } v4 = 0; LABEL_7: sub_774008(filename); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source