Add Emu.HasGui() to properly hide Qt dialogs in no-gui mode

This commit is contained in:
Megamouse 2019-12-03 08:32:28 +01:00
parent 84f9911163
commit 46ca39ec4d
10 changed files with 26 additions and 10 deletions

View file

@ -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);