]> 4ch.mooo.com Git - 16.git/blobdiff - src/imfplay.c
p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[16.git] / src / imfplay.c
index 415bcfb85eb073448d8b392667076ed24fe41946..169ff8b5fa68e2a1696e8e80376afdec974a8045 100755 (executable)
@@ -31,9 +31,9 @@
 // #include <fcntl.h>
 // #include <math.h>
 // #include <dos.h>
-struct glob_game_vars  *ggvv;
 
-static void (interrupt *old_irq0)();
+extern struct glob_game_vars   *ggvv;
+
 /*static void (interrupt *old_irq0)();
 static volatile unsigned long irq0_ticks=0;
 static volatile unsigned int irq0_cnt=0,irq0_add=0,irq0_max=0;
@@ -111,6 +111,7 @@ int imf_load_music(const char *path, global_game_variables_t *gvar) {
        return 1;
 }
 */
+#ifndef LIBIRQ0
 // WARNING: subroutine call in interrupt handler. make sure you compile with -zu flag for large/compact memory models
 void interrupt irq0()
 {
@@ -123,6 +124,7 @@ void interrupt irq0()
                p8259_OCW2(0,P8259_OCW2_NON_SPECIFIC_EOI);
        }
 }
+#endif
 /*
 void imf_tick() {
        if (imf_delay_countdown == 0) {