Initialize emu callbacks before initializing the emulator

This commit is contained in:
Megamouse
2026-08-10 12:35:49 +02:00
parent f48ca59235
commit de13ae4753
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -23,12 +23,12 @@ headless_application::headless_application(int& argc, char** argv) : QCoreApplic
bool headless_application::Init()
{
// Force init the emulator
InitializeEmulator(m_active_user.empty() ? "00000001" : m_active_user, false, true);
// Create callbacks from the emulator, which reference the handlers.
InitializeCallbacks();
// Force init the emulator
InitializeEmulator(m_active_user.empty() ? "00000001" : m_active_user, false, true);
// Create connects to propagate events throughout Gui.
InitializeConnects();
+3 -3
View File
@@ -171,12 +171,12 @@ bool gui_application::Init()
m_active_user = m_persistent_settings->GetCurrentUser("00000001").toStdString();
}
// Force init the emulator
InitializeEmulator(m_active_user, m_show_gui, false);
// Create callbacks from the emulator, which reference the handlers.
InitializeCallbacks();
// Force init the emulator
InitializeEmulator(m_active_user, m_show_gui, false);
// Create connects to propagate events throughout Gui.
InitializeConnects();