all repos — mgba @ b4d5540304ebcea46b1315196f83c18a0a8fa6e8

mGBA Game Boy Advance Emulator

Qt: Prevent savestate window from opening while in multiplayer
Jeffrey Pfau jeffrey@endrift.com
Mon, 14 Sep 2015 19:51:59 -0700
commit

b4d5540304ebcea46b1315196f83c18a0a8fa6e8

parent

1a1fc95f17919e4f587668b16f5cc7be141acca0

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -16,6 +16,7 @@ - GBA: Attempting to save a screenshot-style savestate should be allowed without libpng

- GBA: Better memory handling with PNG savestates - GBA Audio: Allow GBAAVStream to have no video callback - ARM7: Force disable LTO on two files to work around a GCC bug + - Qt: Prevent savestate window from opening while in multiplayer 0.3.0: (2015-08-16) Features:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -684,6 +684,10 @@ void Window::openStateWindow(LoadSave ls) {

if (m_stateWindow) { return; } + MultiplayerController* multiplayer = m_controller->multiplayerController(); + if (multiplayer && multiplayer->attached() > 1) { + return; + } bool wasPaused = m_controller->isPaused(); m_stateWindow = new LoadSaveState(m_controller); connect(this, SIGNAL(shutdown()), m_stateWindow, SLOT(close()));