]> Shamusworld >> Repos - thunder/blobdiff - src/ym2151.c
Removed useless cruft, fixed off-by-one bug in screen render.
[thunder] / src / ym2151.c
index 46776eedba4887412417a013de2354836f722d58..2074a4c3cfae96cbd183f622a715edca98644697 100644 (file)
@@ -1,10 +1,17 @@
+//
+// Jarek Burczynski's YM2151 emulator
+//
+// Cleaned of most MAMEisms & cleaned up in general by James Hammons
+// (this is mostly a placeholder until I write my own)
+//
+
+#include "ym2151.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
 #include <stdint.h>
-//#include "driver.h"
-#include "ym2151.h"
 
 
 // Missing shit (from M.A.M.E.)
 #if 1
 #define PI 3.1415629535897932338
 static FILE * errorlog = 0;
-int cpu_scalebyfcount(int);
-void timer_remove(void *);
-void * timer_set(int, int, void (*)(int));
+//int cpu_scalebyfcount(int);
+//void timer_remove(void *);
+//void * timer_set(int, int, void (*)(int));
+
+// Bogus M.A.M.E. shite
+int cpu_scalebyfcount(int f) { return f; }
+void timer_remove(void * foo) { printf("STUB: timer_remove()\n"); }
+void * timer_set(int foo, int bar, void (* baz)(int)) { printf("STUB: timer_set()\n"); return 0; }
+
 #endif