mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Back out a hack that introduces incorrect behavior, even though it fixes a game
This commit is contained in:
parent
3dfa8bc547
commit
daf3ce76e7
1
CHANGES
1
CHANGES
|
@ -15,7 +15,6 @@ Bugfixes:
|
|||
- GBA: Fix bounds-checking on EEPROM access
|
||||
- GBA Audio: FIFOs should not poll DMAs that are not scheduled for audio
|
||||
- GBA BIOS: Initialize a variable that may be uninitialized in very rare cases
|
||||
- GBA Memory: Ensure changing the timing of a DMA reschedules it
|
||||
- GBA Memory: Allow SRAM to be 64kB
|
||||
- GBA Memory: Fix 32-bit loads from unaddress cartridge space
|
||||
- GBA Memory: Fix jumping to invalid memory when switching from Thumb to ARM
|
||||
|
|
|
@ -1256,12 +1256,6 @@ uint16_t GBAMemoryWriteDMACNT_HI(struct GBA* gba, int dma, uint16_t control) {
|
|||
struct GBAMemory* memory = &gba->memory;
|
||||
struct GBADMA* currentDma = &memory->dma[dma];
|
||||
int wasEnabled = GBADMARegisterIsEnable(currentDma->reg);
|
||||
int oldTiming = GBADMARegisterGetTiming(currentDma->reg);
|
||||
int newTiming = GBADMARegisterGetTiming(control);
|
||||
// This is probably a huge hack...verify what this does on hardware
|
||||
if (oldTiming && oldTiming != DMA_TIMING_CUSTOM && oldTiming != newTiming) {
|
||||
wasEnabled = false;
|
||||
}
|
||||
currentDma->reg = control;
|
||||
|
||||
if (GBADMARegisterIsDRQ(currentDma->reg)) {
|
||||
|
|
Loading…
Reference in New Issue