mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +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
|
|
@ -44,8 +44,10 @@
|
|||
#endif
|
||||
|
||||
/** Emu.Init() wrapper for user manager */
|
||||
bool main_application::InitializeEmulator(const std::string& user, bool force_init)
|
||||
bool main_application::InitializeEmulator(const std::string& user, bool force_init, bool show_gui)
|
||||
{
|
||||
Emu.SetHasGui(show_gui);
|
||||
|
||||
// try to set a new user
|
||||
const bool user_was_set = Emu.SetUsr(user);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue