Lua - added FCEU.softreset() and FCEU.poweron(). Deleted a lua test script. Updated Lua documentation in the Help .chm
This commit is contained in:
parent
d104b94665
commit
f06284d822
|
@ -1,4 +1,5 @@
|
|||
---version 2.0.4 yet to be released---
|
||||
28-mar-2009 - adelikat - Lua - added FCEU.poweron() and FCEU.softreset()
|
||||
27-mar-2009 - shinydoofy - sdl - added --no-config
|
||||
23-mar-2009 - adelikat - Win32 - blocked "hotkey explosion" by rshift on some laptops
|
||||
22-mar-2009 - shinydoofy - sdl - added hotkey I and --inputdisplay {0|1|2|4} for toggling input display.
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
while (true) do
|
||||
|
||||
key1 = input.get();
|
||||
|
||||
|
||||
if (key1.A) then
|
||||
gui.text(10,10,"Success!");
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
FCEU.frameadvance();
|
||||
|
||||
end;
|
Binary file not shown.
|
@ -297,6 +297,25 @@ static int fceu_speedmode(lua_State *L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
// FCEU.poweron()
|
||||
//
|
||||
// Executes a power cycle
|
||||
static int fceu_poweron(lua_State *L) {
|
||||
if (GameInfo)
|
||||
FCEUI_PowerNES();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// FCEU.softreset()
|
||||
//
|
||||
// Executes a power cycle
|
||||
static int fceu_softreset(lua_State *L) {
|
||||
if (GameInfo)
|
||||
FCEUI_ResetNES();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// FCEU.frameadvance()
|
||||
//
|
||||
|
@ -1845,6 +1864,8 @@ static int fceu_exec_time(lua_State *L) { return 0; }
|
|||
|
||||
static const struct luaL_reg fceulib [] = {
|
||||
|
||||
{"poweron", fceu_poweron},
|
||||
{"softreset", fceu_softreset},
|
||||
{"speedmode", fceu_speedmode},
|
||||
{"frameadvance", fceu_frameadvance},
|
||||
{"pause", fceu_pause},
|
||||
|
|
Loading…
Reference in New Issue