git: 9front

Download patch

ref: 446c1bd0633174e0f55f1be763837190d6c2a301
parent: 9be052b2d6d72d31eff9b9167a135e4253585bcf
author: Michael Forney <mforney@mforney.org>
date: Wed Feb 17 06:20:13 EST 2021

games/snes: use enum constants KON and ENDX instead of their values

--- a/sys/src/games/snes/dsp.c
+++ b/sys/src/games/snes/dsp.c
@@ -120,10 +120,10 @@
 	if(p >= 0x80)
 		return;
 	switch(p){
-	case 0x4c:
+	case KON:
 		dsp[NEWKON] = v;
 		break;
-	case 0x7c:
+	case ENDX:
 		v = 0;
 		break;
 	}
--