From 947fe5fc42398b7e65b8c68e87440b9fe57b2059 Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Tue, 6 Mar 2012 08:43:21 +0200 Subject: [PATCH] Update manuals for changes --- manual.lyx | 43 +++++++++++++++++++++++++++++++++++++++- manual.txt | 57 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 84 insertions(+), 16 deletions(-) diff --git a/manual.lyx b/manual.lyx index 4b9b903e..dcc190f1 100644 --- a/manual.lyx +++ b/manual.lyx @@ -2015,6 +2015,25 @@ exec(string command) Run command as it was entered on the command line \end_layout +\begin_layout Subsubsection +utime() +\end_layout + +\begin_layout Standard +Returns two values. + First is time since some epoch in seconds, the second is microseconds mod + 10^6 since that epoch. +\end_layout + +\begin_layout Subsubsection +emulator_ready() +\end_layout + +\begin_layout Standard +Returns true if emulator has finished booting, false if not (on_startup() + will be issued later). +\end_layout + \begin_layout Subsection Table bit: \end_layout @@ -3178,7 +3197,7 @@ Various callbacks to Lua that can occur. \end_layout \begin_layout Subsubsection -Callback: on_paint() +Callback: on_paint(bool not_synth) \end_layout \begin_layout Standard @@ -3186,6 +3205,11 @@ Called when screen is being painted. Any gui.* calls requiring graphic context draw on the screen. \end_layout +\begin_layout Standard +not_synth is true if this hook is being called in response to received frame, + false otherwise. +\end_layout + \begin_layout Subsubsection Callback: on_video() \end_layout @@ -3195,6 +3219,15 @@ Called when video dump frame is being painted. Any gui.* calls requiring graphic context draw on the video. \end_layout +\begin_layout Subsubsection +Callback: on_frame_emulated() +\end_layout + +\begin_layout Standard +Called when emulating frame has completed and on_paint()/on_video() calls + are about to be issued. +\end_layout + \begin_layout Subsubsection Callback: on_frame() \end_layout @@ -3211,6 +3244,14 @@ Callback: on_startup() Called when the emulator is starting (lsnes.rc and --run files has been run). \end_layout +\begin_layout Subsubsection +Callback: on_rewind() +\end_layout + +\begin_layout Standard +Called when rewind movie to beginning has completed. +\end_layout + \begin_layout Subsubsection Callback: on_pre_load(string name) \end_layout diff --git a/manual.txt b/manual.txt index 31763a0c..e266d4a7 100644 --- a/manual.txt +++ b/manual.txt @@ -971,6 +971,16 @@ Print line to message console. Run command as it was entered on the command line +8.1.3 utime() + +Returns two values. First is time since some epoch in seconds, +the second is microseconds mod 10^6 since that epoch. + +8.1.4 emulator_ready() + +Returns true if emulator has finished booting, false if not +(on_startup() will be issued later). + 8.2 Table bit: Bitwise logical functions and related. @@ -1596,76 +1606,88 @@ initialization. Non-writeable. Various callbacks to Lua that can occur. -8.10.1 Callback: on_paint() +8.10.1 Callback: on_paint(bool not_synth) Called when screen is being painted. Any gui.* calls requiring graphic context draw on the screen. +not_synth is true if this hook is being called in response to +received frame, false otherwise. + 8.10.2 Callback: on_video() Called when video dump frame is being painted. Any gui.* calls requiring graphic context draw on the video. -8.10.3 Callback: on_frame() +8.10.3 Callback: on_frame_emulated() + +Called when emulating frame has completed and +on_paint()/on_video() calls are about to be issued. + +8.10.4 Callback: on_frame() Called on each starting whole frame. -8.10.4 Callback: on_startup() +8.10.5 Callback: on_startup() Called when the emulator is starting (lsnes.rc and --run files has been run). -8.10.5 Callback: on_pre_load(string name) +8.10.6 Callback: on_rewind() + +Called when rewind movie to beginning has completed. + +8.10.7 Callback: on_pre_load(string name) Called just before savestate/movie load occurs (note: loads are always delayed, so this occurs even when load was initiated by lua). -8.10.6 Callback: on_err_load(string name) +8.10.8 Callback: on_err_load(string name) Called if loadstate goes wrong. -8.10.7 Callback: on_post_load(string name, boolean was_savestate) +8.10.9 Callback: on_post_load(string name, boolean was_savestate) Called on successful loadstate. was_savestate gives if this was a savestate or a movie. -8.10.8 Callback: on_pre_save(string name, boolean is_savestate) +8.10.10 Callback: on_pre_save(string name, boolean is_savestate) Called just before savestate save occurs (note: movie saves are synchronous and won't trigger these callbacks if called from Lua). -8.10.9 Callback: on_err_save(string name) +8.10.11 Callback: on_err_save(string name) Called if savestate goes wrong. -8.10.10 Callback: on_post_save(string name, boolean is_savestate) +8.10.12 Callback: on_post_save(string name, boolean is_savestate) Called on successful savaestate. is_savestate gives if this was a savestate or a movie. -8.10.11 Callback: on_quit() +8.10.13 Callback: on_quit() Called when emulator is shutting down. -8.10.12 Callback: on_input(boolean subframe) +8.10.14 Callback: on_input(boolean subframe) Called when emulator is just sending input to bsnes core. Warning: This is called even in readonly mode, but the results are ignored. -8.10.13 Callback: on_reset() +8.10.15 Callback: on_reset() Called when SNES is reset. -8.10.14 Callback: on_readwrite() +8.10.16 Callback: on_readwrite() Called when moving into readwrite mode as result of “set-rwmode” command (note: moving to rwmode by Lua won't trigger this, as per recursive entry protection). -8.10.15 Callback: on_snoop(number port, number controller, number +8.10.17 Callback: on_snoop(number port, number controller, number index, number value) Called each time bsnes asks for input. The value is the final @@ -1674,7 +1696,7 @@ autofire have been taken into account). Might be useful when translating movies to format suitable for console verification. Note: There is no way to modify the value to be sent. -8.10.16 Callback: on_keyhook(string keyname, table state) +8.10.18 Callback: on_keyhook(string keyname, table state) Sent when key that has keyhook events requested changes state. Keyname is name of the key (group) and state is the state (same @@ -2794,3 +2816,8 @@ set-axis joystick0axis19 disabled • Improve stability on win32. +15.52 rr1-delta4epsilon1 + +• Don't corrupt movie if movie length is integer multiple of + frames per page. +