// // GJBaseGameLayer::convertToClosestDirection from 0x1001ef10c to 0x1001ef168 (92 bytes) // // 2 xrefs: // > PlayerObject::redirectDash @ 0x100225bb0 // > PlayerObject::redirectPlayerForce @ 0x10022d05c // // 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 // float __fastcall GJBaseGameLayer::convertToClosestDirection(float a1, float a2) { if ( (float)-a2 > a1 ) return a1 + (float)(ceilf(floorf(fabsf(a1) / a2) * 0.5) * (float)(a2 + a2)); if ( a1 > a2 ) return a1 - (float)(ceilf(floorf(fabsf(a1) / a2) * 0.5) * (float)(a2 + a2)); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source