mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix patch loading while a game is running
This commit is contained in:
parent
d9ad68bad6
commit
f646be0472
1
CHANGES
1
CHANGES
|
@ -43,6 +43,7 @@ Bugfixes:
|
|||
- Qt: Fix crash starting a GDB stub if a game isn't loaded
|
||||
- Qt: Fix crash when adjusting settings after closing a game
|
||||
- Qt: Fix crash when starting GDB stub after closing a game
|
||||
- Qt: Fix patch loading while a game is running
|
||||
Misc:
|
||||
- GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples
|
||||
- GBA Memory: Simplify memory API and use fixed bus width
|
||||
|
|
|
@ -254,10 +254,12 @@ void GameController::loadBIOS(const QString& path) {
|
|||
}
|
||||
|
||||
void GameController::loadPatch(const QString& path) {
|
||||
m_patch = path;
|
||||
if (m_gameOpen) {
|
||||
closeGame();
|
||||
m_patch = path;
|
||||
openGame();
|
||||
} else {
|
||||
m_patch = path;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue