diff options
author | 2016-01-11 10:21:21 +0100 | |
---|---|---|
committer | 2016-01-11 10:21:21 +0100 | |
commit | 04a5484b49bc648c93c6e4d22912456b147c37d4 (patch) | |
tree | 40dbb58e6fa60e5f04e9c81a71f45266189c57de /src/emu/machine.cpp | |
parent | e96fd34dd817f1113daf9e6b099a8f40cfd1ed6d (diff) |
change initialization order, removes need for additional checks (nw)
Diffstat (limited to 'src/emu/machine.cpp')
-rw-r--r-- | src/emu/machine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index c9b72fde6e4..24bc712de15 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -224,6 +224,9 @@ void running_machine::start() // allocate a soft_reset timer m_soft_reset_timer = m_scheduler.timer_alloc(timer_expired_delegate(FUNC(running_machine::soft_reset), this)); + // intialize UI input + m_ui_input = std::make_unique<ui_input_manager>(*this); + // init the osd layer m_manager.osd().init(*this); @@ -241,9 +244,6 @@ void running_machine::start() if (newbase != 0) m_base_time = newbase; - // intialize UI input - m_ui_input = std::make_unique<ui_input_manager>(*this); - // initialize the streams engine before the sound devices start m_sound = std::make_unique<sound_manager>(*this); |