mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash when attempting to pause if a game is not running
This commit is contained in:
parent
41b591e501
commit
065474d14e
1
CHANGES
1
CHANGES
|
@ -61,6 +61,7 @@ Bugfixes:
|
||||||
- GBA Memory: Fix cycle counting for 32-bit load/stores
|
- GBA Memory: Fix cycle counting for 32-bit load/stores
|
||||||
- ARM7: Fix cycle counting for loads
|
- ARM7: Fix cycle counting for loads
|
||||||
- Qt: Pause game while open file dialogs are open (fixes #6 on GitHub)
|
- Qt: Pause game while open file dialogs are open (fixes #6 on GitHub)
|
||||||
|
- Qt: Fix crash when attempting to pause if a game is not running
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples
|
- GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples
|
||||||
- GBA Memory: Simplify memory API and use fixed bus width
|
- GBA Memory: Simplify memory API and use fixed bus width
|
||||||
|
|
|
@ -334,7 +334,7 @@ bool GameController::isPaused() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameController::setPaused(bool paused) {
|
void GameController::setPaused(bool paused) {
|
||||||
if (paused == GBAThreadIsPaused(&m_threadContext)) {
|
if (!m_gameOpen || paused == GBAThreadIsPaused(&m_threadContext)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (paused) {
|
if (paused) {
|
||||||
|
|
Loading…
Reference in New Issue