Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 6251df8

Browse files
committed
Merge branch 'skmp/fix-vjoy-osd' into alpha
Fixes (VJOY Edit, System Reboot, GL Resize, SH4::Stop on fb roms)
2 parents 3813d4d + 9ae4bee commit 6251df8

File tree

16 files changed

+420
-362
lines changed

16 files changed

+420
-362
lines changed

libswirl/gui/gui.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include "hw/maple/maple_if.h"
5252

5353
#include "libswirl.h"
54+
#include "gui/gui_renderer.h"
5455

5556
bool game_started;
5657

@@ -363,14 +364,13 @@ struct ReicastUI_impl : GUI {
363364
if (!game_file.empty())
364365
{
365366
if (gui_start_game(game_file))
366-
gui_state = ClosedNoResume;
367+
gui_state = Closed;
367368
}
368369
else
369370
gui_render_content();
370371
}
371372
break;
372373
case Closed:
373-
case ClosedNoResume:
374374
break;
375375
case Onboarding:
376376
gui_render_onboarding();
@@ -384,7 +384,7 @@ struct ReicastUI_impl : GUI {
384384
break;
385385
}
386386

387-
if (gui_state == ClosedNoResume)
387+
if (gui_state == Closed)
388388
gui_state = Closed;
389389
}
390390

@@ -924,7 +924,7 @@ struct ReicastUI_impl : GUI {
924924
{
925925
cfgSetVirtual("config", "image", "");
926926
if (gui_start_game(""))
927-
gui_state = ClosedNoResume;
927+
gui_state = Closed;
928928
}
929929
ImGui::PopID();
930930
#endif
@@ -939,7 +939,7 @@ struct ReicastUI_impl : GUI {
939939
if (ImGui::Selectable(game.name.c_str()))
940940
{
941941
if (gui_start_game(game.path))
942-
gui_state = ClosedNoResume;
942+
gui_state = Closed;
943943
}
944944
ImGui::PopID();
945945
}

libswirl/gui/gui_partials.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ extern f32 mo_wheel_delta;
4343

4444
extern int screen_dpi;
4545

46-
typedef enum { Welcome, Closed, Commands, Settings, ClosedNoResume, Main, Onboarding, VJoyEdit, VJoyEditCommands } GuiState;
46+
typedef enum { Welcome, Closed, Commands, Settings, Main, Onboarding, VJoyEdit, VJoyEditCommands } GuiState;
4747
extern GuiState gui_state;
4848
void ImGui_Impl_NewFrame();

0 commit comments

Comments
 (0)