// // GJGameLevel::generateAutoSaveUID from 0x4ca7e8 to 0x4ca874 (140 bytes) // // 9 xrefs: // > LevelEditorLayer::doAutoSave @ 0x4729f4 // > LevelEditorLayer::doAutoBackup @ 0x472d42 // > GameLevelManager::createNewLevel @ 0x4ca8c6 // > sub_4CA99C @ 0x4ca9d6 // > GameLevelManager::writePlatformerSaveJournal @ 0x4caf6c // > GJGameLevel::dataLoaded @ 0x4cc40a // > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfc32 // > GJGameLevel::encodeWithCoder @ 0x4d8986 // > LocalLevelManager::tryRecoverAutoSaves @ 0x543904 // // 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:50:37 +0000 // GJGameLevel *__fastcall GJGameLevel::generateAutoSaveUID(GJGameLevel *this, int a2) { int v2; // r4 int *v5; // r6 int v6; // r4 int v7; // r0 int v8; // r1 int v9; // r2 int v11; // [sp+0h] [bp-14h] BYREF int v12; // [sp+4h] [bp-10h] int v13; // [sp+8h] [bp-Ch] v2 = *(unsigned __int8 *)(a2 + 1132); v5 = (int *)(a2 + 1132); if ( (v2 & 1) != 0 ) v6 = *(_DWORD *)(a2 + 1136); else v6 = v2 >> 1; if ( !v6 ) { GameToolbox::gen_random((GameToolbox *)&v11, 16); if ( (*(_BYTE *)(a2 + 1132) & 1) != 0 ) { **(_BYTE **)(a2 + 1140) = 0; *(_DWORD *)(a2 + 1136) = 0; } else { *(_BYTE *)(a2 + 1133) = 0; *(_BYTE *)(a2 + 1132) = 0; } std::string::reserve(v5, 0); v7 = v11; v8 = v12; v9 = v13; v11 = 0; v12 = 0; v13 = 0; *v5 = v7; v5[1] = v8; v5[2] = v9; std::string::~string((int)&v11); } std::string::basic_string((int *)this, (int)v5); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source