// // LevelEditorLayer::updatePreviewAnim from 0x140400e80 to 0x140400ff7 (375 bytes) // // 2 xrefs: // > EditorUI::toggleViewOption @ 0x1401f86f6 // > @ 0x140925a78 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:54 +0000 // // Hidden C++ exception states: #wind=1 unsigned int __fastcall LevelEditorLayer::updatePreviewAnim(__int64 a1) { __int64 v2; // rcx unsigned int result; // eax unsigned int v4; // esi struct cocos2d::CCObject *v5; // rax __int64 v6; // rbx __int64 v7; // rdx void *v8; // [rsp+40h] [rbp+8h] v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v8 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } result = GameManager::getGameVariable(v2, "0118"); if ( *(_BYTE *)(a1 + 14669) != (_BYTE)result ) { *(_BYTE *)(a1 + 14669) = result; v4 = 0; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 3536)); if ( result ) { do { v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 3536), v4); v6 = (__int64)v5; if ( *((_DWORD *)v5 + 314) == 2 ) AnimatedGameObject::updateObjectAnimation(v5); if ( !*(_BYTE *)(a1 + 14669) ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1576LL))(v6) ) { *(_DWORD *)(v6 + 1380) = 0; *(float *)(v6 + 1372) = (float)-(*(_BYTE *)(v6 + 1384) != 0); *(_DWORD *)(v6 + 1444) = 0; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v6 + 1696LL))(v6, v7, 0xFFFFFFFFLL); } if ( !*(_BYTE *)(a1 + 14669) ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1584LL))(v6) ) EnhancedGameObject::updateRotateAction(v6, 0.0); } } ++v4; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 3536)); } while ( v4 < result ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source