mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Remove incorrect hack
This commit is contained in:
parent
c8a58dbc32
commit
3974042259
1
CHANGES
1
CHANGES
|
@ -22,7 +22,6 @@ Features:
|
|||
Bugfixes:
|
||||
- ARM7: Fix SWI and IRQ timings
|
||||
- GBA Audio: Force audio FIFOs to 32-bit
|
||||
- GBA Memory: Ensure changing the timing of a DMA reschedules it
|
||||
- GBA Memory: Improve Thumb open bus behavior
|
||||
- VFS: Fix resource leaks if some allocations fail
|
||||
- Video: Fix an issue with very long filenames
|
||||
|
|
|
@ -1313,12 +1313,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