Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Merge branch 'skmp/fix-vjoy-osd' into alpha
Browse files Browse the repository at this point in the history
Fixes (VJOY Edit, System Reboot, GL Resize, SH4::Stop on fb roms)
  • Loading branch information
skmp committed Jan 31, 2020
2 parents 3813d4d + 9ae4bee commit 6251df8
Show file tree
Hide file tree
Showing 16 changed files with 420 additions and 362 deletions.
10 changes: 5 additions & 5 deletions libswirl/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include "hw/maple/maple_if.h"

#include "libswirl.h"
#include "gui/gui_renderer.h"

bool game_started;

Expand Down Expand Up @@ -363,14 +364,13 @@ struct ReicastUI_impl : GUI {
if (!game_file.empty())
{
if (gui_start_game(game_file))
gui_state = ClosedNoResume;
gui_state = Closed;
}
else
gui_render_content();
}
break;
case Closed:
case ClosedNoResume:
break;
case Onboarding:
gui_render_onboarding();
Expand All @@ -384,7 +384,7 @@ struct ReicastUI_impl : GUI {
break;
}

if (gui_state == ClosedNoResume)
if (gui_state == Closed)
gui_state = Closed;
}

Expand Down Expand Up @@ -924,7 +924,7 @@ struct ReicastUI_impl : GUI {
{
cfgSetVirtual("config", "image", "");
if (gui_start_game(""))
gui_state = ClosedNoResume;
gui_state = Closed;
}
ImGui::PopID();
#endif
Expand All @@ -939,7 +939,7 @@ struct ReicastUI_impl : GUI {
if (ImGui::Selectable(game.name.c_str()))
{
if (gui_start_game(game.path))
gui_state = ClosedNoResume;
gui_state = Closed;
}
ImGui::PopID();
}
Expand Down
2 changes: 1 addition & 1 deletion libswirl/gui/gui_partials.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ extern f32 mo_wheel_delta;

extern int screen_dpi;

typedef enum { Welcome, Closed, Commands, Settings, ClosedNoResume, Main, Onboarding, VJoyEdit, VJoyEditCommands } GuiState;
typedef enum { Welcome, Closed, Commands, Settings, Main, Onboarding, VJoyEdit, VJoyEditCommands } GuiState;
extern GuiState gui_state;
void ImGui_Impl_NewFrame();
Loading

0 comments on commit 6251df8

Please sign in to comment.