Lua - added movie.playbeginning()
This commit is contained in:
parent
5c4579f859
commit
8bb8c9e86d
|
@ -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(), movie.length(), movie.getname, FCEU.getreadonly(), FCEU.setreadonly()
|
15-mar-2009 - adelikat - Lua - added movie.rerecordcount(), movie.length(), movie.getname(), movie.playbeginning(), FCEU.getreadonly(), FCEU.setreadonly()
|
||||||
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
|
||||||
|
|
|
@ -1004,6 +1004,16 @@ static int movie_getname (lua_State *L) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//movie.playbeginning
|
||||||
|
//
|
||||||
|
//calls the play movie from beginning function
|
||||||
|
static int movie_playbeginning (lua_State *L) {
|
||||||
|
|
||||||
|
FCEUI_MoviePlayFromBeginning();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// 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)
|
||||||
|
@ -1913,6 +1923,7 @@ static const struct luaL_reg movielib[] = {
|
||||||
{"length", movie_length},
|
{"length", movie_length},
|
||||||
{"rerecordcount", movie_rerecordcount},
|
{"rerecordcount", movie_rerecordcount},
|
||||||
{"getname", movie_getname},
|
{"getname", movie_getname},
|
||||||
|
{"playbeginning", movie_playbeginning},
|
||||||
// {"record", movie_record},
|
// {"record", movie_record},
|
||||||
// {"playback", movie_playback},
|
// {"playback", movie_playback},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue