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

@ -14,7 +14,7 @@ headless_application::headless_application(int& argc, char** argv) : QCoreApplic
void headless_application::Init()
{
// Force init the emulator
InitializeEmulator("1", true); // TODO: get user from cli args if possible
InitializeEmulator("1", true, false); // TODO: get user from cli args if possible
// Create callbacks from the emulator, which reference the handlers.
InitializeCallbacks();