// // GJGameLevel::scoreStringToVector from 0x4dc478 to 0x4dc658 (480 bytes) // // 7 xrefs: // > LevelEditorLayer::rebuildDeathOverlay @ 0x46a39e // > GJGameLevel::storeNewLocalScore @ 0x4dc6aa // > GJGameLevel::dtBumpBucket @ 0x4dd812 // > GJGameLevel::dtBumpRun @ 0x4dd974 // > GJGameLevel::dtParseGlobalBlob @ 0x4ddc1a // > LevelLeaderboard::getLocalScores @ 0x61489c // > PlayLayer::dtLoadCells @ 0x72c970 // // 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 // void __fastcall GJGameLevel::scoreStringToVector(int a1, unsigned __int8 *a2, _DWORD *a3) { int v5; // r4 int v6; // r3 char *v7; // r2 int v8; // r3 char *v9; // r3 char *v10; // r2 int v11; // r8 char *v12; // r3 unsigned int v13; // r1 char *v14; // r3 int v15; // r2 char *v16; // r0 int v17; // r0 int *v18; // r3 unsigned int v19; // r2 _DWORD *v20; // r0 int v21; // [sp+4h] [bp-A8h] BYREF _DWORD v22[2]; // [sp+8h] [bp-A4h] BYREF char *v23; // [sp+10h] [bp-9Ch] _DWORD v24[3]; // [sp+14h] [bp-98h] BYREF _UNKNOWN **v25; // [sp+20h] [bp-8Ch] BYREF char v26[4]; // [sp+24h] [bp-88h] BYREF char *v27; // [sp+28h] [bp-84h] char *v28; // [sp+2Ch] [bp-80h] char *v29; // [sp+30h] [bp-7Ch] char *v30; // [sp+34h] [bp-78h] char *v31; // [sp+38h] [bp-74h] char *v32; // [sp+3Ch] [bp-70h] int v33; // [sp+40h] [bp-6Ch] BYREF int v34; // [sp+44h] [bp-68h] char *v35; // [sp+48h] [bp-64h] char *v36; // [sp+4Ch] [bp-60h] int v37; // [sp+50h] [bp-5Ch] _DWORD v38[20]; // [sp+54h] [bp-58h] BYREF v5 = *a2; if ( (v5 & 1) != 0 ) v6 = *((_DWORD *)a2 + 1); else v6 = v5 >> 1; if ( v6 ) { v24[1] = 0; v38[0] = &unk_C99358; std::ios_base::init((std::ios_base *)v38, &v25); v38[19] = -1; v38[18] = 0; v24[0] = &off_C993D4; v24[2] = &off_C993E8; v38[0] = &off_C993FC; v25 = &off_C99178; std::locale::locale((std::locale *)v26); v27 = nullptr; v28 = nullptr; v29 = nullptr; v30 = nullptr; v31 = nullptr; v32 = nullptr; v33 = 0; v34 = 0; v25 = &off_C992D8; v35 = nullptr; v36 = nullptr; v37 = 24; std::string::operator=((unsigned __int8 *)&v33, a2); v36 = nullptr; if ( (v37 & 8) != 0 ) { if ( (v33 & 1) != 0 ) { v7 = v35; v8 = v34; } else { v8 = (int)(unsigned __int8)v33 >> 1; v7 = (char *)&v33 + 1; } v9 = &v7[v8]; v36 = v9; if ( (v33 & 1) != 0 ) v10 = v35; else v10 = (char *)&v33 + 1; v27 = v10; v28 = v10; v29 = v9; } if ( (v37 & 0x10) != 0 ) { if ( (v33 & 1) != 0 ) { v11 = v34; v12 = v35; } else { v11 = (int)(unsigned __int8)v33 >> 1; v12 = (char *)&v33 + 1; } v36 = &v12[v11]; v13 = (v33 & 1) != 0 ? (v33 & 0xFFFFFFFE) - 1 : 10; std::string::resize((unsigned __int8 *)&v33, v13, 0); if ( (v33 & 1) != 0 ) { v14 = v35; v15 = v34; } else { v15 = (int)(unsigned __int8)v33 >> 1; v14 = (char *)&v33 + 1; } v32 = &v14[v15]; v31 = v14; v30 = v14; if ( v37 << 30 ) v31 = &v14[v11]; } v22[0] = 0; v22[1] = 0; v23 = nullptr; while ( 1 ) { v20 = std::getline,std::allocator>(v24, (int)v22, 44); if ( (*(_DWORD *)((char *)v20 + *(_DWORD *)(*v20 - 12) + 16) & 5) != 0 ) break; if ( (v22[0] & 1) != 0 ) v16 = v23; else v16 = (char *)v22 + 1; v17 = atoi(v16); v18 = (int *)a3[1]; v19 = a3[2]; v21 = v17; if ( (unsigned int)v18 >= v19 ) { std::vector::__push_back_slow_path(a3, &v21); } else { if ( v18 ) *v18 = v17; a3[1] += 4; } } std::string::~string((int)v22); std::basic_stringstream,std::allocator>::~basic_stringstream(v24); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source