Move settings-related vars to FSettings struct

- Just some more cleanups
This commit is contained in:
negativeExponent
2021-06-02 04:18:49 +08:00
parent 403f682eb7
commit 46ca02a206
11 changed files with 94 additions and 102 deletions

View File

@@ -34,6 +34,7 @@ void (*X6502_Run)(int32 cycles);
uint32 timestamp;
uint32 sound_timestamp;
uint32 overclocking = 0;
void FP_FASTAPASS(1) (*MapIRQHook)(int a);
#define _PC X.PC
@@ -54,7 +55,7 @@ void FP_FASTAPASS(1) (*MapIRQHook)(int a);
_tcount += __x; \
_count -= __x * 48; \
timestamp += __x; \
if (!overclocked) sound_timestamp += __x; \
if (!overclocking) sound_timestamp += __x; \
}
static INLINE uint8 RdMemNorm(uint32 A) {
@@ -516,7 +517,7 @@ static void X6502_RunDebug(int32 cycles) {
_tcount = 0;
if (MapIRQHook) MapIRQHook(temp);
if (!overclocked)
if (!overclocking)
FCEU_SoundCPUHook(temp);
_PC++;
@@ -613,7 +614,7 @@ void X6502_Run(int32 cycles)
temp = _tcount;
_tcount = 0;
if (MapIRQHook) MapIRQHook(temp);
if (!overclocked)
if (!overclocking)
FCEU_SoundCPUHook(temp);
X.PC = pbackus;
_PC++;