// // GJBaseGameLayer::getMinPortalY from 0x1001e71a0 to 0x1001e7270 (208 bytes) // // 4 xrefs: // > GJBaseGameLayer::getMaxPortalY @ 0x1001e729c // > GJBaseGameLayer::checkCollisions @ 0x1001e74cc // > PlayerObject::spiderTestJumpInternal @ 0x100224c48 // > DrawGridLayer::draw @ 0x10036a7b4 // // 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::getMinPortalY(GJBaseGameLayer *a1) { float result; // s0 float y; // s9 __int64 v4; // x0 float v5; // s9 if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 ) return fmaxf( a1->m_gameState.m_cameraOffset.y + (float)(*(float *)&a1->m_gameState.m_unkInt14 + (float)((float)(*(float *)&a1->m_gameState.m_unkInt11 * -0.5) / a1->m_gameState.m_cameraZoom)), 90.0); y = a1->m_gameState.m_cameraPosition2.y; v4 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer); result = 90.0; if ( (float)(y + (float)((float)(*(float *)(v4 + 4) + -1.0) / a1->m_gameState.m_cameraZoom)) > 90.0 ) { v5 = a1->m_gameState.m_cameraPosition2.y; return v5 + (float)((float)(*(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer) + 4) + -1.0) / a1->m_gameState.m_cameraZoom); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source