// // PlayLayer::loadDynamicSaveObjects from 0x1001213d8 to 0x100121518 (320 bytes) // // 1 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x100121264 // // 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 PlayLayer::loadDynamicSaveObjects(PlayLayer *a1, std::vector *a2) { std::__vector_base::pointer begin; // x21 SavedObjectStateRef *end; // x22 GameObject *m_gameObject; // x20 cocos2d::CCPoint v6; // [xsp+8h] [xbp-38h] BYREF begin = a2->__begin_; end = a2->__end_; if ( a2->__begin_ != end ) { do { m_gameObject = begin->m_gameObject; *(_OWORD *)&m_gameObject->m_positionX = *(_OWORD *)&begin->m_positionX; m_gameObject->m_rotationXOffset = begin->m_rotationXOffset; m_gameObject->m_rotationYOffset = begin->m_rotationYOffset; GameObject::addToCustomScaleX(m_gameObject, begin->m_addToCustomScaleX); GameObject::addToCustomScaleY(m_gameObject, begin->m_addToCustomScaleY); ((void (__fastcall *)(GameObject *, float))m_gameObject->setRRotation)(m_gameObject, 0.0); ((void (__fastcall *)(GameObject *, float))m_gameObject->setRScale)(m_gameObject, 1.0); m_gameObject->m_unk4C4 = -1; m_gameObject->m_unk4CC = -1; ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))m_gameObject->getRealPosition)( &v6, m_gameObject); ((void (__fastcall *)(GameObject *, cocos2d::CCPoint *))m_gameObject->setPosition)(m_gameObject, &v6); ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))m_gameObject->getRealPosition)( &v6, m_gameObject); GameObject::setLastPosition(m_gameObject, &v6); ((void (__fastcall *)(GameObject *, __int64))m_gameObject->setObjectRectDirty)(m_gameObject, 1); m_gameObject->m_isDirty = 1; ((void (__fastcall *)(GameObject *, __int64))m_gameObject->setOrientedRectDirty)(m_gameObject, 1); ((void (__fastcall *)(PlayLayer *, GameObject *))a1->updateObjectSection)(a1, m_gameObject); ++begin; } while ( begin != end ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source