attempt to fix build
authornotaz <notasas@gmail.com>
Fri, 14 Jul 2023 20:09:58 +0000 (23:09 +0300)
committernotaz <notasas@gmail.com>
Fri, 14 Jul 2023 20:09:58 +0000 (23:09 +0300)
libpcsxcore/lightrec/plugin.c
libpcsxcore/psxinterpreter.h

index dd7cc73..64b353d 100644 (file)
@@ -12,6 +12,7 @@
 #include "../psxhw.h"
 #include "../psxmem.h"
 #include "../r3000a.h"
+#include "../psxinterpreter.h"
 #include "../new_dynarec/events.h"
 
 #include "../frontend/main.h"
@@ -420,8 +421,6 @@ static int lightrec_plugin_init(void)
        return 0;
 }
 
-extern void intExecuteBlock();
-
 static void lightrec_plugin_execute_internal(bool block_only)
 {
        struct lightrec_registers *regs;
@@ -436,7 +435,7 @@ static void lightrec_plugin_execute_internal(bool block_only)
                next_interupt = psxRegs.cycle;
 
        if (use_pcsx_interpreter) {
-               intExecuteBlock();
+               intExecuteBlock(0);
        } else {
                lightrec_reset_cycle_count(lightrec_state, psxRegs.cycle);
 
index b3652c0..fe289b0 100644 (file)
@@ -9,6 +9,6 @@ void gteNULL(struct psxCP2Regs *regs);
 extern void (*psxCP2[64])(struct psxCP2Regs *regs);
 
 // called by lightrec
-void intExecuteBlock();
+void intExecuteBlock(enum blockExecCaller caller);
 
 #endif // __PSXINTERPRETER_H__