mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-19 08:58:56 +00:00
Windows: Don't run MFC-based editors if we have ImGui-alternative
This commit is contained in:
parent
1004714682
commit
056e6527a6
1 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue