mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Add Emu.HasGui() to properly hide Qt dialogs in no-gui mode
This commit is contained in:
parent
84f9911163
commit
46ca39ec4d
10 changed files with 26 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "Emu/System.h"
|
||||
#include "Emu/IdManager.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
|
|
|
|||
|
|
@ -250,6 +250,7 @@ class Emulator final
|
|||
u32 m_usrid{1};
|
||||
|
||||
bool m_force_boot = false;
|
||||
bool m_has_gui = true;
|
||||
|
||||
public:
|
||||
Emulator() = default;
|
||||
|
|
@ -372,6 +373,9 @@ public:
|
|||
bool IsStopped() const { return m_state == system_state::stopped; }
|
||||
bool IsReady() const { return m_state == system_state::ready; }
|
||||
auto GetStatus() const { return m_state.load(); }
|
||||
|
||||
bool HasGui() const { return m_has_gui; }
|
||||
void SetHasGui(bool has_gui) { m_has_gui = has_gui; }
|
||||
};
|
||||
|
||||
extern Emulator Emu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue