mirror of https://github.com/mgba-emu/mgba.git
Core: Allow sending thread requests to a crashed core (fixes #2785)
This commit is contained in:
parent
0701fb1997
commit
c84c31bdc0
1
CHANGES
1
CHANGES
|
@ -6,6 +6,7 @@ Emulation fixes:
|
|||
- GBA Memory: Make VRAM access stalls only apply to BG RAM
|
||||
- GBA Video: Disable BG target 1 blending when OBJ blending (fixes mgba.io/i/2722)
|
||||
Other fixes:
|
||||
- Core: Allow sending thread requests to a crashed core (fixes mgba.io/i/2785)
|
||||
- Qt: Fix crash when attempting to use OpenGL 2.1 to 3.1 (fixes mgba.io/i/2794)
|
||||
- Qt: Disable sync while running scripts from main thread (fixes mgba.io/i/2738)
|
||||
- Qt: Fix savestate preview sizes with different scales (fixes mgba.io/i/2560)
|
||||
|
|
|
@ -58,8 +58,19 @@ static void _waitOnInterrupt(struct mCoreThreadInternal* threadContext) {
|
|||
}
|
||||
|
||||
static void _pokeRequest(struct mCoreThreadInternal* threadContext) {
|
||||
if (threadContext->state == mTHREAD_RUNNING || threadContext->state == mTHREAD_PAUSED) {
|
||||
switch (threadContext->state) {
|
||||
case mTHREAD_RUNNING:
|
||||
case mTHREAD_PAUSED:
|
||||
case mTHREAD_CRASHED:
|
||||
threadContext->state = mTHREAD_REQUEST;
|
||||
break;
|
||||
case mTHREAD_INITIALIZED:
|
||||
case mTHREAD_REQUEST:
|
||||
case mTHREAD_INTERRUPTED:
|
||||
case mTHREAD_INTERRUPTING:
|
||||
case mTHREAD_EXITING:
|
||||
case mTHREAD_SHUTDOWN:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue