mirror of https://github.com/mgba-emu/mgba.git
Qt: Prevent savestate window from opening while in multiplayer
This commit is contained in:
parent
98529063ba
commit
5b7e39e45f
1
CHANGES
1
CHANGES
|
@ -23,6 +23,7 @@ Misc:
|
|||
- ARM7: Force disable LTO on two files to work around a GCC bug
|
||||
- Libretro: Use anonymous memory mappers for large blocks of memory
|
||||
- Qt: Add 'Apply' button to settings window
|
||||
- Qt: Prevent savestate window from opening while in multiplayer
|
||||
|
||||
0.3.0: (2015-08-16)
|
||||
Features:
|
||||
|
|
|
@ -693,6 +693,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()));
|
||||
|
|
Loading…
Reference in New Issue