// // LevelEditorLayer::updatePreviewParticles from 0x140401090 to 0x140401198 (264 bytes) // // 6 xrefs: // > EditorUI::handleEditorAction @ 0x1401c2e84 // > EditorUI::toggleViewOption @ 0x1401f86e5 // > LevelEditorLayer::updateEditorMode @ 0x1403fa62a // > LevelEditorLayer::onPlaytest @ 0x1403ff0cb // > LevelEditorLayer::onStopPlaytest @ 0x140400200 // > @ 0x140925ad8 // // 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=2 unsigned int __fastcall LevelEditorLayer::updatePreviewParticles(__int64 a1) { __int64 v2; // rcx __int64 v3; // rcx bool GameVariable; // al unsigned int v5; // edi unsigned int result; // eax struct cocos2d::CCObject *v7; // rax void *v8; // [rsp+30h] [rbp+8h] void *v9; // [rsp+30h] [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; } *(_BYTE *)(a1 + 14668) = GameManager::getGameVariable(v2, "0117"); if ( *(_BYTE *)(a1 + 14672) ) goto LABEL_7; v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v9 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } GameVariable = GameManager::getGameVariable(v3, "0137"); if ( GameVariable ) LABEL_7: GameVariable = 1; *(_BYTE *)(a1 + 14671) = GameVariable; v5 = 0; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 14744)); if ( result ) { do { v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 14744), v5); LevelEditorLayer::updatePreviewParticle(a1, v7); ++v5; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 14744)); } while ( v5 < result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source