Qt: Fix patch loading while a game is running

This commit is contained in:
Jeffrey Pfau 2015-02-21 11:35:27 -08:00
parent d9ad68bad6
commit f646be0472
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
}