// // GJBaseGameLayer::exitStaticCamera from 0x880314 to 0x88052c (536 bytes) // // 2 xrefs: // > CameraTriggerGameObject::triggerObject @ 0x770570 // > @ 0x64ab8 // // 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 GJBaseGameLayer::exitStaticCamera( GJBaseGameLayer *a1, bool a2, bool a3, float a4, int a5, float a6, bool a7, float a8, bool a9) { _BOOL4 v10; // w26 _BOOL4 v11; // w25 _BOOL4 v13; // w24 cocos2d::CCDirector *v17; // x0 float v18; // s0 float v19; // s1 float x; // s0 float v21; // s0 float v22; // w0 float y; // s0 float v24; // s0 float v25; // w0 float v26; // [xsp+70h] [xbp+70h] float v27; // [xsp+74h] [xbp+74h] __int64 v28; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v29; // [xsp+80h] [xbp+80h] BYREF v10 = a2; v11 = a3; v13 = a7; if ( a9 ) { if ( a2 ) a1->m_gameState.m_unkBool28 = (unsigned __int8)&dword_0 + 1; if ( a3 ) a1->m_gameState.m_unkBool29 = 1; } v17 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v17); cocos2d::CCPoint::CCPoint( &v29, (float)(v26 * 0.5) / a1->m_gameState.m_cameraZoom, (float)(v27 * 0.5) / a1->m_gameState.m_cameraZoom); cocos2d::CCPoint::operator+(&v28, &a1->m_gameState.m_cameraPosition2, &v29); cocos2d::CCPoint::operator-(&v29, &v28, &a1->m_gameState.m_cameraOffset); cocos2d::CCPoint::operator=(&v28, v18, v19); if ( v10 && a1->m_gameState.m_unkPoint17.x != 0.0 ) { a1->m_gameState.m_unkPoint17.x = 0.0; a1->m_gameState.m_unkPoint18.x = 1.0; GJGameState::stopTweenAction(&a1->m_gameState, 10); x = a1->m_gameState.m_unkPoint4.x; a1->m_gameState.m_unkPoint19.x = a4; a1->m_gameState.m_unkPoint21.x = (float)a5; a1->m_gameState.m_unkPoint20.x = a6; a1->m_gameState.m_unkPoint22.x = (float)v13; a1->m_gameState.m_unkPoint23.x = a8; v21 = cocos2d::clampf(x, -10000.0, 10000.0); v22 = a1->m_gameState.m_unkPoint6.x; a1->m_gameState.m_unkPoint10.x = v21; a1->m_gameState.m_unkPoint5.x = v22; } if ( v11 ) { if ( a1->m_gameState.m_unkPoint17.y == 0.0 ) { if ( !a1->m_gameState.m_unkBool7 ) return; LABEL_16: GJBaseGameLayer::updateDualGround(a1, a1->m_player1, a1->m_gameState.m_dualRelated, 0, 0.0); return; } a1->m_gameState.m_unkPoint17.y = 0.0; a1->m_gameState.m_unkPoint18.y = 1.0; GJGameState::stopTweenAction(&a1->m_gameState, 11); y = a1->m_gameState.m_unkPoint4.y; a1->m_gameState.m_unkPoint19.y = a4; a1->m_gameState.m_unkPoint21.y = (float)a5; a1->m_gameState.m_unkPoint20.y = a6; a1->m_gameState.m_unkPoint22.y = (float)v13; a1->m_gameState.m_unkPoint23.y = a8; v24 = cocos2d::clampf(y, -10000.0, 10000.0); v25 = a1->m_gameState.m_unkPoint6.y; a1->m_gameState.m_unkPoint10.y = v24; a1->m_gameState.m_unkPoint5.y = v25; } if ( a1->m_gameState.m_unkBool7 && a1->m_gameState.m_unkPoint17.y == 0.0 ) goto LABEL_16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source