mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix resetting key IRQ state (fixes #2716)
This commit is contained in:
parent
2ea0114ae2
commit
085ce4890d
1
CHANGES
1
CHANGES
|
@ -4,6 +4,7 @@ Features:
|
||||||
- Debugger: Add range watchpoints
|
- Debugger: Add range watchpoints
|
||||||
Emulation fixes:
|
Emulation fixes:
|
||||||
- GB Serialize: Don't write BGP/OBP when loading SCGB state (fixes mgba.io/i/2694)
|
- GB Serialize: Don't write BGP/OBP when loading SCGB state (fixes mgba.io/i/2694)
|
||||||
|
- GBA: Fix resetting key IRQ state (fixes mgba.io/i/2716)
|
||||||
- GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes mgba.io/i/2489)
|
- GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes mgba.io/i/2489)
|
||||||
Other fixes:
|
Other fixes:
|
||||||
- Qt: Manually split filename to avoid overzealous splitting (fixes mgba.io/i/2681)
|
- Qt: Manually split filename to avoid overzealous splitting (fixes mgba.io/i/2681)
|
||||||
|
|
|
@ -213,6 +213,7 @@ void GBAReset(struct ARMCore* cpu) {
|
||||||
gba->earlyExit = false;
|
gba->earlyExit = false;
|
||||||
gba->dmaPC = 0;
|
gba->dmaPC = 0;
|
||||||
gba->biosStall = 0;
|
gba->biosStall = 0;
|
||||||
|
gba->keysLast = 0x400;
|
||||||
if (gba->yankedRomSize) {
|
if (gba->yankedRomSize) {
|
||||||
gba->memory.romSize = gba->yankedRomSize;
|
gba->memory.romSize = gba->yankedRomSize;
|
||||||
gba->memory.romMask = toPow2(gba->memory.romSize) - 1;
|
gba->memory.romMask = toPow2(gba->memory.romSize) - 1;
|
||||||
|
|
Loading…
Reference in New Issue