// // GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1001e452c to 0x1001e45e4 (184 bytes) // // 2 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x1001e4230 // > PlayerObject::spiderTestJumpInternal @ 0x10022554c // // 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 // void __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(GJBaseGameLayer *a1, PlayerObject *a2, float a3) { cocos2d::CCDirector *v6; // x0 float v7; // [xsp+Ch] [xbp-24h] cocos2d::CCSize WinSize; // 0:kr00_8.8 if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways ) { v6 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v6); if ( *(float *)(((__int64 (__fastcall *)(PlayerObject *, float, float))a2->getPosition)( a2, WinSize.width, WinSize.height) + 4) > (float)((float)(a1->m_gameState.m_cameraPosition.y + v7) + a3) || *(float *)(((__int64 (__fastcall *)(PlayerObject *))a2->getPosition)(a2) + 4) < (float)(a1->m_gameState.m_cameraPosition.y - a3) ) { a1->m_gameState.m_unkBool29 = 1; GJBaseGameLayer::updateCamera(a1, 0.0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source