// // LevelEditorLayer::updatePreviewParticles from 0x1000c1f30 to 0x1000c2042 (274 bytes) // // 8 xrefs: // > LevelEditorLayer::updateEditorMode @ 0x1000adcdf // > LevelEditorLayer::onPlaytest @ 0x1000c611d // > LevelEditorLayer::onStopPlaytest @ 0x1000c6dd9 // > MapSelectLayer::init @ 0x10025253f // > EditorPauseLayer::togglePreviewParticles @ 0x10027f01a // > EditorOptionsLayer::onClose @ 0x100288f97 // > EditorUI::handleEditorAction @ 0x10060ca5e // > EditorUI::toggleViewOption @ 0x10063e8fb // // 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 12:20:34 +0000 // __int64 __fastcall LevelEditorLayer::updatePreviewParticles(__int64 a1, __int64 a2, __int64 a3) { unsigned __int64 v4; // xmm0_8 __int64 v5; // rax __int64 v6; // rdi __int64 v7; // rdx char GameVariable; // al __int64 v9; // rax __int64 result; // rax unsigned int i; // r14d int v12; // eax _BYTE *v13; // rax _BYTE *v14; // r15 v4 = GameManager::sharedState(a1, a2, a3).u64[0]; v6 = v5; *(_BYTE *)(a1 + 14012) = GameManager::getGameVariable(v5, "0117"); GameVariable = 1; if ( !*(_BYTE *)(a1 + 14016) ) { v4 = GameManager::sharedState(v6, "0117", v7).u64[0]; GameVariable = GameManager::getGameVariable(v9, "0137"); } *(_BYTE *)(a1 + 14015) = GameVariable; result = sub_1007FEF90(*(_QWORD *)(a1 + 14088)); if ( (_DWORD)result ) { for ( i = 0; i < (unsigned int)result; ++i ) { v13 = (_BYTE *)sub_1007FEFE0(*(_QWORD *)(a1 + 14088), i); v14 = v13; if ( *(_BYTE *)(a1 + 14012) == 1 ) { v13[1785] = 0; if ( (*(unsigned __int8 (__fastcall **)(_BYTE *, double))(*(_QWORD *)v13 + 352LL))(v13, *(double *)&v4) ) (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v14 + 1400LL))(v14); v12 = 50; v4 = 0; if ( *(_BYTE *)(a1 + 14015) ) goto LABEL_9; } else { v13[1785] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v13 + 1408LL))(v13); v12 = 255; } if ( *(_DWORD *)(a1 + 1972) == 1 ) v12 = 0; HIDWORD(v4) = 0; *(float *)&v4 = (float)v12; LABEL_9: ParticleGameObject::updateParticlePreviewArtOpacity(v14, *(double *)&v4); result = sub_1007FEF90(*(_QWORD *)(a1 + 14088)); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source