// // GJGameLevel::saveNewScore from 0x4dc748 to 0x4dc81e (214 bytes) // // 5 xrefs: // > PlayLayer::levelComplete @ 0x407f92 // > PlayLayer::levelComplete @ 0x407fdc // > PlayLayer::levelComplete @ 0x408042 // > GJGameLevel::handleStatsConflict @ 0x4dc922 // > GJGameLevel::handleStatsConflict @ 0x4dc970 // // 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:57 +0000 // int __fastcall GJGameLevel::saveNewScore( int a1, int a2, int a3, int a4, int a5, int a6, unsigned __int8 *a7, unsigned __int8 a8) { int v11; // r5 int v12; // r2 int v13; // r2 int v14; // r2 int v15; // r2 int v16; // r1 int v17; // r2 int v18; // r2 int v19; // r2 int v20; // r3 int v22; // [sp+0h] [bp-14h] int v23; // [sp+4h] [bp-10h] int v24; // [sp+8h] [bp-Ch] v11 = a8; if ( a3 ) { if ( a2 ) { v17 = *(_DWORD *)(a1 + 1068); if ( a2 > v17 || !v17 || a8 ) { v18 = *(_DWORD *)(a1 + 1052); v11 = 1; *(_DWORD *)(a1 + 1072) = a4; *(_DWORD *)(a1 + 1076) = a5; v22 = v18; *(_DWORD *)(a1 + 1080) = a6; v19 = *(_DWORD *)(a1 + 1048); v20 = *(_DWORD *)(a1 + 1044); *(_DWORD *)(a1 + 1068) = a2; *(_DWORD *)(a1 + 1096) = generateBestHash(*(_DWORD *)(a1 + 1040), a2, v19, v20, v22, a5, a4, a6); std::string::operator=((unsigned __int8 *)(a1 + 1084), a7); *(_BYTE *)(a1 + 1125) = 1; } } else { v11 = 0; } } else if ( a2 <= 0 || (v12 = *(_DWORD *)(a1 + 1040), a2 >= v12) && v12 && !a8 ) { v11 = 0; } else { v13 = *(_DWORD *)(a1 + 1076); *(_DWORD *)(a1 + 1044) = a4; v11 = 1; *(_DWORD *)(a1 + 1048) = a5; v23 = v13; v14 = *(_DWORD *)(a1 + 1072); *(_DWORD *)(a1 + 1052) = a6; v24 = v14; v15 = *(_DWORD *)(a1 + 1080); v16 = *(_DWORD *)(a1 + 1068); *(_DWORD *)(a1 + 1040) = a2; *(_DWORD *)(a1 + 1096) = generateBestHash(a2, v16, a5, a4, a6, v23, v24, v15); std::string::operator=((unsigned __int8 *)(a1 + 1056), a7); *(_BYTE *)(a1 + 1124) = 1; } GJGameLevel::storeNewLocalScore((GJGameLevel *)a1, a2, a3); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source