Win32 - save Turbo frameskip amount to config so it can be customized by user

This commit is contained in:
adelikat 2010-06-12 17:41:15 +00:00
parent 38c4c3d228
commit a7bb263e13
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
12-june-2010 - adelikat - Save Turbo frame skip amount to config so that it can be customized by user
12-june-2010 - adelikat - Lua - fix speed.mode() so that normal turns off turbo
12-june-2010 - CaH4e3 - Fix Young Indiana Jones Chronicals
10-june-2010 - Deign - Fix Ram Search to only display valid RAM addresses (0000-07FF and 6000-7FFF)
10-june-2010 - zeromus - add luasocket to built in lua library
09-june-2010 - adelikat - Movies - Fixed read-only loadstate error logic & messages 09-june-2010 - adelikat - Movies - Fixed read-only loadstate error logic & messages
07-june-2010 - mart0258 - Movie loading now faster - TAS savestates moved from class MovieRecord to class MovieData 07-june-2010 - mart0258 - Movie loading now faster - TAS savestates moved from class MovieRecord to class MovieData
07-june-2010 - adelikat - Lua - new function: gui.screenshotas() 07-june-2010 - adelikat - Lua - new function: gui.screenshotas()

View File

@ -66,6 +66,7 @@ extern bool replaceP2StartWithMicrophone;
extern bool SingleInstanceOnly; extern bool SingleInstanceOnly;
extern bool oldInputDisplay; extern bool oldInputDisplay;
extern bool fullSaveStateLoads; extern bool fullSaveStateLoads;
extern int frameSkipAmt;
//window positions and sizes: //window positions and sizes:
extern int ChtPosX,ChtPosY; extern int ChtPosX,ChtPosY;
@ -235,6 +236,7 @@ static CFGSTRUCT fceuconfig[] = {
AC(allowUDLR), AC(allowUDLR),
AC(debuggerSaveLoadDEBFiles), AC(debuggerSaveLoadDEBFiles),
AC(fullSaveStateLoads), AC(fullSaveStateLoads),
AC(frameSkipAmt),
//window positions //window positions
AC(ChtPosX), AC(ChtPosX),

View File

@ -116,7 +116,7 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count);
void ApplyDefaultCommandMapping(void); void ApplyDefaultCommandMapping(void);
// Internal variables // Internal variables
int frameSkipAmt = 18;
uint8 *xbsave = NULL; uint8 *xbsave = NULL;
int eoptions = EO_BGRUN | EO_FORCEISCALE; int eoptions = EO_BGRUN | EO_FORCEISCALE;
@ -825,7 +825,7 @@ doloopy:
{ {
if (!frameSkipCounter) if (!frameSkipCounter)
{ {
frameSkipCounter = 18; frameSkipCounter = frameSkipAmt;
skippy = 0; skippy = 0;
} }
else else