Lua - added FCEU.lagged() function
This commit is contained in:
parent
810c2ae53f
commit
a5ff19b58c
|
@ -1,4 +1,5 @@
|
|||
---version 2.0.4 yet to be released---
|
||||
08-mar-2009 - adelikat - Lua - added FCEU.lagged() function
|
||||
08-mar-2009 - adelikat - Lua - added zapper.read() function
|
||||
07-mar-2009 - adelikat - Lua - added FCEU.lagcount() function
|
||||
04-mar-2009 - adelikat - win32 - Fix bug so that Escape can now be assigned as a hotkey
|
||||
|
|
|
@ -689,6 +689,12 @@ int fceu_lagcount(lua_State *L) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int fceu_lagged (lua_State *L) {
|
||||
|
||||
bool Lag_Frame = FCEUI_GetLagged();
|
||||
lua_pushboolean(L, Lag_Frame);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// string movie.mode()
|
||||
//
|
||||
|
@ -1570,6 +1576,7 @@ static const struct luaL_reg fceulib [] = {
|
|||
{"setrenderplanes", fceu_setrenderplanes},
|
||||
{"message", fceu_message},
|
||||
{"lagcount", fceu_lagcount},
|
||||
{"lagged", fceu_lagged},
|
||||
{NULL,NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -426,6 +426,12 @@ int FCEUI_GetLagCount(void)
|
|||
return lagCounter;
|
||||
}
|
||||
|
||||
bool FCEUI_GetLagged(void)
|
||||
{
|
||||
if (lagFlag) return true;
|
||||
else return false;
|
||||
}
|
||||
|
||||
bool FCEUMOV_ShouldPause(void)
|
||||
{
|
||||
if(pauseframe && currFrameCounter == pauseframe)
|
||||
|
|
|
@ -75,6 +75,7 @@ inline bool FCEUMOV_IsRecording() { return FCEUMOV_Mode(MOVIEMODE_RECORD); }
|
|||
bool FCEUMOV_ShouldPause(void);
|
||||
int FCEUMOV_GetFrame(void);
|
||||
int FCEUI_GetLagCount(void);
|
||||
bool FCEUI_GetLagged(void);
|
||||
|
||||
int FCEUMOV_WriteState(std::ostream* os);
|
||||
bool FCEUMOV_ReadState(std::istream* is, uint32 size);
|
||||
|
|
Loading…
Reference in New Issue