// // GJBaseGameLayer::getCameraEdgeValue from 0x865f10 to 0x86606c (348 bytes) // // 7 xrefs: // > GJBaseGameLayer::updateCamera @ 0x87d930 // > GJBaseGameLayer::updateCamera @ 0x87d94c // > GJBaseGameLayer::updateCamera @ 0x87d968 // > GJBaseGameLayer::updateCamera @ 0x87d978 // > GJBaseGameLayer::updateCamera @ 0x87d98c // > GJBaseGameLayer::updateCamera @ 0x87df3c // > @ 0x6edc0 // // 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 GJBaseGameLayer::getCameraEdgeValue(GJBaseGameLayer *a1, int a2) { int v3; // w21 GameObject *MainObject; // x0 float v5; // s0 float v6; // s1 float result; // s0 int m_cameraEdgeValue2; // w23 int m_cameraEdgeValue0; // w23 cocos2d::CCPoint v10; // [xsp+58h] [xbp+58h] BYREF __int64 v11; // [xsp+60h] [xbp+60h] BYREF v3 = a2 - 1; switch ( a2 ) { case 1: m_cameraEdgeValue0 = a1->m_gameState.m_cameraEdgeValue0; goto LABEL_10; case 2: m_cameraEdgeValue0 = a1->m_gameState.m_cameraEdgeValue1; LABEL_10: cocos2d::CCPoint::CCPoint(&v10, &stru_1242DA8); MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_cameraEdgeValue0); if ( MainObject ) goto LABEL_3; return v10.x; case 3: m_cameraEdgeValue2 = a1->m_gameState.m_cameraEdgeValue2; goto LABEL_6; case 4: m_cameraEdgeValue2 = a1->m_gameState.m_cameraEdgeValue3; LABEL_6: cocos2d::CCPoint::CCPoint(&v10, &stru_1242DA8); MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_cameraEdgeValue2); if ( MainObject ) goto LABEL_3; LABEL_7: result = v10.y; break; default: cocos2d::CCPoint::CCPoint(&v10, &stru_1242DA8); MainObject = GJBaseGameLayer::tryGetMainObject(a1, 0); if ( MainObject ) { LABEL_3: MainObject->getRealPosition((GameObject *)&v11); cocos2d::CCPoint::operator=(&v10, v5, v6); } result = 0.0; switch ( v3 ) { case 0: case 1: return v10.x; case 2: case 3: goto LABEL_7; default: return result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source