mirror of
https://github.com/ARMSX2/ARMSX3.git
synced 2026-08-24 16:58:52 -07:00
Initialize emu callbacks before initializing the emulator
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user