From e09b3a980d58c06032c6ab65eeb7a04408dd1ad6 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Tue, 13 Feb 2018 00:55:05 +0100 Subject: Make 2 cycles oc profiles. --- src/snes9x.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/snes9x.h b/src/snes9x.h index 065b98d..b051828 100644 --- a/src/snes9x.h +++ b/src/snes9x.h @@ -134,6 +134,7 @@ enum }; extern bool overclock_cycles; +extern int one_c, slow_one_c, two_c; #define DEBUG_MODE_FLAG (1 << 0) #define TRACE_FLAG (1 << 1) @@ -149,9 +150,9 @@ extern bool overclock_cycles; #define IRQ_PENDING_FLAG (1 << 11) #ifdef VAR_CYCLES -#define ONE_CYCLE (overclock_cycles ? 4 : 6) -#define SLOW_ONE_CYCLE (overclock_cycles ? 4 : 8) -#define TWO_CYCLES (overclock_cycles ? 6 : 12) +#define ONE_CYCLE (overclock_cycles ? one_c : 6) +#define SLOW_ONE_CYCLE (overclock_cycles ? slow_one_c : 8) +#define TWO_CYCLES (overclock_cycles ? two_c : 12) #else #define ONE_CYCLE 1 #define SLOW_ONE_CYCLE 1 -- cgit v1.2.3