// // GJBaseGameLayer::shouldExitHackedLevel from 0x46cce0 to 0x46cd74 (148 bytes) // // 1 xrefs: // > PlayLayer::setupHasCompleted @ 0x31c3e0 // // 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 // bool GJBaseGameLayer::shouldExitHackedLevel(GJBaseGameLayer *a1) { std::vector *, std::allocator *>> *p_m_sectionSizes; // r0 int v2; // r1 int v3; // r2 std::vector **m_start; // lr int v5; // r4 std::vector **m_finish; // r5 int v7; // r0 int v8; // r5 std::vector *v9; // r12 int v10; // r3 int i; // r6 int v12; // r7 int v13; // r3 p_m_sectionSizes = &a1->m_sectionSizes; v2 = 0; v3 = 0; m_start = p_m_sectionSizes->m_start; v5 = 0; m_finish = p_m_sectionSizes->m_finish; v7 = 0; v8 = m_finish - m_start; while ( v2 < v8 ) { v9 = m_start[v2]; if ( v9 ) v10 = v9->m_finish - v9->m_start - 1; else v10 = -1; for ( i = 0; i <= v10; ++i ) { v12 = v9->m_start[i]; if ( v7 < v12 ) v7 = v12; if ( v12 > 0 ) ++v5; else ++v3; } ++v2; } if ( (float)((float)v3 / (float)v5) <= 0.9 ) v13 = 8000; else v13 = 4000; return v7 > v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source