aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTatsuya792018-02-13 00:44:51 +0100
committerTatsuya792018-02-13 00:44:51 +0100
commitef0c8e3cd5f55e838f0e01b50d865f9b2f309064 (patch)
tree84bfc9b1009cf939b65da9e4b0294342b77400dc /source
parent9cc3ad1599ad7e9edcf9e594a3a6e365fed950f8 (diff)
downloadsnesemu-ef0c8e3cd5f55e838f0e01b50d865f9b2f309064.tar.gz
snesemu-ef0c8e3cd5f55e838f0e01b50d865f9b2f309064.tar.bz2
snesemu-ef0c8e3cd5f55e838f0e01b50d865f9b2f309064.zip
Make 2 cycles oc profiles.
Diffstat (limited to 'source')
-rw-r--r--source/snes9x.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/snes9x.h b/source/snes9x.h
index 4a4364c..11dc1ff 100644
--- a/source/snes9x.h
+++ b/source/snes9x.h
@@ -46,9 +46,9 @@
#define SNES_CYCLES_PER_SCANLINE ((uint32_t) ((SNES_SCANLINE_TIME / SNES_CLOCK_LEN) * 6 + 0.5))
-#define ONE_CYCLE (overclock_cycles ? 4u : 6u)
-#define SLOW_ONE_CYCLE (overclock_cycles ? 4u : 8u)
-#define TWO_CYCLES (overclock_cycles ? 6u : 12u)
+#define ONE_CYCLE (overclock_cycles ? one_c : 6u)
+#define SLOW_ONE_CYCLE (overclock_cycles ? slow_one_c : 8u)
+#define TWO_CYCLES (overclock_cycles ? two_c : 12u)
#define SNES_TR_MASK (1u << 4)
#define SNES_TL_MASK (1u << 5)
@@ -64,6 +64,7 @@
#define SNES_B_MASK (1u << 15)
extern bool overclock_cycles;
+extern int one_c, slow_one_c, two_c;
enum
{