Lua - added FCEU.getreadonly
This commit is contained in:
parent
ee99847b35
commit
c9e6ca74a7
|
@ -1,5 +1,5 @@
|
||||||
---version 2.0.4 yet to be released---
|
---version 2.0.4 yet to be released---
|
||||||
15-mar-2009 - adelikat - Lua - added movie.rerecordcount() and movie.length()
|
15-mar-2009 - adelikat - Lua - added movie.rerecordcount(), movie.length(), FCEU.getreadonly()
|
||||||
14-mar-2009 - adelikat - Lua - added movie.active() - returns a bool value based on whether a movie is currently loaded
|
14-mar-2009 - adelikat - Lua - added movie.active() - returns a bool value based on whether a movie is currently loaded
|
||||||
14-mar-2009 - adelikat - Fixed Joypad.set, it uses 3 values instead of 2 now. True will take control of a button and make it on, False will take control and make it off, and Nil will not take control (allowing the user to press the button)
|
14-mar-2009 - adelikat - Fixed Joypad.set, it uses 3 values instead of 2 now. True will take control of a button and make it on, False will take control and make it off, and Nil will not take control (allowing the user to press the button)
|
||||||
14-mar-2009 - adelikat - Fix major crash issue where NROM game savestates were writing erroneous information if a non NROM game was loaded prior
|
14-mar-2009 - adelikat - Fix major crash issue where NROM game savestates were writing erroneous information if a non NROM game was loaded prior
|
||||||
|
|
|
@ -972,6 +972,15 @@ static int movie_length (lua_State *L) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//FCEU.getreadonly
|
||||||
|
//
|
||||||
|
//returns true is emulator is in read-only mode, false if it is in read+wrte
|
||||||
|
static int fceu_readonly (lua_State *L) {
|
||||||
|
lua_pushboolean(L, FCEUI_GetMovieToggleReadOnly());
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// Common code by the gui library: make sure the screen array is ready
|
// Common code by the gui library: make sure the screen array is ready
|
||||||
static void gui_prepare() {
|
static void gui_prepare() {
|
||||||
if (!gui_data)
|
if (!gui_data)
|
||||||
|
@ -1819,6 +1828,7 @@ static const struct luaL_reg fceulib [] = {
|
||||||
{"message", fceu_message},
|
{"message", fceu_message},
|
||||||
{"lagcount", fceu_lagcount},
|
{"lagcount", fceu_lagcount},
|
||||||
{"lagged", fceu_lagged},
|
{"lagged", fceu_lagged},
|
||||||
|
{"getreadonly", fceu_readonly},
|
||||||
{NULL,NULL}
|
{NULL,NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue