From 30ec43741b1a33c0d0fcbafbf3f3cfea67d621c3 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 4 Feb 2017 18:30:50 -0800 Subject: [PATCH] GBA I/O: Handle audio registers specially when deserializing --- CHANGES | 1 + src/gba/io.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index eb7f0c29f..518621ede 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ Bugfixes: - GBA Savedata: Fix savedata unmasking (fixes mgba.io/i/441) - Util: Fix overflow when loading invalid UPS patches - Tools: Fix recurring multiple times over the same library + - GBA I/O: Handle audio registers specially when deserializing Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers diff --git a/src/gba/io.c b/src/gba/io.c index c788fb243..719c2be53 100644 --- a/src/gba/io.c +++ b/src/gba/io.c @@ -251,8 +251,8 @@ static const int _isRSpecialRegister[REG_MAX >> 1] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // Audio - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1, 0, 0, 0, 1, 0, + 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, @@ -292,9 +292,9 @@ static const int _isWSpecialRegister[REG_MAX >> 1] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Audio - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 1, 0, 0, 0, 0, 0, + 1, 1, 1, 0, 1, 0, 1, 0, + 1, 1, 1, 0, 1, 0, 1, 0, + 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, // DMA