// // LevelEditorLayer::prepareSaveData from 0x470afc to 0x470c44 (328 bytes) // // 2 xrefs: // > LevelEditorLayer::doAutoSave @ 0x4729ea // > LevelEditorLayer::doAutoBackup @ 0x472cc8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:49:04 +0000 // GJGameLevel *__fastcall LevelEditorLayer::prepareSaveData(GJGameLevel *a1, int a2, char *a3) { int v4; // r4 char v7; // r10 _BYTE v9[12]; // [sp+10h] [bp-A4h] BYREF int v10[3]; // [sp+1Ch] [bp-98h] BYREF int v11[3]; // [sp+28h] [bp-8Ch] BYREF int v12[3]; // [sp+34h] [bp-80h] BYREF _BYTE v13[104]; // [sp+40h] [bp-74h] BYREF v4 = *(_DWORD *)(a2 + 1408); cocos2d::ZipUtils::compressString(v9, a3, 0, -1, 11); v7 = *a3; if ( (*a3 & 1) == 0 ) { a3[1] = 0; *a3 = 0; } if ( (v7 & 1) != 0 ) { **((_BYTE **)a3 + 2) = 0; *((_DWORD *)a3 + 1) = 0; } std::string::basic_string(v10, v4 + 304); std::string::basic_string(v11, (int)v9); std::string::operator=((unsigned __int8 *)(v4 + 304), (unsigned __int8 *)v11); std::string::~string((int)v11); LevelEditorLayer::updateLevelSaveInfo((LevelEditorLayer *)a2); *(_DWORD *)(v4 + 480) += (int)*(double *)(a2 + 12088); memcpy(v13, (const void *)(v4 + 488), sizeof(v13)); memcpy((void *)(v4 + 488), (const void *)(a2 + 12104), 0x64u); GJGameLevel::getFullSaveString(a1); std::string::basic_string(v12, (int)v10); std::string::operator=((unsigned __int8 *)(v4 + 304), (unsigned __int8 *)v12); std::string::~string((int)v12); *(_DWORD *)(v4 + 480) -= (int)*(double *)(a2 + 12088); memcpy((void *)(v4 + 488), v13, 0x64u); std::string::~string((int)v10); std::string::~string((int)v9); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source