Add overclocking - backported from FCEUX with mods

This commit is contained in:
twinaphex
2016-02-22 18:36:09 +01:00
parent 479d5d8e37
commit 417b8c6022
8 changed files with 114 additions and 33 deletions

View File

@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include "fceu.h"
#include "fceu-types.h"
#include "x6502.h"
#include "fceu.h"
@@ -48,6 +49,7 @@
uint64 timestampbase;
extern int totalscanlines;
FCEUGI *GameInfo = NULL;
void (*GameInterface)(int h);
@@ -460,6 +462,8 @@ void FCEU_ResetVidSys(void)
PAL = w ? 1 : 0;
totalscanlines = normal_scanlines + (overclocked ? extrascanlines : 0);
FCEUPPU_SetVideoSystem(w);
SetSoundVariables();
}