shithub: riscv

Download patch

ref: 83e3b1ce1a3b5e89cdd76893ed24668543aeb688
parent: 3b9b7a6ab8b6e8c5eb37937b849d1e9f6106a386
author: aiju <[email protected]>
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();