ref: 10a9c3393731bc96c1de8f59ed5308ed27a7c1cc
parent: e6b2199ccabdf5cf540e278a026845ea98f357c3
author: aiju <aiju@phicode.de>
date: Sat Apr 14 16:53:42 EDT 2012
games/gb: crash and audio fix
--- a/sys/src/games/gb/audio.c
+++ b/sys/src/games/gb/audio.c
@@ -170,6 +170,7 @@
ch4sr |= k;
ch4c = 0;
}
+ ch4c++;
if(ch4sr & 1)
ch4s = -1;
else
--- a/sys/src/games/gb/state.c
+++ b/sys/src/games/gb/state.c
@@ -81,6 +81,7 @@
clock = get32();
ppuclock = get32();
divclock = get32();
+ timerclock = get32();
timerfreq = get32();
timer = get32();
rombank = get32();
--
⑨