// // GJGameLevel::scoreVectorToString from 0x4dc2ec to 0x4dc3ce (226 bytes) // // 1 xrefs: // > GJGameLevel::storeNewLocalScore @ 0x4dc6e8 // // 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::scoreVectorToString(int *a1, int a2, int *a3, int a4) { int v6; // r0 int *v7; // r1 int v8; // r2 unsigned int v9; // r4 int v10; // r2 int v11; // r3 const char *v12; // r0 const char *v13; // r4 size_t v14; // r0 int v16; // [sp+4h] [bp-218h] BYREF int v17[3]; // [sp+8h] [bp-214h] BYREF unsigned int v18[3]; // [sp+14h] [bp-208h] BYREF char v19; // [sp+20h] [bp-1FCh] BYREF v6 = *a3; v7 = (int *)a3[1]; if ( a4 == 1 ) { LOBYTE(v16) = 0; std::__sort &,int *>(v6, v7, &v16); } else { LOBYTE(v17[0]) = 0; std::__sort &,int *>(v6, v7, v17); } v8 = a3[1]; if ( (unsigned int)(v8 - *a3) > 0x2B ) { v10 = v8 - 4; while ( 1 ) { v11 = a3[1]; if ( v10 == v11 ) break; a3[1] = v11 - 4; } } v9 = 0; v18[0] = 0; v18[1] = 500; v18[2] = (unsigned int)&v19; while ( v9 < (a3[1] - *a3) >> 2 ) { if ( v9 ) { v17[1] = (int)","; v17[2] = 0; fmt::BasicWriter::operator<<(v18, ",", 0); } fmt::BasicWriter::operator<<(v18, *(_DWORD *)(*a3 + 4 * v9++)); } v12 = (const char *)fmt::BasicWriter::c_str((int *)v18); *a1 = 0; a1[1] = 0; v13 = v12; a1[2] = 0; v14 = strlen(v12); std::string::__init(a1, v13, v14); fmt::internal::Array::free((int)v18); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source