// // getFrameForStreak from 0x34eb50 to 0x34eca6 (342 bytes) // // 2 xrefs: // > PlayerObject::setupStreak @ 0x34ee24 // > PlayerObject::update @ 0x34f8e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall getFrameForStreak(int a1, int a2, float a3) { float v6; // s16 int FramesForStreak; // r4 int v8; // r7 char *v9; // r3 unsigned int v10; // r6 int v12; // [sp+0h] [bp-210h] BYREF const char *v13; // [sp+4h] [bp-20Ch] BYREF int v14; // [sp+8h] [bp-208h] unsigned int v15; // [sp+Ch] [bp-204h] BYREF unsigned int v16; // [sp+10h] [bp-200h] char *v17; // [sp+14h] [bp-1FCh] _BYTE v18[500]; // [sp+18h] [bp-1F8h] BYREF v6 = COERCE_FLOAT(getFrameTimeForStreak(a2)); FramesForStreak = getFramesForStreak(a2); v16 = 500; v15 = 0; v13 = "shipfire"; v14 = 0; v17 = v18; v8 = (int)floorf(a3 / v6) % FramesForStreak + 1; fmt::BasicWriter::operator<<(&v15, "shipfire", 0); if ( a2 <= 9 ) { v13 = "0"; v14 = 0; fmt::BasicWriter::operator<<(&v15, "0", 0); } v12 = a2; fmt::BasicWriter::FormatInt,char>>(&v15, a2, (int)&v12); v13 = "_"; v14 = 0; fmt::BasicWriter::operator<<(&v15, "_", 0); if ( v8 > 9 ) { if ( v8 > 99 ) goto LABEL_8; v9 = "0"; } else { v9 = "00"; } v13 = v9; v14 = 0; fmt::BasicWriter::operator<<(&v15, v9, 0); LABEL_8: v13 = (const char *)v8; fmt::BasicWriter::FormatInt,char>>(&v15, v8, (int)&v13); v13 = ".png"; v14 = 0; fmt::BasicWriter::operator<<(&v15, ".png", 0); v10 = v15; if ( v15 + 1 > v16 ) fmt::internal::Array::grow((int)&v15, v15 + 1); v17[v10] = 0; sub_776584(a1, v17); if ( v17 != v18 && v17 ) operator delete[](v17); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source