Move settings-related vars to FSettings struct
- Just some more cleanups
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user