// // GJBaseGameLayer::resetAreaObjectValues from 0x1001f4a8c to 0x1001f4ce4 (600 bytes) // // 14 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x1001f4434 // > GJBaseGameLayer::processAreaTransformGroupAction @ 0x1001f4e3c // > GJBaseGameLayer::processAreaRotateGroupAction @ 0x1001f5238 // > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1001f55e4 // > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1001f5978 // > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1001f5a30 // > GJBaseGameLayer::processAreaActions @ 0x1001f6370 // > GJBaseGameLayer::resetStoppedAreaObjects @ 0x1001f64f0 // > GJBaseGameLayer::transformAreaObjects @ 0x1001f67f4 // > GJBaseGameLayer::transformAreaObjects @ 0x1001f6938 // > GJBaseGameLayer::transformAreaObjects @ 0x1001f6a34 // > GJBaseGameLayer::rotateAreaObjects @ 0x1001f6d00 // > GJBaseGameLayer::rotateAreaObjects @ 0x1001f6e7c // > GJBaseGameLayer::rotateAreaObjects @ 0x1001f6f10 // // 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 // bool __fastcall GJBaseGameLayer::resetAreaObjectValues(GJBaseGameLayer *a1, GameObject *a2, bool a3) { signed int m_commandIndex; // w8 float32x2_t *p_m_scaleXOffset; // x23 float m_positionXOffset; // s0 bool v9; // w21 float m_positionYOffset; // s0 float32x2_t v11; // d0 float m_unk2A8; // s1 float m_unk2B0; // s0 unsigned int v14; // w8 int m_areaObjectsCount; // w8 std::vector *p_m_areaObjects; // x0 GameObject *v18; // [xsp+8h] [xbp-38h] BYREF m_commandIndex = a1->m_gameState.m_commandIndex; if ( a2->m_unk4C8 >= m_commandIndex ) return 0; p_m_scaleXOffset = (float32x2_t *)&a2->m_scaleXOffset; if ( a3 && !a2->m_isDecoration2 ) { if ( a2->m_unk4C4 != m_commandIndex ) { a2->m_lastPosition = (cocos2d::CCPoint)vcvt_f32_f64(*(float64x2_t *)&a2->m_positionX); a2->m_unk4C4 = m_commandIndex; GameObject::dirtifyObjectRect(a2); m_commandIndex = a1->m_gameState.m_commandIndex; } if ( a2->m_unk4CC != m_commandIndex ) { p_m_scaleXOffset[37] = *(float32x2_t *)&a2->m_scaleX; a2->m_unk4CC = m_commandIndex; GameObject::dirtifyObjectRect(a2); } } m_positionXOffset = a2->m_positionXOffset; v9 = m_positionXOffset != 0.0; if ( m_positionXOffset != 0.0 ) { a2->m_positionX = a2->m_positionX - m_positionXOffset; a2->m_positionXOffset = 0.0; a2->m_isUnmodifiedPosDirty = 1; } m_positionYOffset = a2->m_positionYOffset; if ( m_positionYOffset != 0.0 ) { a2->m_positionY = a2->m_positionY - m_positionYOffset; a2->m_positionYOffset = 0.0; v9 = 1; a2->m_isUnmodifiedPosDirty = 1; } v11 = p_m_scaleXOffset[1]; if ( v11.f32[0] != 0.0 || v11.f32[1] != 0.0 ) { *p_m_scaleXOffset = vsub_f32(*p_m_scaleXOffset, v11); *(float32x2_t *)&a2->m_scaleX = vsub_f32(*(float32x2_t *)&a2->m_scaleX, v11); p_m_scaleXOffset[1] = 0; if ( !a3 ) ((void (__fastcall *)(GameObject *, float))a2->setRScale)(a2, 1.0); } m_unk2A8 = a2->m_unk2A8; m_unk2B0 = a2->m_unk2B0; if ( m_unk2A8 != 0.0 || m_unk2B0 != 0.0 ) { a2->m_rotationXOffset = a2->m_rotationXOffset - m_unk2A8; a2->m_unk2A8 = 0.0; a2->m_rotationYOffset = a2->m_rotationYOffset - m_unk2B0; a2->m_unk2B0 = 0.0; if ( !a3 ) { ((void (__fastcall *)(GameObject *, float))a2->setRRotation)(a2, 0.0); v14 = a1->m_gameState.m_commandIndex; a2->m_unk4C8 = v14; goto LABEL_26; } a2->m_unk4C8 = a1->m_gameState.m_commandIndex; LABEL_23: v18 = a2; m_areaObjectsCount = a1->m_areaObjectsCount; p_m_areaObjects = &a1->m_areaObjects; if ( a1->m_areaObjectsIndex <= m_areaObjectsCount ) { sub_1000115B8((__int64)p_m_areaObjects, &v18); ++a1->m_areaObjectsIndex; m_areaObjectsCount = a1->m_areaObjectsCount; } else { p_m_areaObjects->__begin_[m_areaObjectsCount] = a2; } a1->m_areaObjectsCount = m_areaObjectsCount + 1; return v9; } v14 = a1->m_gameState.m_commandIndex; a2->m_unk4C8 = v14; if ( a3 ) goto LABEL_23; LABEL_26: if ( !a2->m_isDecoration2 ) { if ( a2->m_unk4C4 != v14 ) { a2->m_lastPosition = (cocos2d::CCPoint)vcvt_f32_f64(*(float64x2_t *)&a2->m_positionX); a2->m_unk4C4 = v14; GameObject::dirtifyObjectRect(a2); v14 = a1->m_gameState.m_commandIndex; } if ( a2->m_unk4CC != v14 ) { p_m_scaleXOffset[37] = *(float32x2_t *)&a2->m_scaleX; a2->m_unk4CC = v14; GameObject::dirtifyObjectRect(a2); } } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source