// // GJGameLevel::saveNewScore from 0x7392cc to 0x739428 (348 bytes) // // 6 xrefs: // > PlayLayer::levelComplete @ 0x5d13cc // > PlayLayer::levelComplete @ 0x5d1430 // > PlayLayer::levelComplete @ 0x5d153c // > GJGameLevel::handleStatsConflict @ 0x739608 // > GJGameLevel::handleStatsConflict @ 0x73967c // > @ 0xc6ae0 // // 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 // __int64 __fastcall GJGameLevel::saveNewScore( GJGameLevel *this, int a2, int a3, int a4, int a5, int a6, __int64 a7, unsigned __int8 a8) { int v15; // w1 unsigned int v16; // w22 int m_bestPoints; // w1 int m_clicksTime; // w2 int m_ticksTime; // w3 int m_coinsTime; // w4 int m_bestTime; // w0 int v23; // w1 int m_clicksPoints; // w5 int m_ticksPoints; // w6 int m_coinsPoints; // w7 if ( a3 ) { v16 = 0; if ( a2 ) { m_bestPoints = this->m_bestPoints; if ( a8 | (m_bestPoints == 0) || a2 > m_bestPoints ) { m_clicksTime = this->m_clicksTime; m_ticksTime = this->m_ticksTime; m_coinsTime = this->m_coinsTime; m_bestTime = this->m_bestTime; this->m_ticksPoints = a4; v16 = 1; this->m_clicksPoints = a5; this->m_coinsPoints = a6; this->m_bestPoints = a2; this->m_platformerSeed = generateBestHash(m_bestTime, a2, m_clicksTime, m_ticksTime, m_coinsTime, a5, a4, a6); sub_D18EA8(&this->m_inputsPoints, a7); this->m_savedPoints = 1; } } } else if ( a2 <= 0 ) { v16 = 0; } else { v15 = this->m_bestTime; if ( a8 | (v15 == 0) || (v16 = 0, a2 < v15) ) { v23 = this->m_bestPoints; m_clicksPoints = this->m_clicksPoints; m_ticksPoints = this->m_ticksPoints; m_coinsPoints = this->m_coinsPoints; this->m_ticksTime = a4; v16 = 1; this->m_clicksTime = a5; this->m_coinsTime = a6; this->m_bestTime = a2; this->m_platformerSeed = generateBestHash(a2, v23, a5, a4, a6, m_clicksPoints, m_ticksPoints, m_coinsPoints); sub_D18EA8(&this->m_inputsTime, a7); this->m_savedTime = 1; } } GJGameLevel::storeNewLocalScore(this, a2, a3); return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source