// // EditorPauseLayer::togglePreviewAnim from 0x1400dd140 to 0x1400dd2f4 (436 bytes) // // 2 xrefs: // > EditorPauseLayer::customSetup @ 0x1400dc368 // > @ 0x1406c89c4 // // 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 // // Hidden C++ exception states: #wind=2 void EditorPauseLayer::togglePreviewAnim(EditorPauseLayer *a1, cocos2d::CCObject *a2) { LevelEditorLayer *m_editorLayer; // rdi GameManager *v4; // rcx bool GameVariable; // al unsigned int i; // esi struct cocos2d::CCObject *v7; // rax EnhancedGameObject *v8; // rbx __int64 v9; // rdx void *v10; // [rsp+40h] [rbp+8h] void *v11; // [rsp+40h] [rbp+8h] if ( !qword_1406C2ED8 ) { v10 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } GameManager::toggleGameVariable((GameManager *)a1, "0118"); m_editorLayer = a1->m_editorLayer; v4 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v11 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v4 = (GameManager *)qword_1406C2ED8; } GameVariable = GameManager::getGameVariable(v4, "0118"); if ( m_editorLayer->m_previewAnimations != GameVariable ) { m_editorLayer->m_previewAnimations = GameVariable; for ( i = 0; i < cocos2d::CCArray::count(m_editorLayer->m_objects); ++i ) { v7 = cocos2d::CCArray::objectAtIndex(m_editorLayer->m_objects, i); v8 = (EnhancedGameObject *)v7; if ( v7[22].m_uAutoReleaseCount == 2 ) AnimatedGameObject::updateObjectAnimation((AnimatedGameObject *)v7); if ( !m_editorLayer->m_previewAnimations ) { if ( v8->getHasSyncedAnimation(v8) ) { v8->m_unk544 = 0.0; v8->m_animationStart = (float)-v8->m_unk548; v8->m_unkAnimationInt = 0; ((void (__fastcall *)(EnhancedGameObject *, __int64, __int64))v8->updateSyncedAnimation)(v8, v9, 0xFFFFFFFFLL); } if ( !m_editorLayer->m_previewAnimations && v8->getHasRotateAction(v8) ) EnhancedGameObject::updateRotateAction(v8, 0.0); } } } }