From 056e6527a6a5a75c94abe8243bd7526a05ae13f3 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sat, 1 Feb 2025 04:02:02 +0100 Subject: [PATCH] Windows: Don't run MFC-based editors if we have ImGui-alternative --- neo/sys/win32/win_main.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/neo/sys/win32/win_main.cpp b/neo/sys/win32/win_main.cpp index c381465c..8e1419eb 100644 --- a/neo/sys/win32/win_main.cpp +++ b/neo/sys/win32/win_main.cpp @@ -1286,10 +1286,20 @@ int SDL_main(int argc, char *argv[]) { MaterialEditorRun(); } else { +#ifdef IMGUI_DISABLE // DG: unless ImGui is disabled, the ImGui-based versions are used instead if ( com_editors & EDITOR_LIGHT ) { // in-game Light Editor LightEditorRun(); } + if ( com_editors & EDITOR_AF ) { + // in-game Articulated Figure Editor + AFEditorRun(); + } + if ( com_editors & EDITOR_PDA ) { + // in-game PDA Editor + PDAEditorRun(); + } +#endif if ( com_editors & EDITOR_SOUND ) { // in-game Sound Editor SoundEditorRun(); @@ -1298,10 +1308,7 @@ int SDL_main(int argc, char *argv[]) { // in-game Declaration Browser DeclBrowserRun(); } - if ( com_editors & EDITOR_AF ) { - // in-game Articulated Figure Editor - AFEditorRun(); - } + if ( com_editors & EDITOR_PARTICLE ) { // in-game Particle Editor ParticleEditorRun(); @@ -1310,12 +1317,6 @@ int SDL_main(int argc, char *argv[]) { // in-game Script Editor ScriptEditorRun(); } - /* - if ( com_editors & EDITOR_PDA ) { - // in-game PDA Editor - PDAEditorRun(); - } - */ } } #endif