1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
6 \use_default_options true
7 \maintain_unincluded_children false
9 \language_package default
14 \font_typewriter default
15 \font_default_family default
16 \use_non_tex_fonts false
23 \default_output_format default
25 \bibtex_command default
26 \index_command default
27 \paperfontsize default
38 \paperorientation portrait
47 \paragraph_separation indent
48 \paragraph_indentation default
49 \quotes_language english
52 \paperpagestyle default
53 \tracking_changes false
66 \begin_layout Standard
67 lsnes is SNES rerecording emulator based on bsnes core.
74 \begin_layout Enumerate
75 bsnes libsnes (for bsnes SNES core)
79 \begin_layout Enumerate
80 v084-v087 (v084 or v085 for delayreset support)
83 \begin_layout Enumerate
84 accuracy or compatiblity core with debugger enabled.
87 \begin_layout Enumerate
88 Patched version (using included 7 patches)
92 \begin_layout Enumerate
93 gambatte (for gambatte core)
97 \begin_layout Enumerate
98 SVN r320, r358 or r364
101 \begin_layout Enumerate
102 Patched with included patches
106 \begin_layout Enumerate
110 \begin_layout Enumerate
114 \begin_layout Enumerate
118 \begin_layout Enumerate
119 boost_thread (if native std::thread is not available)
122 \begin_layout Enumerate
126 \begin_layout Enumerate
127 sdlmain (SDL only, part of SDL)
130 \begin_layout Enumerate
131 boost_conversion (this is header-only library)
134 \begin_layout Enumerate
135 libswscale (wxwidgets graphics only)
138 \begin_layout Enumerate
139 Portaudio (portaudio sound only)
142 \begin_layout Enumerate
143 libao (libao sound only)
146 \begin_layout Enumerate
147 Lua (if Lua support is needed) version 5.1.X or 5.2.X
150 \begin_layout Enumerate
154 \begin_layout Enumerate
155 libopus (optional, for commentary track tool)
158 \begin_layout Section
162 \begin_layout Itemize
163 Copy bsnes sources (the bsnes subdirectory) to subdirectory 'bsnes' (for
167 \begin_layout Itemize
168 Copy gambatte sources to subdirectory 'gambatte' (for gambatte core).
171 \begin_layout Itemize
172 Patch the bsnes sources with included patches (directory 'bsnes-patches/<version
176 \begin_layout Itemize
177 Patch the gambatte sources with included patches (directory 'gambatte-patches/<v
178 ersion>', gambatte core)
181 \begin_layout Itemize
182 Edit options.build (or copy of that file)
185 \begin_layout Itemize
186 Run make (passing 'OPTIONS=<filename>' if using something else than options.build
190 \begin_layout Section
194 \begin_layout Subsection
198 \begin_layout Subsubsection
199 --rom=<file> (lsnes/SDL, lsnes/wxwidgets, lsnes-avidump)
202 \begin_layout Standard
206 \begin_layout Subsubsection
207 <file> (lsnes/wxwidgets)
210 \begin_layout Standard
214 \begin_layout Subsection
218 \begin_layout Subsubsection
222 \begin_layout Standard
226 \begin_layout Subsubsection
227 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
230 \begin_layout Standard
231 Load <filename> as movie or savestate file.
232 All other session options are ignored.
235 \begin_layout Subsubsection
236 --port1=<device> (lsnes/SDL, bsnes core only)
239 \begin_layout Standard
244 \begin_layout Itemize
245 none: No device connected
248 \begin_layout Itemize
249 gamepad: One gamepad (the default)
252 \begin_layout Itemize
253 multitap: Four gamepads (warning: makes most games refuse to start)
256 \begin_layout Itemize
260 \begin_layout Subsubsection
261 --port2=<type> (lsnes/SDL, bsnes core only)
264 \begin_layout Standard
269 \begin_layout Itemize
270 none: No device connected (the default)
273 \begin_layout Itemize
277 \begin_layout Itemize
278 multitap: Four gamepads.
281 \begin_layout Itemize
285 \begin_layout Itemize
286 superscope: Super Scope
289 \begin_layout Itemize
290 justifier: One justifier
293 \begin_layout Itemize
294 justifiers: Two justifiers
297 \begin_layout Subsubsection
298 --gamename=<name> (lsnes/SDL)
301 \begin_layout Standard
302 Set the name of game to <name>.
306 \begin_layout Subsubsection
307 --author=<name> (lsnes/SDL)
310 \begin_layout Standard
311 Add author with full name of <name> (no nickname).
314 \begin_layout Subsubsection
315 --author=|<name> (lsnes/SDL)
318 \begin_layout Standard
319 Add author with nickname of <name> (no full name).
322 \begin_layout Subsubsection
323 --author=<fullname>|<nickname> (lsnes/SDL)
326 \begin_layout Standard
327 Add author with full name of <fullname> and nickname of <nickname>.
330 \begin_layout Subsubsection
331 --rtc-second=<value> (lsnes/SDL)
334 \begin_layout Standard
335 Set RTC second (0 is 1st January 1970 00:00:00Z).
336 Default is 1,000,000,000.
339 \begin_layout Subsubsection
340 --rtc-subsecond=<value> (lsnes/SDL)
343 \begin_layout Standard
350 \begin_layout Subsubsection
351 --anchor-savestate=<file> (lsnes/SDL)
354 \begin_layout Standard
355 Set the anchor savestate file.
358 \begin_layout Subsubsection
359 --load=<file> (lsnes/wxwidgets)
362 \begin_layout Standard
363 After loading the ROM, load <file> as savestate/movie.
366 \begin_layout Subsection
371 \begin_layout Subsubsection
372 --run=<file> (lsnes/SDL)
375 \begin_layout Standard
376 After running main RC file, run this file.
377 If multiple are specified, these execute in order specified.
380 \begin_layout Subsubsection
381 --lua=<file> (lsnes/wxwidgets)
384 \begin_layout Standard
385 Run this Lua file on startup
388 \begin_layout Subsection
389 dump options (lsnes-dumpavi only)
392 \begin_layout Subsubsection
396 \begin_layout Standard
397 Set the dumper to use (required).
398 Use 'list' for listing of known dumpers.
401 \begin_layout Subsubsection
405 \begin_layout Standard
406 Set the mode to use (required for dumpers with multiple modes, forbidden
408 Use 'list' for known modes.
411 \begin_layout Subsubsection
415 \begin_layout Standard
418 \begin_inset Quotes eld
422 \begin_inset Quotes erd
428 \begin_layout Subsubsection
429 --option=<name>=<value>
432 \begin_layout Standard
433 Set option <name> to value <value>.
436 \begin_layout Subsubsection
440 \begin_layout Standard
441 Set number of frames to dump.
445 \begin_layout Subsubsection
449 \begin_layout Standard
450 Run specified lua script (lsnes-dumpavi does not have initialization files).
453 \begin_layout Subsubsection
454 --load-library=<library>
457 \begin_layout Standard
458 Load the specified shared object / dynamic library / dynamic link library.
461 \begin_layout Section
462 Startup file lsnes.rc
465 \begin_layout Standard
466 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
467 This file is located in:
470 \begin_layout Itemize
475 lsnes.rc (if %APPDATA% exists)
478 \begin_layout Itemize
479 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
482 \begin_layout Itemize
483 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
486 \begin_layout Itemize
487 All: ./lsnes.rc (fallback default).
490 \begin_layout Standard
491 If leading directories do not exist, attempt to create them is made.
494 \begin_layout Section
498 \begin_layout Itemize
499 Commands beginning with '*' invoke the corresponding command without alias
503 \begin_layout Itemize
504 If command starts with '+' (after possible '*'), the command is executed
505 as-is when button is pressed, and when button is released, it is executed
506 with '+' replaced by '-'.
509 \begin_layout Itemize
510 Commands without '+' execute only on negative edge (release).
513 \begin_layout Subsection
517 \begin_layout Standard
518 Settings control various aspects of emulator behaviour.
521 \begin_layout Subsubsection
522 set-setting <setting> <value>
525 \begin_layout Standard
526 Sets setting <setting> to value <value> (may be empty).
529 \begin_layout Subsubsection
530 unset-setting <setting>
533 \begin_layout Standard
534 Try to unset setting <setting> (not all settings can be unset).
537 \begin_layout Subsubsection
538 get-setting <setting>
541 \begin_layout Standard
542 Read value of setting <setting>
545 \begin_layout Subsubsection
549 \begin_layout Standard
550 Print names and values of all settings.
553 \begin_layout Subsection
557 \begin_layout Standard
558 Keybindings bind commands or aliases to keys (or pseudo-keys).
562 \begin_layout Standard
566 \begin_layout Itemize
567 Do not bind edge active (+/-) commands to keys with modifiers, that won't
571 \begin_layout Itemize
572 Names of keys and modifiers are platform-dependent.
575 \begin_layout Itemize
576 Be careful before binding pseudo-keys (such as joystick axes, buttons or
577 hats) with modifiers.
578 That may or may not work right.
581 \begin_layout Subsubsection
582 bind-key [<mod>/<modmask>] <key> <command>
585 \begin_layout Standard
586 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
587 ed list) are set as <mod> (comma-seperated list).
590 \begin_layout Standard
591 The names of keys and modifiers are platform-dependent.
594 \begin_layout Subsubsection
595 unbind-key [<mod>/<modmask>] <key>
598 \begin_layout Standard
599 Unbind command from <key> (with specified <mod> and <modmask>).
602 \begin_layout Subsubsection
603 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
604 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
605 [plus=<val>] [tolerance=<val>]
608 \begin_layout Standard
609 Set axis parameters for axis <axis>.
612 \begin_layout Itemize
613 disabled: Disable axis
616 \begin_layout Itemize
620 \begin_layout Itemize
621 axis-inverse: Inverse axis
624 \begin_layout Itemize
625 pressure0-: Pressure sensitive.
626 Released at 0, pressed at -.
629 \begin_layout Itemize
630 pressure0+: Pressure sensitive.
631 Released at 0, pressed at +.
634 \begin_layout Itemize
635 pressure-0: Pressure sensitive.
636 Released at -, pressed at 0.
639 \begin_layout Itemize
640 pressure-+: Pressure sensitive.
641 Released at -, pressed at +.
644 \begin_layout Itemize
645 pressure+0: Pressure sensitive.
646 Released at +, pressed at 0.
649 \begin_layout Itemize
650 pressure+-: Pressure sensitive.
651 Released at +, pressed at -.
654 \begin_layout Itemize
655 minus=<val>: Calibration at extreme minus position (-32768-32767)
658 \begin_layout Itemize
659 zero=<val>: Calibration at neutral position (-32768-32767)
662 \begin_layout Itemize
663 plus=<val>: Calibration at extreme plus position (-32768-32767)
666 \begin_layout Itemize
667 tolerance=<value>: Center band tolerance (0<x<1).
668 The smaller the value, the more sensitive the control is.
671 \begin_layout Subsubsection
675 \begin_layout Standard
676 Print all key bindings in effect.
679 \begin_layout Subsection
683 \begin_layout Standard
684 Aliases bind command to sequence of commands.
685 After alias has been defined, it replaces the command it shadows.
688 \begin_layout Standard
692 \begin_layout Itemize
693 You can't alias command to itself.
696 \begin_layout Itemize
697 Aliases starting with +/- are edge active just like ordinary commands starting
701 \begin_layout Itemize
702 One command can be aliased to multiple commands.
705 \begin_layout Subsubsection
706 alias-command <command> <expansion>
709 \begin_layout Standard
710 Append <expansion> to alias <command>.
711 If alias does not already exist, it is created.
714 \begin_layout Subsubsection
715 unalias-command <command>
718 \begin_layout Standard
719 Clear alias expansion for <command>.
722 \begin_layout Subsubsection
726 \begin_layout Standard
727 Print all aliases and their expansions in effect.
730 \begin_layout Subsection
734 \begin_layout Standard
735 Run <script> as if commands were entered on the command line.
738 \begin_layout Subsection
742 \begin_layout Standard
743 Following commands control video dumping:
746 \begin_layout Subsubsection
747 start-dump <dumper> [<mode>] <prefix/filename>
750 \begin_layout Standard
751 Start dumping using dumper <dumper>.
752 If mode is present or not and if prefix or filename is present depends
753 on the dumper and dumper mode.
756 \begin_layout Standard
757 The following dumpers are available:
760 \begin_layout Itemize
761 INTERNAL-AVI-CSCD: Internal CSCD in .avi dumper.
765 \begin_layout Itemize
766 Mode: uncompressed/pcm: Uncompressed video, PCM audio.
770 \begin_layout Itemize
771 Mode: cscd/pcm: CSCD video, PCM audio.
776 \begin_layout Itemize
777 INTERNAL-JMD: Internal .jmd dumper.
781 \begin_layout Itemize
785 \begin_layout Itemize
790 \begin_layout Itemize
791 INTERNAL-RAW: Internal RAW dumper.
795 \begin_layout Itemize
799 \begin_layout Itemize
803 \begin_layout Itemize
804 Sound is big-endian signed 16-bit, usually at 32040.5Hz.
807 \begin_layout Itemize
808 Video is always upscaled to double resolution (512x448 / 512 x 478).
811 \begin_layout Itemize
812 Video framerate is usually 322445/6448 fps for PAL and 10738636/178683 fps
817 \begin_layout Itemize
818 INTERNAL-SDMP: Internal SDMP dumper.
822 \begin_layout Itemize
823 Mode 'ms': Multi-segment.
827 \begin_layout Itemize
828 Mode 'ss': Single-segment.
833 \begin_layout Subsubsection
837 \begin_layout Standard
838 End dumping using <dumper>
841 \begin_layout Subsubsection
842 show-dumpers [<dumper>]
845 \begin_layout Standard
846 Show the list of dumpers or list of modes for <dumper>
849 \begin_layout Subsection
853 \begin_layout Standard
854 <address> may be decimal or hexadecimal (prefixed with '0x').
855 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
859 \begin_layout Standard
860 The available element <sizes> are:
863 \begin_layout Itemize
867 \begin_layout Itemize
871 \begin_layout Itemize
875 \begin_layout Itemize
879 \begin_layout Standard
880 When reading RAM and ROM, multi-byte reads/writes are big-endian.
881 When dealing with DSP memory, multi-byte reads/writes are native-endian
882 (do not use operand sizes exceeding DSP bitness, except dword is OK for
886 \begin_layout Subsubsection
887 read-<size> <address>
890 \begin_layout Standard
891 Read the value of byte in <address>.
894 \begin_layout Subsubsection
895 read-s<size> <address>
898 \begin_layout Standard
899 Read the value of signed byte in <address>.
902 \begin_layout Subsubsection
903 write-<size> <address> <value>
906 \begin_layout Standard
907 Write <value> to byte in address <address>.
910 \begin_layout Subsubsection
914 \begin_layout Standard
915 Reset the memory search
918 \begin_layout Subsubsection
922 \begin_layout Standard
923 Print number of candidates remaining
926 \begin_layout Subsubsection
930 \begin_layout Standard
931 Print all candidates remaining
934 \begin_layout Subsubsection
935 search-memory <usflag><sizeflag><op>
938 \begin_layout Standard
939 Searches memory for addresses satisfying criteria.
942 \begin_layout Standard
946 \begin_layout Itemize
950 \begin_layout Itemize
954 \begin_layout Standard
958 \begin_layout Itemize
962 \begin_layout Itemize
966 \begin_layout Itemize
970 \begin_layout Itemize
974 \begin_layout Standard
978 \begin_layout Itemize
979 lt: < previous value.
982 \begin_layout Itemize
983 le: <= previous value.
986 \begin_layout Itemize
987 eq: = previous value.
990 \begin_layout Itemize
991 ne: != previous value.
994 \begin_layout Itemize
995 ge: >= previous value.
998 \begin_layout Itemize
999 gt: > previous value.
1002 \begin_layout Subsubsection
1003 search-memory <sizeflag> <value>
1006 \begin_layout Standard
1007 Searches for addresses that currently have value <value>.
1008 <sizeflag> is as in previous command.
1011 \begin_layout Subsection
1015 \begin_layout Standard
1016 These commands are not available in lsnesrc, but are available after ROM
1020 \begin_layout Subsubsection
1024 \begin_layout Standard
1025 Quits the emulator (asking for confirmation).
1026 If /y is given, no confirmation is asked.
1029 \begin_layout Subsubsection
1033 \begin_layout Standard
1034 Toggle paused/unpaused
1037 \begin_layout Subsubsection
1041 \begin_layout Standard
1043 If the button is still held after configurable timeout expires, game unpauses
1044 for the duration frame advance is held.
1047 \begin_layout Subsubsection
1051 \begin_layout Standard
1053 If the button is still held after configurable timeout expires, game unpauses
1054 for the duration frame advance is held.
1057 \begin_layout Subsubsection
1061 \begin_layout Standard
1062 Skip to first poll in frame after current.
1065 \begin_layout Subsubsection
1069 \begin_layout Standard
1070 Reset the SNES after this frame.
1073 \begin_layout Subsubsection
1077 \begin_layout Standard
1078 Load savestate <filename> in current mode.
1081 \begin_layout Subsubsection
1082 load-state <filename>
1085 \begin_layout Standard
1086 Load savestate <filename> in readwrite mode.
1089 \begin_layout Subsubsection
1090 load-readonly <filename>
1093 \begin_layout Standard
1094 Load savestate <filename> in readonly mode.
1097 \begin_layout Subsubsection
1098 load-preserve <filename>
1101 \begin_layout Standard
1102 Load savestate <filename> in readonly mode, preserving current events.
1105 \begin_layout Subsubsection
1106 load-movie <filename>
1109 \begin_layout Standard
1110 Load savestate <filename>, ignoring save part in readonly mode.
1113 \begin_layout Subsubsection
1114 save-state <filename>
1117 \begin_layout Standard
1118 Save system state to <filename> as soon as possible.
1121 \begin_layout Subsubsection
1122 save-movie <filename>
1125 \begin_layout Standard
1126 Save movie to <filename>.
1129 \begin_layout Subsubsection
1133 \begin_layout Standard
1134 Set read-write mode.
1137 \begin_layout Subsubsection
1141 \begin_layout Standard
1145 \begin_layout Subsubsection
1149 \begin_layout Standard
1150 Toggle between read-only and read-write modes.
1153 \begin_layout Subsubsection
1157 \begin_layout Standard
1158 Set name of the game to <name>
1161 \begin_layout Subsubsection
1165 \begin_layout Standard
1166 Print the name of the game.
1169 \begin_layout Subsubsection
1173 \begin_layout Standard
1174 Adds new author <author>.
1175 If <author> does not contain '|' it is full name.
1176 If it contains '|', '|' splits the full name and nickname.
1179 \begin_layout Subsubsection
1180 edit-author <num> <author>
1183 \begin_layout Standard
1184 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1188 \begin_layout Subsubsection
1192 \begin_layout Standard
1193 Remove author in slot <num>
1196 \begin_layout Subsubsection
1200 \begin_layout Standard
1204 \begin_layout Subsubsection
1205 test-1, test-2, test-3
1208 \begin_layout Standard
1209 Internal test commands.
1213 \begin_layout Subsubsection
1214 take-screenshot <filename>
1217 \begin_layout Standard
1218 Save screenshot to <filename>.
1221 \begin_layout Subsubsection
1222 +controller<num><button>
1225 \begin_layout Standard
1226 Press button <button> on controller <num> (1-8).
1227 The following button names are known:
1230 \begin_layout Itemize
1234 \begin_layout Itemize
1238 \begin_layout Itemize
1242 \begin_layout Itemize
1246 \begin_layout Itemize
1250 \begin_layout Itemize
1254 \begin_layout Itemize
1258 \begin_layout Itemize
1262 \begin_layout Itemize
1266 \begin_layout Itemize
1270 \begin_layout Itemize
1274 \begin_layout Itemize
1278 \begin_layout Itemize
1282 \begin_layout Itemize
1286 \begin_layout Itemize
1290 \begin_layout Itemize
1294 \begin_layout Subsubsection
1295 controllerh<num><button>
1298 \begin_layout Standard
1299 Hold/unhold button <button> on controller <num> (1-8).
1300 See +controller for button names.
1303 \begin_layout Subsubsection
1304 controllerf<num><button>
1307 \begin_layout Standard
1308 Hold/unhold button <button> on controller <num> (1-8) for the next frame.
1309 See +controller for button names.
1312 \begin_layout Standard
1313 Cauntion: Does not work properly if outside frame advance.
1316 \begin_layout Subsubsection
1317 autofire (<pattern>|-)...
1320 \begin_layout Standard
1321 Set autofire pattern.
1322 Each parameter is comma-separated list of button names (in form of 1start,
1323 1A, 2B, etc..) to hold on that frame.
1324 After reaching the end of pattern, the pattern restarts from the beginning.
1327 \begin_layout Subsubsection
1331 \begin_layout Standard
1335 \begin_layout Subsection
1339 \begin_layout Subsubsection
1340 cycle-jukebox-backward
1343 \begin_layout Standard
1344 Cycle save jukebox backwards.
1347 \begin_layout Subsubsection
1348 cycle-jukebox-forward
1351 \begin_layout Standard
1352 Cycle save jukebox forwards
1355 \begin_layout Subsubsection
1359 \begin_layout Standard
1360 Do load from jukebox (current mode).
1363 \begin_layout Subsubsection
1367 \begin_layout Standard
1368 Do state save to jukebox.
1371 \begin_layout Subsection
1375 \begin_layout Standard
1376 Only available if lua support is compiled in.
1379 \begin_layout Subsubsection
1380 evaluate-lua <luacode>
1383 \begin_layout Standard
1384 Run Lua code <luacode> using built-in Lua interpretter.
1387 \begin_layout Subsubsection
1391 \begin_layout Standard
1392 Synonym for evaluate-lua.
1395 \begin_layout Subsubsection
1399 \begin_layout Standard
1400 Run specified lua file using built-in Lua interpretter.
1403 \begin_layout Subsubsection
1407 \begin_layout Standard
1408 Clear the Lua VM state and restore to factory defaults.
1411 \begin_layout Subsection
1415 \begin_layout Subsubsection
1416 add-watch <name> <expression>
1419 \begin_layout Standard
1420 Adds new watch (or modifies old one).
1423 \begin_layout Subsubsection
1427 \begin_layout Standard
1431 \begin_layout Subsection
1435 \begin_layout Subsubsection
1436 enable-sound <on/off>
1439 \begin_layout Standard
1440 Enable/Disable sound.
1443 \begin_layout Subsubsection
1444 set-sound-device <device>
1447 \begin_layout Standard
1448 Set sound device to <device>
1451 \begin_layout Subsubsection
1455 \begin_layout Standard
1456 Show status of sound system.
1459 \begin_layout Subsubsection
1463 \begin_layout Standard
1464 Show all available devices.
1467 \begin_layout Subsubsection
1468 set-volume <multiplier>
1471 \begin_layout Standard
1472 Set the volume multiplier to <multiplier>.
1473 1 is normal volume, and higher numbers are louder.
1476 \begin_layout Subsubsection
1477 set-volume <multiplier>%
1480 \begin_layout Standard
1481 Set the volume multiplier to <multiplier> percent.
1482 100 is normal volume, and higher numbers are louder.
1485 \begin_layout Subsubsection
1486 set-volume <multiplier>dB
1489 \begin_layout Standard
1490 Set the volume multiplier to <multiplier> dB.
1491 0 is normal volume, and higher numbers are louder.
1492 The value may be negative.
1495 \begin_layout Subsection
1499 \begin_layout Subsubsection
1503 \begin_layout Standard
1504 Reloads the main ROM image from <file>.
1507 \begin_layout Subsubsection
1508 edit-subtitle <firstframe> <length> [<text>]
1511 \begin_layout Standard
1512 Edit or delete a subtitle.
1515 \begin_layout Subsubsection
1519 \begin_layout Standard
1523 \begin_layout Subsection
1527 \begin_layout Subsubsection
1531 \begin_layout Standard
1535 \begin_layout Subsubsection
1539 \begin_layout Standard
1543 \begin_layout Subsubsection
1547 \begin_layout Standard
1551 \begin_layout Subsubsection
1552 change-timebase <id> <newbase>
1555 \begin_layout Standard
1556 Change time base of <id> to <newbase>.
1557 The time base can be given as samples (integer) or second (postfix with
1561 \begin_layout Subsubsection
1562 import-stream-opus <timebase> <file>
1565 \begin_layout Standard
1566 Import opus stream from <file>, placing it at <timebase>.
1567 This operation is lossless.
1570 \begin_layout Subsubsection
1571 import-stream-pcm <timebase> <file>
1574 \begin_layout Standard
1575 Import PCM (.sox, 1ch@48kHz) stream from <file>, placing it at <timebase>.
1578 \begin_layout Subsubsection
1579 export-stream-opus <id> <file>
1582 \begin_layout Standard
1583 Export stream <id> as opus stream to <file>.
1584 This operation is lossless.
1587 \begin_layout Subsubsection
1588 export-stream-pcm <id> <file>
1591 \begin_layout Standard
1592 Export stream <id> as PCM (.sox) stream to <file>.
1596 \begin_layout Subsubsection
1597 export-superstream <file>
1600 \begin_layout Standard
1601 Export the entiere superstream as PCM (.sox) stream to <file>.
1604 \begin_layout Subsubsection
1605 load-collection <file>
1608 \begin_layout Standard
1609 Load collection (if there is existing collection, unload it) from <file>
1612 \begin_layout Subsubsection
1616 \begin_layout Standard
1620 \begin_layout Subsubsection
1624 \begin_layout Standard
1625 Tangent for recording voice for commentary track.
1626 While pressed, record a stream.
1629 \begin_layout Subsection
1630 SDL Platform commands
1633 \begin_layout Standard
1634 The following are valid on SDL platform.
1637 \begin_layout Subsubsection
1641 \begin_layout Standard
1642 Asks to press a key and then identifies that (pseudo-)key.
1645 \begin_layout Subsubsection
1649 \begin_layout Standard
1650 Toggle between windowed/fullscreen console.
1653 \begin_layout Subsubsection
1657 \begin_layout Standard
1658 Scroll messages window as far back as it goes.
1661 \begin_layout Subsubsection
1665 \begin_layout Standard
1666 Scroll messages window as far forward as it goes.
1669 \begin_layout Subsubsection
1673 \begin_layout Standard
1674 Scroll messages window back one screenful.
1677 \begin_layout Subsubsection
1681 \begin_layout Standard
1682 Scroll messages window forward one screenful.
1685 \begin_layout Subsubsection
1686 prompt-command <command>
1689 \begin_layout Standard
1690 Enter command prompt, with prompt prepopulated with specified command.
1693 \begin_layout Section
1697 \begin_layout Subsection
1701 \begin_layout Subsubsection
1705 \begin_layout Standard
1706 Set where bsnes looks for firmware files.
1708 \begin_inset Quotes eld
1712 \begin_inset Quotes erd
1718 \begin_layout Subsubsection
1722 \begin_layout Standard
1724 Numeric, range is 0.001 to
1725 \begin_inset Quotes eld
1729 \begin_inset Quotes erd
1733 Default is native framerate.
1736 \begin_layout Subsubsection
1740 \begin_layout Standard
1741 Set save compression level (integer 0-9).
1742 Default is 7 (0 is no compression).
1745 \begin_layout Subsubsection
1749 \begin_layout Standard
1750 Set the frame advance timeout in milliseconds.
1751 Numeric integer, range is 0-999999999.
1755 \begin_layout Subsubsection
1756 advance-subframe-timeout
1759 \begin_layout Standard
1760 Subframe advance timeout in milliseconds.
1764 \begin_layout Subsubsection
1765 save-every-frame (bsnes only)
1768 \begin_layout Standard
1769 If true, simulate saving on each frame.
1770 Trades off emulation accuracy for sync stability.
1771 Also needed if the movie assumes saving on each frame for rewind.
1774 \begin_layout Subsection
1778 \begin_layout Subsubsection
1782 \begin_layout Standard
1783 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1787 \begin_layout Subsubsection
1791 \begin_layout Standard
1792 AVI dumper: Set the default left border thickness (unless lua overrides)
1798 \begin_layout Subsubsection
1802 \begin_layout Standard
1803 AVI dumper: Set the default right border thickness (unless lua overrides)
1809 \begin_layout Subsubsection
1813 \begin_layout Standard
1814 AVI dumper: Set the default top border thickness (unless lua overrides)
1820 \begin_layout Subsubsection
1824 \begin_layout Standard
1825 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1831 \begin_layout Subsubsection
1835 \begin_layout Standard
1836 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1841 \begin_layout Subsubsection
1845 \begin_layout Standard
1846 AVI dumper: Compression level (0-18).
1849 \begin_layout Itemize
1850 Compression levels 10 and above are not compatible with stock CSCD codec.
1853 \begin_layout Itemize
1854 Recomended level is 7.
1857 \begin_layout Subsubsection
1861 \begin_layout Standard
1862 AVI dumper: Set method of determining the sound rate.
1865 \begin_layout Itemize
1866 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
1867 128, 176.4 and 192 kHz.
1870 \begin_layout Itemize
1871 1: Round down to nearest integer.
1874 \begin_layout Itemize
1875 2: Round up to nearest ingeter.
1878 \begin_layout Subsection
1882 \begin_layout Subsubsection
1886 \begin_layout Standard
1887 JMD dumper: Compression level (0-9).
1890 \begin_layout Subsection
1891 SDL platform settings
1894 \begin_layout Subsubsection
1895 autorepeat-first-delay
1898 \begin_layout Standard
1899 Sets the delay for first character in typematic autorepeat.
1902 \begin_layout Subsubsection
1903 autorepeat-subsequent-delay
1906 \begin_layout Standard
1907 Sets the delay for subsequent characters in typematic autorepeat.
1910 \begin_layout Section
1914 \begin_layout Subsection
1915 Core (in main table)
1918 \begin_layout Subsubsection
1922 \begin_layout Standard
1923 Print line to message console.
1926 \begin_layout Subsubsection
1927 exec(string command)
1930 \begin_layout Standard
1931 Run command as it was entered on the command line
1934 \begin_layout Subsubsection
1938 \begin_layout Standard
1940 First is time since some epoch in seconds, the second is microseconds mod
1941 10^6 since that epoch.
1944 \begin_layout Subsubsection
1948 \begin_layout Standard
1949 Returns true if emulator has finished booting, false if not (on_startup()
1950 will be issued later).
1953 \begin_layout Subsubsection
1954 set_idle_timeout(number timeout)
1957 \begin_layout Standard
1958 Set number of microseconds to block idle for.
1959 After this timeout has expired, on_idle() will be called once.
1962 \begin_layout Subsubsection
1963 set_timer_timeout(number timeout)
1966 \begin_layout Standard
1967 Set number of microseconds to block timer for.
1968 After this timeout has expired, on_timer() will be called once.
1971 \begin_layout Subsubsection
1972 bus_address(number snesaddr)
1975 \begin_layout Standard
1976 Returns virtual address corresponding to specified address on SNES bus.
1979 \begin_layout Subsubsection
1980 loopwrapper(function fun, ...)
1983 \begin_layout Standard
1984 Calls function fun with function and specified arguments.
1985 The function passed suspends execution until the function returned is called.
1986 Handy for linear flow control among multiple invocations of a hook.
1990 \begin_layout LyX-Code
1991 on_paint = loopwrapper(function(wait)
1995 \begin_layout LyX-Code
2000 \begin_layout LyX-Code
2002 \begin_inset Quotes eld
2006 \begin_inset Quotes erd
2012 \begin_layout LyX-Code
2017 \begin_layout LyX-Code
2022 \begin_layout LyX-Code
2026 \begin_layout Subsubsection
2027 list_bindings([string cmd])
2030 \begin_layout Standard
2031 Get table of all keybindings, indexed by keyspec (modifiers|mask/key).
2032 If command is specified, the table is limited to that command.
2035 \begin_layout Subsubsection
2036 get_alias(string aname)
2039 \begin_layout Standard
2040 Get expansion of given alias.
2043 \begin_layout Subsubsection
2044 set_alias(string aname, string value)
2047 \begin_layout Standard
2048 Set expansion of given alias.
2051 \begin_layout Subsubsection
2052 create_ibind(string name, string cmd)
2055 \begin_layout Standard
2056 Return object representing inverse binding with specified name and specified
2060 \begin_layout Itemize
2061 To create press/release commands, use aliases +foo and -foo .
2064 \begin_layout Itemize
2065 Keep the returned object around.
2068 \begin_layout Subsection
2072 \begin_layout Standard
2073 Bitwise logical functions and related.
2076 \begin_layout Subsubsection
2077 bit.none(number...) / bit.bnot(number...)
2080 \begin_layout Standard
2081 48-bit bitwise NOT / NONE function (set bits that are set in none of the
2085 \begin_layout Subsubsection
2086 bit.any(number...) / bit.bor(number...)
2089 \begin_layout Standard
2090 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
2093 \begin_layout Subsubsection
2094 bit.all(number...) / bit.band(number...)
2097 \begin_layout Standard
2098 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
2102 \begin_layout Subsubsection
2103 bit.parity(number...) / bit.bxor(number...)
2106 \begin_layout Standard
2107 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
2111 \begin_layout Subsubsection
2112 bit.lrotate(number base[, number amount[, number bits]])
2115 \begin_layout Standard
2116 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
2119 \begin_layout Subsubsection
2120 bit.rrotate(number base[, number amount[, number bits]])
2123 \begin_layout Standard
2124 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
2128 \begin_layout Subsubsection
2129 bit.lshift(number base[, number amount[, number bits]])
2132 \begin_layout Standard
2133 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
2134 The new bits are filled with zeroes.
2137 \begin_layout Subsubsection
2138 bit.lrshift(number base[, number amount[, number bits]])
2141 \begin_layout Standard
2142 Shift bits-bit (max 48, default 48) number logically right by amount (default
2144 The new bits are filled with zeroes.
2147 \begin_layout Subsubsection
2148 bit.arshift(number base[, number amount[, number bits]])
2151 \begin_layout Standard
2152 Shift bits-bit (max 48, default 48) number arithmetically right by amount
2154 The new bits are shifted in with copy of the high bit.
2157 \begin_layout Subsubsection
2158 bit.extract(number base[, number bit0[, number bit1,...]])
2161 \begin_layout Standard
2162 Returns number that has bit0-th bit as bit 0, bit1-th bit as 1 and so on.
2165 \begin_layout Standard
2169 \begin_layout Itemize
2170 Bit numbers up to 51 should work reliably (then things start falling apart
2171 due to double precision issues).
2174 \begin_layout Itemize
2175 There are two special bit positions, true and false, standing for always
2176 set bit and always clear bit.
2179 \begin_layout Subsubsection
2180 bit.value([number bit1[, number bit2,...]])
2183 \begin_layout Standard
2184 Returns bitwise OR of 1 left shifted by bit1 places, 1 left shifted by bit2
2186 As special value, nil argument is no-op.
2189 \begin_layout Subsubsection
2190 bit.test_any(number a, number b)
2193 \begin_layout Standard
2194 Is there a common set bit in a and b?
2197 \begin_layout Subsubsection
2198 bit.test_all(number a, number b)
2201 \begin_layout Standard
2202 Are all set bits in b also set in a?
2205 \begin_layout Subsubsection
2206 bit.popcount(number a)
2209 \begin_layout Standard
2210 Population count of a.
2213 \begin_layout Subsubsection
2214 bit.clshift(number a, number b, [number amount,[number bits]])
2217 \begin_layout Standard
2218 Does chained left shift on a, b by amount positions, assuming numbers to
2219 be of specified number of bits.
2222 \begin_layout Subsubsection
2223 bit.crshift(number a, number b, [number amount,[number bits]])
2226 \begin_layout Standard
2227 Does chained right shift on a, b by amount positions, assuming numbers to
2228 be of specified number of bits.
2231 \begin_layout Subsubsection
2232 bit.flagdecode(number a, number bits, [string on, [string off]])
2235 \begin_layout Standard
2236 Return string of length bits where ith character is ith character of on
2237 if bit i is on, otherwise ith character of off.
2238 Out of range reads give last character, or '*'/'-' if empty.
2241 \begin_layout Subsubsection
2242 bit.rflagdecode(number a, number bits, [string on, [string off]])
2245 \begin_layout Standard
2246 Like bit.flagdecode, but outputs the string in the opposite order (most significa
2250 \begin_layout Subsection
2254 \begin_layout Standard
2255 Most of these functions can only be called in on_paint and on_video callbacks.
2256 Exceptions are noted.
2259 \begin_layout Standard
2261 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
2262 16-23 are the red component, bits 24-31 are alpha component (0 is fully
2263 opaque, 255 is almost transparent).
2264 -1 is the fully transparent color.
2265 Alpha values greater than 127 do work.
2268 \begin_layout Standard
2269 Origin of coordinates is at top left corner of game display area.
2270 Left and top gaps correspond to negative coordinates.
2273 \begin_layout Subsubsection
2277 \begin_layout Standard
2278 Returns 2-tuple (hresolution, vresolution).
2281 \begin_layout Subsubsection
2282 gui.<class>_gap(number gap)
2285 \begin_layout Standard
2286 Set the <class> (left, right, top, bottom) gap to specified value (max gap
2288 If successful, old gap is returned.
2291 \begin_layout Subsubsection
2292 gui.delta_<class>_gap(number gap)
2295 \begin_layout Standard
2296 Increase the <class> (left, right, top, bottom) gap by specified value (max
2297 gap is 8191) and return the old gap (returns nothing on error).
2300 \begin_layout Subsubsection
2301 gui.text(number x, number y, string text[, number fgc[, number bgc]])
2304 \begin_layout Standard
2305 Draw specified text on the GUI (each character cell is 8 or 16 wide and
2310 \begin_layout Itemize
2311 x: X-coordinate to start the drawing from (and x-coordinate at begining
2315 \begin_layout Itemize
2316 y: Y-coordinate to start the drawing from.
2319 \begin_layout Itemize
2320 text: The text to draw.
2323 \begin_layout Itemize
2324 fgc: Text color (default is 0xFFFFFF (white))
2327 \begin_layout Itemize
2328 bgc: Background color (default is -1 (transparent))
2331 \begin_layout Subsubsection
2332 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
2335 \begin_layout Standard
2336 Like gui.text, but draw using double-width.
2339 \begin_layout Subsubsection
2340 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
2343 \begin_layout Standard
2344 Like gui.text, but draw using double-height.
2347 \begin_layout Subsubsection
2348 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
2351 \begin_layout Standard
2352 Like gui.text, but draw using double-width/double-height.
2355 \begin_layout Subsubsection
2356 gui.rectangle(number x, number y, number width, number height[, number thickness[
2357 , number outline[, number fill]]])
2360 \begin_layout Standard
2361 Draw rectangle on the GUI.
2365 \begin_layout Itemize
2366 x: X-coordinate of left edge.
2369 \begin_layout Itemize
2370 y: Y-coordinate of upper edge.
2373 \begin_layout Itemize
2374 width: Width of rectangle.
2377 \begin_layout Itemize
2378 height: Height of rectangle.
2381 \begin_layout Itemize
2382 thickness: Thickness of outline (default is 1).
2385 \begin_layout Itemize
2386 outline: Color of outline (default is 0xFFFFFF (white))
2389 \begin_layout Itemize
2390 fill: Color of fill (default is -1 (transparent))
2393 \begin_layout Subsubsection
2394 gui.box(number x, number y, number width, number height[, number thickness[,
2395 number outline1[,number outline2[, number fill]]]])
2398 \begin_layout Standard
2399 Draw rectangle with 3D effect on the GUI.
2403 \begin_layout Itemize
2404 x: X-coordinate of left edge.
2407 \begin_layout Itemize
2408 y: Y-coordinate of upper edge.
2411 \begin_layout Itemize
2412 width: Width of rectangle.
2415 \begin_layout Itemize
2416 height: Height of rectangle.
2419 \begin_layout Itemize
2420 thickness: Thickness of outline (default is 1).
2423 \begin_layout Itemize
2424 outline1: First color of outline (default is 0xFFFFFF (white))
2427 \begin_layout Itemize
2428 outline2: First color of outline (default is 0x808080 (dark gray))
2431 \begin_layout Itemize
2432 fill: Color of fill (default is 0xC0C0C0 (light grayy))
2435 \begin_layout Subsubsection
2436 gui.pixel(number x, number y[, number color])
2439 \begin_layout Standard
2440 Draw one pixel on the GUI.
2444 \begin_layout Itemize
2445 x: X-coordinate of the pixel
2448 \begin_layout Itemize
2449 y: Y-coordinate of the pixel
2452 \begin_layout Itemize
2453 color: Color of the pixel (default is 0xFFFFFF (white))
2456 \begin_layout Subsubsection
2457 gui.crosshair(number x, number y[, number length[, number color]])
2460 \begin_layout Standard
2465 \begin_layout Itemize
2466 x: X-coordinate of the crosshair
2469 \begin_layout Itemize
2470 y: Y-coordinate of the crosshair
2473 \begin_layout Itemize
2474 length: Length of the crosshair lines (default 10).
2477 \begin_layout Itemize
2478 color: Color of the crosshair (default is 0xFFFFFF (white))
2481 \begin_layout Subsubsection
2482 gui.line(number x1, number y1, number x2, number y2[, number color])
2485 \begin_layout Standard
2490 \begin_layout Itemize
2491 x1: X-coordinate of one end.
2494 \begin_layout Itemize
2495 y1: Y-coordinate of one end.
2498 \begin_layout Itemize
2499 x2: X-coordinate of the other end.
2502 \begin_layout Itemize
2503 y2: Y-coordinate of the other end.
2506 \begin_layout Itemize
2507 color: Color of the line (default is 0xFFFFFF (white)).
2510 \begin_layout Subsubsection
2511 gui.circle(number x, number y, number r[, number thick[, number border[,
2515 \begin_layout Standard
2520 \begin_layout Itemize
2521 x: X-coordinate of the center
2524 \begin_layout Itemize
2525 y: Y-coordinate of the center
2528 \begin_layout Itemize
2529 r: The radius of the circle
2532 \begin_layout Itemize
2533 thick: Border thickness
2536 \begin_layout Itemize
2537 border: Border color (default is 0xFFFFFF (white))
2540 \begin_layout Itemize
2541 fill: Fill color (default is -1 (transparent)).
2544 \begin_layout Subsubsection
2545 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
2548 \begin_layout Standard
2549 Draw a bitmap on screen with specified palette.
2553 \begin_layout Itemize
2554 x: X-coordinate of left edge.
2557 \begin_layout Itemize
2558 y: Y-coordinate of top edge.
2561 \begin_layout Itemize
2562 bitmap: The bitmap to draw
2565 \begin_layout Itemize
2566 palette: The palette to draw the bitmap using.
2569 \begin_layout Subsubsection
2570 gui.bitmap_draw(number x, number y, dbitmap bitmap)
2573 \begin_layout Standard
2574 Draw a bitmap on screen.
2578 \begin_layout Itemize
2579 x: X-coordinate of left edge.
2582 \begin_layout Itemize
2583 y: Y-coordinate of top edge.
2586 \begin_layout Itemize
2587 bitmap: The bitmap to draw
2590 \begin_layout Subsubsection
2594 \begin_layout Standard
2595 Returns a new palette (initially all transparent).
2596 Can be used anywhere.
2599 \begin_layout Subsubsection
2600 gui.bitmap_new(number w, number h, boolean direct[, bool icolor])
2603 \begin_layout Standard
2604 Returns a new bitmap/dbitmap.
2605 Can be used anywhere.
2609 \begin_layout Itemize
2610 w: The width of new bitmap
2613 \begin_layout Itemize
2614 h: The height of new bitmap
2617 \begin_layout Itemize
2618 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
2621 \begin_layout Itemize
2622 icolor: Initital fill color (defaults to 0 on BITMAP, -1 on DBITMAP)
2625 \begin_layout Subsubsection
2626 gui.bitmap_load(string file)
2629 \begin_layout Standard
2630 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
2632 Can be used anywhere.
2636 \begin_layout Itemize
2637 file: The name of file to load.
2640 \begin_layout Subsubsection
2641 gui.palette_set(palette palette, number index, number color)
2644 \begin_layout Standard
2645 Sets color in palette.
2646 Can be used anywhere.
2650 \begin_layout Itemize
2651 palette: The palette to manipulate
2654 \begin_layout Itemize
2655 index: Index of color (0-65535).
2658 \begin_layout Itemize
2659 color: The color value.
2662 \begin_layout Subsubsection
2663 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
2666 \begin_layout Standard
2667 Sets specified pixel in bitmap.
2668 Can be used anywhere.
2672 \begin_layout Itemize
2673 bitmap: The bitmap to manipulate
2676 \begin_layout Itemize
2677 x: The x-coordinate of the pixel.
2680 \begin_layout Itemize
2681 y: The y-coordinate of the pixel.
2684 \begin_layout Itemize
2685 color: If bitmap is a bitmap, color index (0-65535).
2686 Otherwise color value.
2689 \begin_layout Subsubsection
2690 gui.bitmap_size(bitmap/dbitmap bitmap)
2693 \begin_layout Standard
2695 Can be used anywhere.
2699 \begin_layout Itemize
2700 bitmap: The bitmap to query.
2703 \begin_layout Standard
2704 The first return is the width, the second is the height.
2707 \begin_layout Subsubsection
2708 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
2709 src, [palette pal, ]number sx, number sy, number w, number h[, number ck])
2712 \begin_layout Standard
2713 Blit a part of bitmap to another.
2714 Can be used anywhere.
2718 \begin_layout Itemize
2719 dest: Destination to blit to.
2722 \begin_layout Itemize
2723 dx: left edge of target
2726 \begin_layout Itemize
2727 dy: Top edge of target
2730 \begin_layout Itemize
2731 src: The source to blit from.
2732 If destination is paletted, must be paletted.
2735 \begin_layout Itemize
2739 Only present if src is paletted, but dest is not.
2742 \begin_layout Itemize
2743 sx: left edge of source
2746 \begin_layout Itemize
2747 sy: Top edge of source
2750 \begin_layout Itemize
2754 \begin_layout Itemize
2755 h: Height of region.
2758 \begin_layout Itemize
2760 Pixels of this color are not blitted.
2764 \begin_layout Itemize
2765 If bitmaps are bitmaps, this is color index of colorkey.
2766 Values outside range 0-65535 cause no key to be used as colorkey.
2769 \begin_layout Itemize
2770 If bitmaps are dbitmaps, this color value of colorkey.
2773 \begin_layout Itemize
2774 May be absent or nil for no colorkey blit.
2778 \begin_layout Subsubsection
2779 gui.bitmap_load_png(string filename)
2782 \begin_layout Standard
2783 Load a bitmap from PNG file.
2787 \begin_layout Itemize
2788 filename: The name of file to load the bitmap frame.
2791 \begin_layout Standard
2795 \begin_layout Itemize
2796 If the PNG is of color type 3 (PALETTE), returns two value.
2797 First is BITMAP containing the image data from the PNG and second is PALETTE
2798 containg the palette data from the PNG.
2801 \begin_layout Itemize
2802 For color types 0 (GRAY), 2 (RGB), 4 (GRAY_ALPHA) and 6 (RGBA), returns
2803 one DBITMAP containg the image data loaded from the PNG.
2806 \begin_layout Subsubsection
2807 gui.bitmap_load_pal(string filename)
2810 \begin_layout Standard
2811 Load a palette from file.
2815 \begin_layout Itemize
2816 filename: The name of the file.
2819 \begin_layout Standard
2820 The kinds of lines supported
2823 \begin_layout Itemize
2824 Blank or just whitespace: Ignored
2827 \begin_layout Itemize
2828 First non-whitespace is '#': Ignored
2831 \begin_layout Itemize
2832 <r> <g> <b>: Fully opaque color with specified RGB values (0-255)
2835 \begin_layout Itemize
2836 <r> <g> <b> <a>: Color with specified RGB values (0-255) and specified alpha
2837 (0-256, 0 being fully transparent and 256 fully opaque).
2840 \begin_layout Itemize
2841 transparent: Fully transparent color
2844 \begin_layout Subsubsection
2845 gui.bitmap_load_str(string content)
2848 \begin_layout Standard
2849 Like gui.bitmap_load, but reads the specified string directly as content.
2852 \begin_layout Subsubsection
2853 gui.bitmap_load_png_str(string base64content)
2856 \begin_layout Standard
2857 Like gui.bitmap_load_png, but reads the specified string (as base64-encoded)
2858 directly as content.
2861 \begin_layout Subsubsection
2862 gui.bitmap_load_pal_str(string content)
2865 \begin_layout Standard
2866 Like gui.bitmap_load_pal, but reads the specified string directly as content.
2869 \begin_layout Subsubsection
2873 \begin_layout Standard
2874 Request on_repaint() to happen as soon as possible.
2875 Can be used anywhere.
2878 \begin_layout Subsubsection
2879 gui.subframe_update(boolean on)
2882 \begin_layout Standard
2883 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2884 or not happen (on=false).
2885 Can be used anywhere.
2888 \begin_layout Subsubsection
2889 gui.screenshot(string filename)
2892 \begin_layout Standard
2893 Write PNG screenshot of the current frame (no drawings) to specified file.
2894 Can be used anywhere.
2897 \begin_layout Subsubsection
2898 gui.color(number r, number g, number b[, number a])
2901 \begin_layout Standard
2902 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2903 each component in scale 0-255.
2904 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2906 The default alpha is 256.
2909 \begin_layout Subsubsection
2910 gui.status(string name, string value)
2913 \begin_layout Standard
2915 \begin_inset Quotes eld
2919 \begin_inset Quotes erd
2922 to <value> in status area.
2923 Can be used anywhere.
2926 \begin_layout Subsubsection
2927 gui.rainbow(number step, number steps[, number color])
2930 \begin_layout Standard
2931 Perform hue rotation of color <color> (default bright red), by <step> steps.
2932 The number of steps per full rotation is given by absolute value of <steps>.
2935 \begin_layout Standard
2936 If <steps> is negative, the rotation will be counterclockwise.
2939 \begin_layout Subsubsection
2940 gui.screenshot(string filename)
2943 \begin_layout Standard
2944 Saves a screenshot into specified file.
2947 \begin_layout Subsubsection
2948 gui.loadfont(string filename)
2951 \begin_layout Standard
2952 Loads font from specified file (CUSTOMFONT object).
2955 \begin_layout Subsubsection
2956 CUSTOMFONT(number x, number y, string text[, number fgc[, number bgc[, number
2960 \begin_layout Standard
2961 Draw string with custom font to screen.
2962 The parameters are the same as in gui.text, except hlc is the halo color
2963 (default is no halo).
2967 \begin_layout Subsection
2971 \begin_layout Standard
2973 Only available in on_input callback.
2976 \begin_layout Subsubsection
2977 input.get(number controller, number index)
2980 \begin_layout Standard
2981 Read the specified index (0-11) from specified controller (0-7).
2985 \begin_layout Itemize
2986 Uses physical controller numbering.
2987 Gamepad in port 2 is controller 4, not 1!
2990 \begin_layout Subsubsection
2991 input.set(number controller, number index, number value)
2994 \begin_layout Standard
2995 Write the specified index (0-11) from specified controller (0-7), storing
3000 \begin_layout Itemize
3001 Uses physical controller numbering.
3002 Gamepad in port 2 is controller 4, not 1!
3005 \begin_layout Subsubsection
3006 input.get2(number port, number controller, number index)
3009 \begin_layout Standard
3010 Read the specified input tuple.
3013 \begin_layout Itemize
3014 Port 0 is system port.
3017 \begin_layout Subsubsection
3018 input.set2(number port, number controller, number index, number value)
3021 \begin_layout Standard
3022 Write the specified input tuple.
3025 \begin_layout Itemize
3026 Port 0 is system port.
3029 \begin_layout Subsubsection
3030 input.lcid_to_pcid2(number lcid)
3033 \begin_layout Standard
3034 Look up physical pcid pair (port, controller) corresponding to specified
3035 logical controller (1-based).
3036 Returns nothing if controller does not exist.
3039 \begin_layout Subsubsection
3040 input.port_type(number port)
3043 \begin_layout Standard
3044 Return type of specified port.
3047 \begin_layout Subsubsection
3048 input.controller_info(number port, number controller)
3051 \begin_layout Standard
3052 Get controller info for specified controller.
3053 If controller does not exist, returns nil.
3054 Otherwise returns a table with following fields:
3057 \begin_layout Itemize
3058 type (string): Type of the controller.
3061 \begin_layout Itemize
3062 class (string): Class of the controller.
3065 \begin_layout Itemize
3066 classnum (number): Number of the controller within its class (1-based)
3069 \begin_layout Itemize
3070 lcid (number): Logical controller number of the controller.
3073 \begin_layout Itemize
3074 button_count (number): Number of buttons on controller
3077 \begin_layout Itemize
3078 buttons (array): Array of following info about each button:
3082 \begin_layout Itemize
3083 type (string): Type of button.
3085 \begin_inset Quotes eld
3089 \begin_inset Quotes erd
3093 \begin_inset Quotes eld
3097 \begin_inset Quotes erd
3101 \begin_inset Quotes eld
3105 \begin_inset Quotes erd
3109 \begin_inset Quotes eld
3113 \begin_inset Quotes erd
3119 \begin_layout Itemize
3120 name (string): Name of button.
3123 \begin_layout Itemize
3124 symbol (string): Symbol of button.
3125 Only present for type
3126 \begin_inset Quotes eld
3130 \begin_inset Quotes erd
3136 \begin_layout Itemize
3137 hidden (boolean): True if hidden button.
3142 \begin_layout Subsubsection
3146 \begin_layout Standard
3147 Signals that the button event should be vetoed.
3148 Only valid in on_button callback.
3151 \begin_layout Subsubsection
3152 input.geta(number controller)
3155 \begin_layout Standard
3156 Get input state for entiere controller.
3157 Returns 13 return values.
3160 \begin_layout Itemize
3161 1st return value: Bitmask: bit i is set if i:th index is nonzero
3164 \begin_layout Itemize
3165 2nd-13th return value: value of i:th index.
3168 \begin_layout Subsubsection
3169 input.seta(number controller, number bitmask, number args...)
3172 \begin_layout Standard
3173 Set state for entiere controller.
3174 args is up to 12 values for indices (overriding values in bitmask if specified).
3177 \begin_layout Subsubsection
3178 input.controllertype(number controller)
3181 \begin_layout Standard
3182 Get the type of controller as string.
3186 \begin_layout Itemize
3190 \begin_layout Itemize
3194 \begin_layout Itemize
3198 \begin_layout Itemize
3202 \begin_layout Subsubsection
3203 input.reset([number cycles])
3206 \begin_layout Standard
3208 If cycles is greater than zero, do delayed reset.
3209 0 (or no value) causes immediate reset.
3212 \begin_layout Itemize
3213 Only available with subframe flag false.
3216 \begin_layout Subsubsection
3220 \begin_layout Standard
3221 Returns table of tables of all available keys and axes.
3222 The first table is indexed by key name (platform-dependent!), and the inner
3223 table has the following fields:
3226 \begin_layout Itemize
3227 last_rawval: Last reported raw value for control.
3230 \begin_layout Itemize
3231 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
3232 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
3235 \begin_layout Itemize
3236 cal_left: Minimum calibration value.
3237 Only meaningful with axis and pressure types.
3240 \begin_layout Itemize
3241 cal_center: Center calibration value.
3242 Only meaningful with axis and pressure types.
3245 \begin_layout Itemize
3246 cal_right: Maximum calibration value.
3247 Only meaningful with axis and pressure types.
3250 \begin_layout Itemize
3251 cal_tolerance: Dead zone tolerance.
3252 Only meaningful with axis and pressure types.
3255 \begin_layout Subsubsection
3256 input.keyhook(string key, boolean state)
3259 \begin_layout Standard
3260 Requests that keyhook events to be sent for key (state=true) or not sent
3264 \begin_layout Subsubsection
3265 input.joyget(number controller)
3268 \begin_layout Standard
3269 Returns table for current controls for specified controller.
3270 The names of fields vary by controller type.
3273 \begin_layout Itemize
3274 The buttons have the same name as those are referred to in other contexts
3278 \begin_layout Itemize
3280 \begin_inset Quotes eld
3284 \begin_inset Quotes erd
3288 \begin_inset Quotes eld
3292 \begin_inset Quotes erd
3298 \begin_layout Subsubsection
3299 input.joyset(number controller, table controls)
3302 \begin_layout Standard
3303 Set the the state of specified controller to values specified in specified
3307 \begin_layout Itemize
3308 nil does not change value
3311 \begin_layout Itemize
3312 true/false (buttons) and integers (axes) force value.
3315 \begin_layout Itemize
3316 string (button) inverts the input.
3319 \begin_layout Subsubsection
3320 input.lcid_to_pcid(number controller)
3323 \begin_layout Standard
3324 Return the physical index, physical port and controller number in port for
3325 specified (1-based) logical controller.
3328 \begin_layout Subsection
3332 \begin_layout Standard
3336 \begin_layout Subsubsection
3337 subtitle.byindex(number i)
3340 \begin_layout Standard
3341 Read the frame and length of ith subtitle.
3342 Returns nothing if not present.
3345 \begin_layout Subsubsection
3346 subtitle.set(number f, number l, string txt)
3349 \begin_layout Standard
3350 Set the text of subtitle.
3353 \begin_layout Subsubsection
3354 subtitle.get(number f, number l)
3357 \begin_layout Standard
3358 Get the text of subtitle.
3361 \begin_layout Subsubsection
3362 subtitle.delete(number f, number l)
3365 \begin_layout Standard
3366 Delete specified subtitle.
3369 \begin_layout Subsection
3373 \begin_layout Standard
3374 Host memory handling (extra memory saved to savestates).
3375 Host memory starts empty.
3378 \begin_layout Subsubsection
3379 hostmemory.read(number address)
3382 \begin_layout Standard
3383 Reads hostmemory slot address.
3384 Slot numbers out of range return false instead of numeric.
3387 \begin_layout Subsubsection
3388 hostmemory.write(number address, number value)
3391 \begin_layout Standard
3392 Writes hostmemory slot with 0-255.
3393 Slot numbers out of range cause extension of host memory slot space.
3396 \begin_layout Subsubsection
3397 hostmemory.readbyte(number address)
3400 \begin_layout Standard
3401 Read unsigned byte (1 element) from given address.
3402 Slots out of range return false.
3405 \begin_layout Subsubsection
3406 hostmemory.writebyte(number address, number value)
3409 \begin_layout Standard
3410 Write unsigned byte (1 element) to given slot.
3411 Slot numbers out of range cause extension.
3414 \begin_layout Subsubsection
3415 hostmemory.readsbyte(number address)
3418 \begin_layout Standard
3419 Read signed byte (1 element) from given address.
3420 Slots out of range return false.
3423 \begin_layout Subsubsection
3424 hostmemory.writesbyte(number address, number value)
3427 \begin_layout Standard
3428 Write signed byte (1 element) to given slot.
3429 Slot numbers out of range cause extension.
3432 \begin_layout Subsubsection
3433 hostmemory.readword(number address)
3436 \begin_layout Standard
3437 Read unsigned word (2 elements) from given address.
3438 Slots out of range return false.
3441 \begin_layout Subsubsection
3442 hostmemory.writeword(number address, number value)
3445 \begin_layout Standard
3446 Write unsigned word (2 elements) to given slot.
3447 Slot numbers out of range cause extension.
3450 \begin_layout Subsubsection
3451 hostmemory.readsword(number address)
3454 \begin_layout Standard
3455 Read signed word (2 elements) from given address.
3456 Slots out of range return false.
3459 \begin_layout Subsubsection
3460 hostmemory.writesword(number address, number value)
3463 \begin_layout Standard
3464 Write signed word (2 elements) to given slot.
3465 Slot numbers out of range cause extension.
3468 \begin_layout Subsubsection
3469 hostmemory.readdword(number address)
3472 \begin_layout Standard
3473 Read unsigned doubleword (4 elements) from given address.
3474 Slots out of range return false.
3477 \begin_layout Subsubsection
3478 hostmemory.writedword(number address, number value)
3481 \begin_layout Standard
3482 Write unsigned doubleword (4 elements) to given slot.
3483 Slot numbers out of range cause extension.
3486 \begin_layout Subsubsection
3487 hostmemory.readsdword(number address)
3490 \begin_layout Standard
3491 Read signed doubleword (4 elements) from given address.
3492 Slots out of range return false.
3495 \begin_layout Subsubsection
3496 hostmemory.writesdword(number address, number value)
3499 \begin_layout Standard
3500 Write signed doubleword (4 elements) to given slot.
3501 Slot numbers out of range cause extension.
3504 \begin_layout Subsubsection
3505 hostmemory.readqword(number address)
3508 \begin_layout Standard
3509 Read unsigned quadword (8 elements) from given address.
3510 Slots out of range return false.
3513 \begin_layout Subsubsection
3514 hostmemory.writeqword(number address, number value)
3517 \begin_layout Standard
3518 Write unsigned quadword (4 elements) to given slot.
3519 Slot numbers out of range cause extension.
3522 \begin_layout Subsubsection
3523 hostmemory.readsqword(number address)
3526 \begin_layout Standard
3527 Read signed quadword (8 elements) from given address.
3528 Slots out of range return false.
3531 \begin_layout Subsubsection
3532 hostmemory.writesqword(number address, number value)
3535 \begin_layout Standard
3536 Write signed quadword (8 elements) to given slot.
3537 Slot numbers out of range cause extension.
3540 \begin_layout Subsection
3544 \begin_layout Standard
3548 \begin_layout Subsubsection
3549 movie.currentframe()
3552 \begin_layout Standard
3553 Return number of current frame.
3556 \begin_layout Subsubsection
3560 \begin_layout Standard
3561 Return number of frames in movie.
3564 \begin_layout Subsubsection
3568 \begin_layout Standard
3569 Return true if in readonly mode, false if in readwrite.
3572 \begin_layout Subsubsection
3576 \begin_layout Standard
3577 Returns the current value of rerecord count.
3580 \begin_layout Subsubsection
3581 movie.set_readwrite()
3584 \begin_layout Standard
3585 Set readwrite mode (does not cause on_readwrite callback).
3588 \begin_layout Subsubsection
3589 movie.frame_subframes(number frame)
3592 \begin_layout Standard
3593 Count number of subframes in specified frame (frame numbers are 1-based)
3597 \begin_layout Subsubsection
3598 movie.read_subframes(number frame, number subframe)
3601 \begin_layout Standard
3602 Read specifed subframe in specified frame and return data as array (100
3603 elements, numbered 0-99 currently).
3606 \begin_layout Subsubsection
3610 \begin_layout Standard
3611 Returns the current value of the RTC as a pair (second, subsecond).
3614 \begin_layout Subsubsection
3615 movie.unsafe_rewind([UNSAFEREWIND state])
3618 \begin_layout Standard
3619 Start setting point for unsafe rewind or jump to point of unsafe rewind.
3622 \begin_layout Itemize
3623 If called without argument, causes emulator to start process of setting
3624 unsafe rewind point.
3625 When this has finished, callback on_set_rewind occurs, passing the rewind
3626 state to lua script.
3629 \begin_layout Itemize
3630 If called with argument, causes emulator rewind to passed rewind point as
3632 Readwrite mode is implicitly activated.
3635 \begin_layout Standard
3636 The following warnings apply to unsafe rewinding:
3639 \begin_layout Itemize
3640 There are no safety checks against misuse (that's what
3641 \begin_inset Quotes eld
3645 \begin_inset Quotes erd
3651 \begin_layout Itemize
3652 Only call rewind from timeline rewind point was set from.
3655 \begin_layout Itemize
3656 Only call rewind from after the rewind point was set.
3659 \begin_layout Subsubsection
3660 movie.copy_movie([INPUTMOVIE movie])
3663 \begin_layout Standard
3664 Copies specified movie (if none or nil, the active movie) as new movie object
3668 \begin_layout Standard
3669 Also available as method in INPUTFRAME.
3672 \begin_layout Subsubsection
3673 movie.get_frame([INPUTMOVIE movie,] number frame)
3676 \begin_layout Standard
3677 Get INPUTFRAME object corresponding to specified frame in specified movie.
3680 \begin_layout Standard
3681 Also available as method in INPUTFRAME.
3684 \begin_layout Subsubsection
3685 movie.set_frame([INPUTMOVIE movie,] number frame, INPUTFRAME data)
3688 \begin_layout Standard
3689 Set data in specified frame.
3690 Note: Past can't be edited in active movie.
3693 \begin_layout Standard
3694 Also available as method in INPUTFRAME.
3697 \begin_layout Subsubsection
3698 movie.get_size([INPUTMOVIE movie])
3701 \begin_layout Standard
3702 Return number of subframes in specified movie.
3705 \begin_layout Standard
3706 Also available as method in INPUTFRAME.
3709 \begin_layout Subsubsection
3710 movie.count_frames([INPUTMOVIE movie])
3713 \begin_layout Standard
3714 Return number of frames in movie.
3717 \begin_layout Standard
3718 Also available as method in INPUTFRAME.
3721 \begin_layout Subsubsection
3722 movie.find_frame([INPUTMOVIE movie], number frame)
3725 \begin_layout Standard
3726 Returns starting subframe of given frame (frame numbers are 1-based).
3727 Returns -1 if frame number is bad.
3730 \begin_layout Standard
3731 Also available as method in INPUTFRAME.
3734 \begin_layout Subsubsection
3735 movie.blank_frame([INPUTMOVIE movie])
3738 \begin_layout Standard
3739 Return blank INPUTFRAME with frame type from specified movie.
3742 \begin_layout Standard
3743 Also available as method in INPUTFRAME.
3746 \begin_layout Subsubsection
3747 movie.append_frames([INPUTMOVIE movie,] number frames)
3750 \begin_layout Standard
3751 Append specified number of frames.
3754 \begin_layout Standard
3755 Also available as method in INPUTFRAME.
3758 \begin_layout Subsubsection
3759 movie.append_frame([INPUTMOVIE movie,] INPUTFRAME frame)
3762 \begin_layout Standard
3763 Append specified frame.
3764 Past of current movie can't be edited.
3767 \begin_layout Standard
3768 Also available as method in INPUTFRAME.
3771 \begin_layout Subsubsection
3772 movie.truncate([INPUTMOVIE movie,] number frames)
3775 \begin_layout Standard
3776 Truncate the specified movie to specified number of frames.
3779 \begin_layout Standard
3780 Also available as method in INPUTFRAME.
3783 \begin_layout Subsubsection
3784 movie.edit([INPUTMOVIE movie,] number frame, number port, number controller,
3785 number control, number/bool value)
3788 \begin_layout Standard
3789 Change specified control in specified frame in specified movie.
3790 Past can't be edited in active movie.
3793 \begin_layout Standard
3794 Also available as method in INPUTFRAME.
3797 \begin_layout Subsubsection
3798 movie.copy_frames2([INPUTMOVIE dstmov,] number dst, [INPUTMOVIE srcmov,]
3799 number src, number count)
3802 \begin_layout Standard
3803 Copy specified number of frames between two movies.
3804 The copy proceeeds in forward direction.
3807 \begin_layout Subsubsection
3808 movie.copy_frames([INPUTMOVIE mov,] number dst, number src, number count,
3812 \begin_layout Standard
3813 Copy specified number of frames from one point in movie to another.
3814 If backwards is true, the copy will be done backwards.
3817 \begin_layout Standard
3818 Also available as method in INPUTFRAME.
3821 \begin_layout Subsubsection
3822 movie.serialize([INPUTMOVIE movie,] string filename, bool binary)
3825 \begin_layout Standard
3826 Serialize given movie into file.
3827 If binary is true, binary format (more compact and much faster) is used.
3830 \begin_layout Standard
3831 Also available as method in INPUTFRAME.
3834 \begin_layout Subsubsection
3835 movie.unserialize(INPUTFRAME template, string filename, bool binary)
3838 \begin_layout Standard
3839 Unserialize movie from file.
3840 The given frame is used as template to decide the frame type.
3841 If binary is true, binary format is decoded (much faster).
3844 \begin_layout Standard
3845 Also available as method in INPUTFRAME.
3848 \begin_layout Subsubsection
3849 movie.current_first_subframe()
3852 \begin_layout Standard
3853 Returns first subframe in current frame.
3856 \begin_layout Subsubsection
3857 movie.pollcounter(number port, number controller, number control)
3860 \begin_layout Standard
3861 Returns number of times the specified control has been polled this frame.
3864 \begin_layout Subsubsection
3865 INPUTFRAME::get_button(number port, number controller, number control)
3868 \begin_layout Standard
3869 Returns state of given button as boolean.
3872 \begin_layout Subsubsection
3873 INPUTFRAME::get_axis(number port, number controller, number control)
3876 \begin_layout Standard
3877 Returns state of given axis as number.
3880 \begin_layout Subsubsection
3881 INPUTFRAME::set_button(number port, number controller, number control, number/bo
3885 \begin_layout Standard
3886 Set the given button/axis to given value.
3889 \begin_layout Subsubsection
3890 INPUTFRAME::set_axis(number port, number controller, number control)
3893 \begin_layout Standard
3897 \begin_layout Subsubsection
3898 INPUTFRAME::serialize()
3901 \begin_layout Standard
3902 Return string representation of frame.
3905 \begin_layout Subsubsection
3906 INPUTFRAME::unserialize(string data)
3909 \begin_layout Standard
3910 Set current frame from given data.
3913 \begin_layout Subsubsection
3914 INPUTFRAME::get_stride()
3917 \begin_layout Standard
3918 Return number of bytes needed to store the input frame.
3919 Mainly useful for some debugging.
3922 \begin_layout Subsection
3926 \begin_layout Standard
3927 Routines for settings manipulation
3930 \begin_layout Subsubsection
3931 settings.get(string name)
3934 \begin_layout Standard
3935 Get value of setting.
3936 If setting is blank, returns false.
3937 If setting value can't be obtained, returns (nil, error message).
3940 \begin_layout Subsubsection
3941 settings.set(string name, string value)
3944 \begin_layout Standard
3945 Set value of setting.
3946 If setting can't be set, returns (nil, error message).
3949 \begin_layout Subsubsection
3950 settings.is_set(string name)
3953 \begin_layout Standard
3954 Returns if setting is set.
3955 If setting does not exist, returns (nil, error message).
3958 \begin_layout Subsubsection
3959 settings.blank(string name)
3962 \begin_layout Standard
3963 Blanks a setting and returns true.
3964 If setting can't be blanked, returns (nil, error message).
3967 \begin_layout Subsection
3971 \begin_layout Standard
3972 Contains various functions for managing memory
3975 \begin_layout Subsubsection
3979 \begin_layout Standard
3980 Returns the number of VMAs
3983 \begin_layout Subsubsection
3984 memory.read_vma(number index)
3987 \begin_layout Standard
3988 Reads the specified VMA (indices start from zero).
3989 Trying to read invalid VMA gives nil.
3990 The read VMA is table with the following fields:
3993 \begin_layout Itemize
3994 region_name (string): The readable name of the VMA
3997 \begin_layout Itemize
3998 baseaddr (number): Base address of the VMA
4001 \begin_layout Itemize
4002 lastaddr (number): Last address in the VMA.
4005 \begin_layout Itemize
4006 size (number): The size of VMA in bytes.
4009 \begin_layout Itemize
4010 readonly (boolean): True of the VMA corresponds to ROM.
4013 \begin_layout Itemize
4014 iospace (boolean): True if the VMA is I/O space.
4017 \begin_layout Itemize
4018 native_endian (boolean): True if the VMA has native endian as opposed to
4022 \begin_layout Subsubsection
4023 memory.find_vma(number address)
4026 \begin_layout Standard
4027 Finds the VMA containing specified address.
4028 Returns table in the same format as read_vma or nil if not found.
4031 \begin_layout Subsubsection
4032 memory.readbyte(number address)
4035 \begin_layout Standard
4036 Reads the specified address as unsigned byte and returns the result.
4039 \begin_layout Subsubsection
4040 memory.readsbyte(number address)
4043 \begin_layout Standard
4044 Reads the specified address as signed byte and returns the result.
4047 \begin_layout Subsubsection
4048 memory.writebyte(number address, number value)
4051 \begin_layout Standard
4052 Writes the specified value (negative values undergo 2's complement) to specified
4053 address (as a byte).
4056 \begin_layout Subsubsection
4057 memory.readword(number address)
4060 \begin_layout Standard
4061 Reads the specified address as unsigned word and returns the result.
4064 \begin_layout Subsubsection
4065 memory.readsword(number address)
4068 \begin_layout Standard
4069 Reads the specified address as signed word and returns the result.
4072 \begin_layout Subsubsection
4073 memory.writeword(number address, number value)
4076 \begin_layout Standard
4077 Writes the specified value (negative values undergo 2's complement) to specified
4078 address (as a word).
4081 \begin_layout Subsubsection
4082 memory.readdword(number address)
4085 \begin_layout Standard
4086 Reads the specified address as unsigned doubleword and returns the result.
4089 \begin_layout Subsubsection
4090 memory.readsdword(number address)
4093 \begin_layout Standard
4094 Reads the specified address as signed doubleword and returns the result.
4097 \begin_layout Subsubsection
4098 memory.writedword(number address, number value)
4101 \begin_layout Standard
4102 Writes the specified value (negative values undergo 2's complement) to specified
4103 address (as a doubleword).
4106 \begin_layout Subsubsection
4107 memory.readqword(number address)
4110 \begin_layout Standard
4111 Reads the specified address as unsigned quadword and returns the result.
4114 \begin_layout Subsubsection
4115 memory.readsqword(number address)
4118 \begin_layout Standard
4119 Reads the specified address as signed quadword and returns the result.
4122 \begin_layout Subsubsection
4123 memory.writeqword(number address, number value)
4126 \begin_layout Standard
4127 Writes the specified value (negative values undergo 2's complement) to specified
4128 address (as a quadword).
4131 \begin_layout Subsubsection
4132 memory.hash_region(number base, number size)
4135 \begin_layout Standard
4136 Hash specified number of bytes starting from specified address and return
4140 \begin_layout Subsubsection
4144 \begin_layout Standard
4145 Hash the current system state.
4146 Mainly useful for debugging savestates.
4149 \begin_layout Subsubsection
4150 memory.readregion(number base, number size)
4153 \begin_layout Standard
4154 Read a region of memory.
4157 \begin_layout Itemize
4158 Warning: If the region crosses VMA boundary, the results are undefined.
4161 \begin_layout Subsubsection
4162 memory.map<type>([number base, number size])
4165 \begin_layout Standard
4166 Returns a table mapping specified memory aperture for read/write.
4167 If parameters are omitted, entiere map space is the aperture.
4170 \begin_layout Itemize
4171 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
4174 \begin_layout Subsubsection
4175 memory.writeregion(number base, number size, table data)
4178 \begin_layout Standard
4179 Write a region of memory.
4182 \begin_layout Itemize
4183 Warning: If the region crosses VMA boundary, the results are undefined.
4186 \begin_layout Subsubsection
4187 memory.map_structure()
4190 \begin_layout Standard
4191 Returns a new mapping structure (MMAP_STRUCT)
4194 \begin_layout Subsubsection
4195 MMAP_STRUCT(string key, number address, string type)
4198 \begin_layout Standard
4199 Bind key in mmap structure to specified address with specified type.
4202 \begin_layout Itemize
4203 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
4206 \begin_layout Subsubsection
4207 memory.read_expr(string expr)
4210 \begin_layout Standard
4211 Evaluate specified watch expression and return result
4214 \begin_layout Subsection
4218 \begin_layout Standard
4219 Contains functions for manipulating subtitles.
4222 \begin_layout Subsubsection
4223 subtitle.byindex(number index)
4226 \begin_layout Standard
4227 Get (basetime, length) pair of specified subtitle index or nothing if index
4231 \begin_layout Subsubsection
4232 subtitle.get(number basetime, number length)
4235 \begin_layout Standard
4236 Read the specified subtitle.
4238 \begin_inset Quotes eld
4242 \begin_inset Quotes erd
4245 if the subtitle does not exist.
4248 \begin_layout Subsubsection
4249 subtitle.set(number basetime, number length, string content)
4252 \begin_layout Standard
4253 Set the specified subtitle.
4256 \begin_layout Subsubsection
4257 subtitle.deltete(number basetime, number length)
4260 \begin_layout Standard
4261 Delete the specified subtitle.
4264 \begin_layout Subsection
4268 \begin_layout Standard
4269 Contains copy of global variables from time of Lua initialization.
4273 \begin_layout Subsection
4277 \begin_layout Standard
4278 Various callbacks to Lua that can occur.
4281 \begin_layout Subsubsection
4282 Callback: on_paint(bool not_synth)
4285 \begin_layout Standard
4286 Called when screen is being painted.
4287 Any gui.* calls requiring graphic context draw on the screen.
4290 \begin_layout Standard
4291 not_synth is true if this hook is being called in response to received frame,
4295 \begin_layout Subsubsection
4296 Callback: on_video()
4299 \begin_layout Standard
4300 Called when video dump frame is being painted.
4301 Any gui.* calls requiring graphic context draw on the video.
4304 \begin_layout Subsubsection
4305 Callback: on_frame_emulated()
4308 \begin_layout Standard
4309 Called when emulating frame has completed and on_paint()/on_video() calls
4310 are about to be issued.
4313 \begin_layout Subsubsection
4314 Callback: on_frame()
4317 \begin_layout Standard
4318 Called on each starting whole frame.
4321 \begin_layout Subsubsection
4322 Callback: on_startup()
4325 \begin_layout Standard
4326 Called when the emulator is starting (lsnes.rc and --run files has been run).
4329 \begin_layout Subsubsection
4330 Callback: on_rewind()
4333 \begin_layout Standard
4334 Called when rewind movie to beginning has completed.
4337 \begin_layout Subsubsection
4338 Callback: on_pre_load(string name)
4341 \begin_layout Standard
4342 Called just before savestate/movie load occurs (note: loads are always delayed,
4343 so this occurs even when load was initiated by lua).
4346 \begin_layout Subsubsection
4347 Callback: on_err_load(string name)
4350 \begin_layout Standard
4351 Called if loadstate goes wrong.
4354 \begin_layout Subsubsection
4355 Callback: on_post_load(string name, boolean was_savestate)
4358 \begin_layout Standard
4359 Called on successful loadstate.
4360 was_savestate gives if this was a savestate or a movie.
4363 \begin_layout Subsubsection
4364 Callback: on_pre_save(string name, boolean is_savestate)
4367 \begin_layout Standard
4368 Called just before savestate save occurs (note: movie saves are synchronous
4369 and won't trigger these callbacks if called from Lua).
4372 \begin_layout Subsubsection
4373 Callback: on_err_save(string name)
4376 \begin_layout Standard
4377 Called if savestate goes wrong.
4380 \begin_layout Subsubsection
4381 Callback: on_post_save(string name, boolean is_savestate)
4384 \begin_layout Standard
4385 Called on successful savaestate.
4386 is_savestate gives if this was a savestate or a movie.
4389 \begin_layout Subsubsection
4393 \begin_layout Standard
4394 Called when emulator is shutting down.
4397 \begin_layout Subsubsection
4398 Callback: on_input(boolean subframe)
4401 \begin_layout Standard
4402 Called when emulator is just sending input to bsnes core.
4403 Warning: This is called even in readonly mode, but the results are ignored.
4406 \begin_layout Subsubsection
4407 Callback: on_reset()
4410 \begin_layout Standard
4411 Called when SNES is reset.
4414 \begin_layout Subsubsection
4415 Callback: on_readwrite()
4418 \begin_layout Standard
4419 Called when moving into readwrite mode as result of
4420 \begin_inset Quotes eld
4424 \begin_inset Quotes erd
4427 command (note: moving to rwmode by Lua won't trigger this, as per recursive
4431 \begin_layout Subsubsection
4432 Callback: on_snoop(number port, number controller, number index, number
4436 \begin_layout Standard
4437 Called each time bsnes asks for input.
4438 The value is the final value to be sent to bsnes core (readonly mode, autohold
4439 and autofire have been taken into account).
4440 Might be useful when translating movies to format suitable for console
4442 Note: There is no way to modify the value to be sent.
4445 \begin_layout Itemize
4446 Not called if callback on_snoop2 is defined.
4449 \begin_layout Subsubsection
4450 Callback: on_snoop2(number port, number controller, number index, number
4454 \begin_layout Standard
4455 Like on_snoop, but reserves port 0 for system, having first user port be
4459 \begin_layout Subsubsection
4460 Callback: on_keyhook(string keyname, table state)
4463 \begin_layout Standard
4464 Sent when key that has keyhook events requested changes state.
4465 Keyname is name of the key (group) and state is the state (same kind as
4466 table values in input.raw).
4469 \begin_layout Subsubsection
4473 \begin_layout Standard
4474 Called when requested by set_idle_timeout(), the timeout has expired and
4475 emulator is waiting.
4478 \begin_layout Subsubsection
4479 Callback: on_timer()
4482 \begin_layout Standard
4483 Called when requested by set_idle_timeout() and the timeout has expired
4484 (regardless if emulator is waiting).
4487 \begin_layout Subsubsection
4488 Callback: on_set_rewind(UNSAFEREWIND r)
4491 \begin_layout Standard
4492 Called when unsafe rewind object has been constructed.
4495 \begin_layout Subsubsection
4496 Callback: on_pre_rewind()
4499 \begin_layout Standard
4500 Called just before unsafe rewind is about to occur.
4503 \begin_layout Subsubsection
4504 Callback: on_post_rewind()
4507 \begin_layout Standard
4508 Called just after unsafe rewind has occured.
4511 \begin_layout Subsubsection
4512 Callback: on_button(number port, number controller, number index, string
4516 \begin_layout Standard
4517 Called on controller button press, with following parameters:
4520 \begin_layout Itemize
4521 port: Port number (0 is system)
4524 \begin_layout Itemize
4525 controller: Controller within port
4528 \begin_layout Itemize
4529 index: Index of button.
4532 \begin_layout Itemize
4533 type: Type of event, one of:
4537 \begin_layout Itemize
4538 \begin_inset Quotes eld
4542 \begin_inset Quotes erd
4545 : Button was pressed.
4548 \begin_layout Itemize
4549 \begin_inset Quotes eld
4553 \begin_inset Quotes erd
4556 : Button was released.
4559 \begin_layout Itemize
4560 \begin_inset Quotes eld
4564 \begin_inset Quotes erd
4570 \begin_layout Itemize
4571 \begin_inset Quotes eld
4575 \begin_inset Quotes erd
4578 : Released from hold.
4581 \begin_layout Itemize
4582 \begin_inset Quotes eld
4586 \begin_inset Quotes erd
4589 : Typing input on button.
4592 \begin_layout Itemize
4593 \begin_inset Quotes eld
4597 \begin_inset Quotes erd
4600 : Typing input undone.
4603 \begin_layout Itemize
4604 \begin_inset Quotes eld
4608 \begin_inset Quotes erd
4611 : Analog action on axis.
4615 \begin_layout Subsubsection
4616 Callback: on_movie_lost(STRING kind)
4619 \begin_layout Standard
4620 Called just before something would happen that could lose movie data.
4624 \begin_layout Itemize
4625 readwrite: Switching to readwrite mode.
4628 \begin_layout Itemize
4629 reload: ROM is being reloaded in readwrite mode.
4632 \begin_layout Itemize
4633 load: New movie is being loaded.
4636 \begin_layout Itemize
4637 unsaferewind: Unsafe rewind is happening.
4640 \begin_layout Section
4644 \begin_layout Itemize
4645 The editor edits in-memory movie.
4648 \begin_layout Itemize
4649 Because past can't be edited and readwrite mode doesn't allow future, editing
4657 \begin_layout Itemize
4658 Keyboard triggers the normal hotkeys and bindings.
4661 \begin_layout Subsection
4665 \begin_layout Itemize
4666 Clicking on cell in future (indicated by lack of redish background) toggles
4667 it (if it is a button) or prompts for a value (if it is an axis)
4670 \begin_layout Itemize
4671 Dragging vertically toggles sequence of buttons or changes a sequence of
4675 \begin_layout Subsection
4676 Right button actions
4679 \begin_layout Standard
4680 The right mouse button pops up a context-sensitive menu:
4683 \begin_layout Itemize
4684 Toggle <something>: Toggle this button
4687 \begin_layout Itemize
4688 Change <something>: Change this axis value
4691 \begin_layout Itemize
4692 Insert frame after: Insert a frame after this frame
4695 \begin_layout Itemize
4696 Append frame: Append a frame to movie
4699 \begin_layout Itemize
4700 Append frames: Append specified number of frames to movie
4703 \begin_layout Itemize
4704 Delete frame: Delete this frame
4707 \begin_layout Itemize
4708 Delete subframe: Delete this subframe
4711 \begin_layout Itemize
4712 Truncate movie: Delete this subframe and everything after it.
4715 \begin_layout Itemize
4716 Scroll to frame: Prompt for a frame and scroll the display to that frame.
4719 \begin_layout Itemize
4720 Scroll to current frame: Scroll the display to current position
4723 \begin_layout Itemize
4724 Run to frame: Prompts for frame and runs the emulation to that frame.
4727 \begin_layout Itemize
4728 Change number of lines visible: Change the height of the movie display (1
4732 \begin_layout Itemize
4733 Lock scroll to playback: While playing back or rewinding movies, the display
4734 will follow if enabled.
4737 \begin_layout Section
4738 Memory watch expression syntax
4741 \begin_layout Standard
4742 Memory watch expressions are in RPN (Reverse Polish Notation).
4743 At the end of expression, the top entry on stack is taken as the final
4747 \begin_layout Standard
4751 \begin_layout Itemize
4752 Evaluation order is strictly left to right.
4755 \begin_layout Itemize
4756 a is the entry on top of stack
4759 \begin_layout Itemize
4760 b is the entry immediately below top of stack
4763 \begin_layout Itemize
4764 ; separates values to be pushed (no intermediate pop).
4767 \begin_layout Itemize
4768 After end of element, all used stack slots are popped and all results are
4772 \begin_layout Itemize
4773 When pushing multiple values, the pushes occur in order shown.
4776 \begin_layout Standard
4777 The following operators are available:
4780 \begin_layout Itemize
4784 \begin_layout Itemize
4788 \begin_layout Itemize
4792 \begin_layout Itemize
4796 \begin_layout Itemize
4800 \begin_layout Itemize
4804 \begin_layout Itemize
4805 b : read_signed_byte(a)
4808 \begin_layout Itemize
4812 \begin_layout Itemize
4813 d : read_signed_dword(a)
4816 \begin_layout Itemize
4820 \begin_layout Itemize
4822 \begin_inset Formula $\pi$
4828 \begin_layout Itemize
4829 q : read_signed_qword(a)
4832 \begin_layout Itemize
4836 \begin_layout Itemize
4840 \begin_layout Itemize
4844 \begin_layout Itemize
4848 \begin_layout Itemize
4849 w : read_signed_word(a)
4852 \begin_layout Itemize
4856 \begin_layout Itemize
4857 B : read_unsigned_byte(a)
4860 \begin_layout Itemize
4861 C<number>z : Push number <number> to stack.
4864 \begin_layout Itemize
4865 D : read_unsigned_dword(a)
4868 \begin_layout Itemize
4869 C0x<number>z : Push number <number> (hexadecimal) to stack.
4872 \begin_layout Itemize
4873 H<digit> : Set hexadecimal mode with specified number of digits (use A-G
4877 \begin_layout Itemize
4878 Q : read_unsigned_qword(a)
4881 \begin_layout Itemize
4882 R<digit> : round a to <digit> digits.
4885 \begin_layout Itemize
4886 W : read_unsigned_word(a)
4889 \begin_layout Subsection
4893 \begin_layout Standard
4894 C0x007e0878zWC0x007e002czW-
4897 \begin_layout Enumerate
4898 Push value 0x7e0878 on top of stack (C0x007e0878z).
4901 \begin_layout Enumerate
4902 Pop the value on top of stack (0x7e0878), read word value at that address
4903 and push the result,call it x1 (W).
4906 \begin_layout Enumerate
4907 Push value 0x7e002c on top of stack (C0x007e002cz).
4910 \begin_layout Enumerate
4911 Pop the value on top of stack (0x7e002c), read word value at that address
4912 and push the result,call it x2 (W).
4915 \begin_layout Enumerate
4916 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
4920 \begin_layout Enumerate
4921 Since the expression ends, the final memory watch result is the top one
4922 on stack, which is x2 - x1.
4925 \begin_layout Section
4926 Modifier and key names:
4929 \begin_layout Subsection
4933 \begin_layout Subsubsection
4937 \begin_layout Standard
4938 Following modifier names are known:
4941 \begin_layout Itemize
4942 ctrl, lctrl, rctrl: Control keys
4945 \begin_layout Itemize
4946 alt, lalt, ralt: ALT keys.
4949 \begin_layout Itemize
4950 shift, lshift, rshift: Shift keys.
4953 \begin_layout Itemize
4954 meta, lmeta, rmeta: Meta keys.
4957 \begin_layout Itemize
4958 num, caps: Numlock/Capslock (these are sticky!)
4961 \begin_layout Itemize
4965 \begin_layout Subsubsection
4969 \begin_layout Standard
4970 Following key names are known:
4973 \begin_layout Itemize
4974 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
4975 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
4976 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
4977 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
4978 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
4979 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
4980 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
4981 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
4982 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
4983 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
4984 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
4985 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
4986 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
4987 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
4988 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
4989 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
4990 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
4991 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
4992 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
4993 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
4994 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
4995 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
4996 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
4997 break, menu, power, euro, undo
5000 \begin_layout Itemize
5001 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
5002 hardware-dependent scan code of <n> (useful to bind those keys that don't
5003 have symbolic names).
5006 \begin_layout Subsubsection
5007 Joystick pseudo-keys:
5010 \begin_layout Itemize
5011 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
5014 \begin_layout Itemize
5015 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
5018 \begin_layout Itemize
5019 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
5022 \begin_layout Itemize
5023 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
5026 \begin_layout Itemize
5027 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
5030 \begin_layout Itemize
5031 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
5032 position (axis modes axis and axis_inverse).
5035 \begin_layout Itemize
5036 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
5037 position (axis modes axis and axis_inverse).
5040 \begin_layout Itemize
5041 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
5045 \begin_layout Subsubsection
5049 \begin_layout Itemize
5050 Escape: Enter/Exit Command mode, cancel modal dialogs.
5053 \begin_layout Itemize
5054 Return (also KPEnter): Execute command, ok modal dialog.
5057 \begin_layout Itemize
5058 Pgup/Up (also KP8/9 if no num lock, CTRL+P; command mode): Previous command
5062 \begin_layout Itemize
5063 Pgdn/Down(also KP2/3 if no num lock, CTRL+N; command mode): Next command
5067 \begin_layout Itemize
5068 Home (also KP7 if no num lock, CTRL+A; command mode): Beginning of command.
5071 \begin_layout Itemize
5072 End (also KP1 if no num lock, CTRL+E; command mode): End of command.
5075 \begin_layout Itemize
5076 Left (also KP4 if no num lock, CTRL+B; command mode): Move cursor left.
5079 \begin_layout Itemize
5080 Right (also KP6 if no num lock, CTRL+F; command mode): Move cursor right.
5083 \begin_layout Itemize
5085 if no num lock; command mode): Delete character to right of cursor.
5088 \begin_layout Itemize
5089 Insert (also KP0 if no num lock; command mode): Toggle between insert /
5093 \begin_layout Itemize
5094 Backspace (command mode): Delete character to left of cursor.
5097 \begin_layout Itemize
5098 CTRL+LEFT (also ALT+B; command mode): Previous word.
5101 \begin_layout Itemize
5102 CTRL+RIGHT (also ALT+F; command mode): Next word.
5105 \begin_layout Itemize
5106 ALT+D (also CTRL+W; command mode): Delete word.
5109 \begin_layout Itemize
5110 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
5113 \begin_layout Subsection
5117 \begin_layout Subsubsection
5121 \begin_layout Standard
5122 Following modifier names are known:
5125 \begin_layout Itemize
5129 \begin_layout Itemize
5133 \begin_layout Itemize
5137 \begin_layout Itemize
5141 \begin_layout Itemize
5145 \begin_layout Subsubsection
5149 \begin_layout Standard
5150 Following key names are known:
5153 \begin_layout Itemize
5154 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
5155 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
5156 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
5157 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
5158 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
5159 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
5160 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
5161 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
5162 pause, capital, end, home, lefT, up, right, down, select, print, execute,
5163 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
5164 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
5165 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
5166 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
5167 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
5168 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
5169 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
5170 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
5171 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
5172 windows_right, windows_menu, command, special1, special2, special3, special4,
5173 special5, special6, special7, special8, special9, special10, special11,
5174 special12, special13, special14, special15, special16, special17, special18,
5175 special19, special20
5178 \begin_layout Section
5182 \begin_layout Standard
5183 Movie file is .zip archive in itself, normal ZIP archive tools work on it
5184 (note: If you recompress it, do not use compression methods other than
5185 store and deflate and especially do not use encryption of any kind).
5188 \begin_layout Subsection
5189 Detecting clean start/SRAM/Savestate
5192 \begin_layout Itemize
5194 \begin_inset Quotes eld
5198 \begin_inset Quotes erd
5201 it is savestate, otherwise:
5204 \begin_layout Itemize
5205 If file has members with names starting
5206 \begin_inset Quotes eld
5210 \begin_inset Quotes erd
5213 it is movie starting from SRAM, otherwise:
5216 \begin_layout Itemize
5217 It is movie starting from clear state.
5220 \begin_layout Subsection
5224 \begin_layout Standard
5225 Type of game ROM and region (as one line).
5229 \begin_layout Standard
5230 \begin_inset Tabular
5231 <lyxtabular version="3" rows="8" columns="3">
5232 <features tabularvalignment="middle">
5233 <column alignment="center" valignment="top" width="0">
5234 <column alignment="center" valignment="top" width="0">
5235 <column alignment="center" valignment="top" width="0">
5237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5240 \begin_layout Plain Layout
5246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5249 \begin_layout Plain Layout
5255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5258 \begin_layout Plain Layout
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Plain Layout
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5278 \begin_layout Plain Layout
5284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5287 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Plain Layout
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5307 \begin_layout Plain Layout
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5316 \begin_layout Plain Layout
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5327 \begin_layout Plain Layout
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5345 \begin_layout Plain Layout
5353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5356 \begin_layout Plain Layout
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5365 \begin_layout Plain Layout
5371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5374 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5385 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5403 \begin_layout Plain Layout
5411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5414 \begin_layout Plain Layout
5420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5423 \begin_layout Plain Layout
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5432 \begin_layout Plain Layout
5440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5443 \begin_layout Plain Layout
5449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5452 \begin_layout Plain Layout
5458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5461 \begin_layout Plain Layout
5475 \begin_layout Standard
5479 \begin_layout Standard
5480 \begin_inset Tabular
5481 <lyxtabular version="3" rows="3" columns="2">
5482 <features tabularvalignment="middle">
5483 <column alignment="center" valignment="top" width="0">
5484 <column alignment="center" valignment="top" width="0">
5486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5489 \begin_layout Plain Layout
5495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5498 \begin_layout Plain Layout
5506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5509 \begin_layout Plain Layout
5515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5518 \begin_layout Plain Layout
5526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5529 \begin_layout Plain Layout
5535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5538 \begin_layout Plain Layout
5552 \begin_layout Subsection
5556 \begin_layout Standard
5557 Contains type of port #1 (as one line).
5558 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
5559 If not present, defaults to 'gamepad'.
5562 \begin_layout Subsection
5566 \begin_layout Standard
5567 Contains type of port #2 (as one line).
5568 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
5569 'justifier' and 'justifiers'.
5570 If not present, defaults to 'none'.
5573 \begin_layout Subsection
5577 \begin_layout Standard
5578 Contains name of the game (as one line).
5581 \begin_layout Subsection
5585 \begin_layout Standard
5586 Contains authors, one per line.
5587 Part before '|' is the full name, part after is the nickname.
5590 \begin_layout Subsection
5594 \begin_layout Standard
5596 \begin_inset Quotes eld
5600 \begin_inset Quotes erd
5604 Used to reject other saves.
5607 \begin_layout Subsection
5608 Member: controlsversion
5611 \begin_layout Standard
5613 \begin_inset Quotes eld
5617 \begin_inset Quotes erd
5621 Used to identify what controls are there.
5624 \begin_layout Subsection
5626 \begin_inset Quotes eld
5630 \begin_inset Quotes erd
5636 \begin_layout Standard
5637 Contains bsnes core version number (as one line).
5640 \begin_layout Subsection
5644 \begin_layout Standard
5645 Contains project ID (as one line).
5646 Used to identify if two movies are part of the same project.
5649 \begin_layout Subsection
5650 Member: {rom,slota,slotb}{,xml}.sha256
5653 \begin_layout Standard
5654 Contains SHA-256 of said ROM or ROM mapping file (as one line).
5655 Absent if corresponding file is absent.
5658 \begin_layout Subsection
5659 Member: moviesram.<name>
5662 \begin_layout Standard
5663 Raw binary startup SRAM of kind <name>.
5664 Only present in savestates and movies starting from SRAM.
5667 \begin_layout Subsection
5671 \begin_layout Standard
5672 Contains frame number (as one line) of frame movie was saved on.
5673 Only present in savestates.
5676 \begin_layout Subsection
5680 \begin_layout Standard
5681 Current value of lag counter (as one line).
5682 Only present in savestates.
5685 \begin_layout Subsection
5686 Member: pollcounters
5689 \begin_layout Standard
5690 Contains poll counters (currently 100 of them), one per line.
5691 Each line is raw poll count if DRDY is set for it.
5692 Otherwise it is negative poll count minus one.
5693 Only present in savestates.
5696 \begin_layout Subsection
5700 \begin_layout Standard
5701 Raw binary dump of host memory.
5702 Only present in savestates.
5705 \begin_layout Subsection
5709 \begin_layout Standard
5710 The raw binary savestate itself.
5711 Savestate detection uses this file, only present in savestates.
5714 \begin_layout Subsection
5718 \begin_layout Standard
5719 Screenshot of current frame.
5720 Only present in savestates.
5721 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
5723 Height of image is inferred from the width and size of data.
5726 \begin_layout Subsection
5730 \begin_layout Standard
5731 Raw binary SRAM of kind <name> at time of savestate.
5732 Only present in savestates.
5735 \begin_layout Subsection
5739 \begin_layout Standard
5740 The actual input track, one line per subframe (blank lines are skipped).
5743 \begin_layout Itemize
5744 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
5745 part of same frame as previous, otherwise it starts a new frame.
5748 \begin_layout Itemize
5749 First subframe must start a new frame.
5752 \begin_layout Standard
5753 Length of movie in frames is number of lines in input file that start a
5757 \begin_layout Subsection
5761 \begin_layout Standard
5766 \begin_layout Itemize
5767 Each line is in form <firstframe> <numframes> <text>.
5770 \begin_layout Itemize
5771 Linefeed is encoded as
5773 n, backslash is encoded as
5780 \begin_layout Subsection
5784 \begin_layout Standard
5785 Contains textual base-10 rerecord count (as one line; emulator just writes
5786 this, it doesn't read it) + 1.
5789 \begin_layout Subsection
5793 \begin_layout Standard
5794 This member stores set of load IDs.
5795 There is one load ID per rerecord (plus one corresponding to start of project).
5798 \begin_layout Itemize
5799 This member constists of concatenation of records
5802 \begin_layout Itemize
5803 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
5807 \begin_layout Itemize
5808 IDs are interpretted as 256-bit big-endian integers with warparound.
5811 \begin_layout Itemize
5812 Initial predicted ID is all zeroes.
5815 \begin_layout Standard
5816 Format of each record is:
5819 \begin_layout Itemize
5820 1 byte: Opcode byte.
5821 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
5825 \begin_layout Itemize
5826 32-prefixlen bytes of ID.
5829 \begin_layout Itemize
5830 countlen bytes of big-endian count (count).
5833 \begin_layout Standard
5834 Records are processed as follows:
5837 \begin_layout Itemize
5838 To form the first ID encoded by record, take the first prefixlen bytes predicted
5839 ID and append the read ID value to it.
5840 The result is the first ID encoded.
5843 \begin_layout Itemize
5844 If countlen is 0, record encodes 1 ID.
5847 \begin_layout Itemize
5848 If countlen is 1, record encodes 2+count IDs.
5851 \begin_layout Itemize
5852 If countlen is 2, record encodes 258+count IDs.
5855 \begin_layout Itemize
5856 If countlen is 3, record encodes 65794+count IDs.
5859 \begin_layout Itemize
5860 The new predicted ID is the next ID after last one encoded by the record.
5863 \begin_layout Standard
5864 The number of rerecords + 1 is equal to the sum of number of IDs encoded
5868 \begin_layout Subsection
5869 Member: starttime.second
5872 \begin_layout Standard
5873 Movie starting time, second part.
5874 Epoch is Unix epoch.
5875 Default is 1,000,000,000.
5878 \begin_layout Subsection
5879 Member: starttime.subsecond
5882 \begin_layout Standard
5883 Movie starting time, subsecond part.
5888 \begin_layout Subsection
5889 Member: savetime.second
5892 \begin_layout Standard
5893 Movie saving time, second part.
5894 Default is starttime.second.
5895 Only present in savestates.
5898 \begin_layout Subsection
5899 Member: savetime.subsecond
5902 \begin_layout Standard
5903 Movie saving time, subsecond part.
5904 Default is starttime.subsecond.
5905 Only present in savestates.
5908 \begin_layout Section
5909 lsvs file format (commentary tracks)
5912 \begin_layout Subsection
5916 \begin_layout Itemize
5917 Each cluster is 8kB (8192 bytes) in size.
5920 \begin_layout Itemize
5921 Cluster n starts at offset 8192*n in file.
5924 \begin_layout Itemize
5925 The following clusters are system special:
5929 \begin_layout Itemize
5930 Cluster 0 and all clusters with number multiple of 2048 (cluster tables)
5933 \begin_layout Itemize
5934 Cluster 1 (superblock)
5938 \begin_layout Subsection
5942 \begin_layout Itemize
5943 The cluster table describing cluster n is stored in cluster n & ~0x7FF (zero
5947 \begin_layout Itemize
5948 This cluster table consists of 2048 4-byte big-endian integers.
5951 \begin_layout Itemize
5952 Each entry describes a cluster in 16MB supercluster, in order.
5955 \begin_layout Itemize
5956 The valid values for entries are:
5960 \begin_layout Itemize
5961 0x00000000: Free cluster
5964 \begin_layout Itemize
5965 0x00000001: Last cluster in chain.
5968 \begin_layout Itemize
5969 0xFFFFFFFF: System cluster (cluster tables and superblock)
5972 \begin_layout Itemize
5973 (anything else): Number of next cluster in chain.
5974 Must not be multiple of 2048.
5978 \begin_layout Itemize
5979 Due to limitations of the format, there can be at most 2097052 superclusters,
5980 giving maximum file size of 16TB.
5983 \begin_layout Subsection
5987 \begin_layout Itemize
5988 The stream table chain always starts in cluster 2.
5991 \begin_layout Itemize
5992 Otherwise, it follows normal chaining.
5995 \begin_layout Itemize
5996 The stream table consists of 16-byte entries:
6000 \begin_layout Itemize
6001 The first 8 bytes of entry give big-endian beginning position of stream
6002 in units of 1/48000 s.
6005 \begin_layout Itemize
6006 The next 4 bytes of entry give big-endian beginning cluster for control
6008 0 here marks the entry as not present.
6011 \begin_layout Itemize
6012 The last 4 bytes of entry give big-endian beginning cluster for codec data.
6016 \begin_layout Itemize
6017 Stream table clusters are normal clusters, following normal chaining.
6020 \begin_layout Itemize
6021 The stream begnning position is not guarenteed unique.
6022 There can be multiple streams with the same starting position in the file.
6025 \begin_layout Subsection
6029 \begin_layout Itemize
6030 The stream control data consists of entries 4 bytes each:
6034 \begin_layout Itemize
6035 The first 2 bytes of entry gives big-endian length of packet
6038 \begin_layout Itemize
6039 The next byte of entry gives audio length of packet in units of 1/400 s.
6042 \begin_layout Itemize
6043 The last byte is control byte.
6047 \begin_layout Itemize
6048 0 means this entry is not present and the control data ends.
6051 \begin_layout Itemize
6052 1 is valid control entry.
6057 \begin_layout Itemize
6058 The stream control data can also end by running into end of the readable
6063 \begin_layout Itemize
6064 This happens if there happens to be exact multiple of 2048 packets in stream
6065 and number of packets is nonzero.
6069 \begin_layout Itemize
6070 These clusters follow normal chaining.
6073 \begin_layout Subsection
6077 \begin_layout Itemize
6078 Stream codec data consists of raw Opus data packets packed back to back
6079 with nothing in between.
6082 \begin_layout Itemize
6083 Warning: Due to internal limitations, this data must reside in the first
6084 65536 superclusters (that is, the first 1TB of the file).
6087 \begin_layout Subsection
6091 \begin_layout Itemize
6092 The superblock is stored in cluster 1.
6096 \begin_layout Itemize
6097 The first 11 bytes are
6098 \begin_inset Quotes eld
6102 \begin_inset Quotes erd
6108 \begin_layout Itemize
6109 The rest are unused.
6112 \begin_layout Itemize
6113 This cluster 1 is marked as system special.
6116 \begin_layout Section
6117 Known ROM extensions
6120 \begin_layout Itemize
6121 SNES cartridge ROMs: sfc, smc, swc, fig, ufo, sf2, gd3, gd7, dx2, mgd, mgh.
6124 \begin_layout Itemize
6125 DMG cartridge ROMs: dmg, gb.
6128 \begin_layout Itemize
6129 GBC cartridge ROMs: cgb, gbc.
6132 \begin_layout Section
6136 \begin_layout Itemize
6137 The first line must be:
6138 \begin_inset Quotes eld
6142 \begin_inset Quotes erd
6148 \begin_layout Itemize
6149 There is one needed line:
6150 \begin_inset Quotes eld
6154 \begin_inset Quotes erd
6158 This sets system type to <systype>.
6159 The following system types are valid:
6163 \begin_layout Itemize
6167 \begin_layout Itemize
6168 bsx (BS-X non-slotted)
6171 \begin_layout Itemize
6172 bsxslotted (BS-X slotted)
6175 \begin_layout Itemize
6176 sufamiturbo (Sufami Turbo)
6179 \begin_layout Itemize
6180 sgb (Super Game Boy)
6183 \begin_layout Itemize
6187 \begin_layout Itemize
6188 gbc (Game Boy Color)
6191 \begin_layout Itemize
6192 gbc_gba (Game Boy Color with GBA initial register values)
6196 \begin_layout Itemize
6197 Optionally a region can be specified:
6198 \begin_inset Quotes eld
6202 \begin_inset Quotes erd
6206 The following values are valid:
6210 \begin_layout Itemize
6211 autodetect (Autodetect region: snes and sgb only)
6214 \begin_layout Itemize
6215 ntsc (NTSC: snes, bsx, bsxslotted, sufamiturbo, sgb)
6218 \begin_layout Itemize
6219 pal (PAL: snes, sgb)
6222 \begin_layout Itemize
6223 world (World: dmg, gbc, gbc_gba)
6227 \begin_layout Itemize
6228 ROM images are loaded as:
6229 \begin_inset Quotes eld
6233 \begin_inset Quotes erd
6237 The following types are valid:
6241 \begin_layout Itemize
6242 rom (Cartridge ROM in snes, dmg, gbc, gbc_gba.
6243 BIOS in bsx, bsxslotted, sufamiturbo)
6246 \begin_layout Itemize
6247 bsx (Cartridge ROM in bsx, bsxslotted)
6250 \begin_layout Itemize
6251 slot-a (Cartridge ROM in sufamiturbo)
6254 \begin_layout Itemize
6255 slot-b (Cartridge ROM in sufamiturbo)
6259 \begin_layout Itemize
6260 ROM markup can be loaded as:
6261 \begin_inset Quotes eld
6265 \begin_inset Quotes erd
6269 The types valid are the same as for ROMs.
6272 \begin_layout Itemize
6273 Patches can be loaded as
6274 \begin_inset Quotes eld
6277 patch[<offset>] <type> <file>
6278 \begin_inset Quotes erd
6282 The types are the same as for ROMs.
6286 \begin_layout Itemize
6287 Offset is given in form [+-]<number>.
6288 Usually offset is either +0 or -512.
6291 \begin_layout Itemize
6292 Default offset is +0.
6296 \begin_layout Subsection
6300 \begin_layout LyX-Code
6304 \begin_layout LyX-Code
6308 \begin_layout LyX-Code
6309 rom rom speedygonzales.sfc
6312 \begin_layout LyX-Code
6313 patch-512 rom sonicthehedgehog.ips
6316 \begin_layout Subsection
6320 \begin_layout LyX-Code
6324 \begin_layout LyX-Code
6328 \begin_layout LyX-Code
6329 rom rom supergameboy.sfc
6332 \begin_layout LyX-Code
6333 rom dmg megamanV.dmg
6336 \begin_layout Section
6337 Quick'n'dirty encode guide
6340 \begin_layout Enumerate
6341 Start the emulator and load the ROM and movie file.
6344 \begin_layout Enumerate
6345 Set large AVI option 'set-setting avi-large on'
6348 \begin_layout Enumerate
6349 Enable dumping 'dump-avi tmpdump'
6352 \begin_layout Enumerate
6353 Unpause and let it run until you want to end dumping.
6356 \begin_layout Enumerate
6357 Close the emulator (closing the window is the easiest way).
6361 \begin_layout Enumerate
6362 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
6363 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
6366 \begin_layout Enumerate
6367 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
6370 \begin_layout Enumerate
6371 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
6372 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
6375 \begin_layout Enumerate
6376 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
6377 Now final.mkv contains quick'n'dirty encode.
6380 \begin_layout Section
6381 Axis configurations for some gamepad types:
6384 \begin_layout Subsection
6388 \begin_layout Standard
6389 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
6392 \begin_layout LyX-Code
6393 set-axis joystick0axis2 pressure-+
6396 \begin_layout LyX-Code
6397 set-axis joystick0axis5 pressure-+
6400 \begin_layout Itemize
6401 This is needed for SDL only.
6402 EVDEV sets those types correctly.
6405 \begin_layout Subsection
6407 \begin_inset Quotes eld
6411 \begin_inset Quotes erd
6417 \begin_layout Standard
6418 Axes 8-19 should be disabled.
6421 \begin_layout LyX-Code
6422 set-axis joystick0axis8 disabled
6425 \begin_layout LyX-Code
6426 set-axis joystick0axis9 disabled
6429 \begin_layout LyX-Code
6430 set-axis joystick0axis10 disabled
6433 \begin_layout LyX-Code
6434 set-axis joystick0axis11 disabled
6437 \begin_layout LyX-Code
6438 set-axis joystick0axis12 disabled
6441 \begin_layout LyX-Code
6442 set-axis joystick0axis13 disabled
6445 \begin_layout LyX-Code
6446 set-axis joystick0axis14 disabled
6449 \begin_layout LyX-Code
6450 set-axis joystick0axis15 disabled
6453 \begin_layout LyX-Code
6454 set-axis joystick0axis16 disabled
6457 \begin_layout LyX-Code
6458 set-axis joystick0axis17 disabled
6461 \begin_layout LyX-Code
6462 set-axis joystick0axis18 disabled
6465 \begin_layout LyX-Code
6466 set-axis joystick0axis19 disabled
6469 \begin_layout Section
6473 \begin_layout Subsection
6474 Problems from BSNES core:
6477 \begin_layout Itemize
6478 The whole pending save stuff.
6481 \begin_layout Itemize
6482 Lack of layer hiding.
6485 \begin_layout Itemize
6486 It is slow (especially accuracy).
6489 \begin_layout Itemize
6490 Firmwares can't be loaded from ZIP archives.
6493 \begin_layout Subsection
6497 \begin_layout Itemize
6498 Modifiers don't work with pseudo-keys (SDL, EVDEV).
6501 \begin_layout Itemize
6502 Audio for last dumped frame is not itself dumped.
6505 \begin_layout Itemize
6506 Audio in UI is pretty bad in quality if game doesn't run at full speed.
6509 \begin_layout Itemize
6510 No menus, command based interface (SDL).
6513 \begin_layout Itemize
6514 Long commands don't scroll.
6517 \begin_layout Section
6521 \begin_layout Subsection
6525 \begin_layout Itemize
6529 \begin_layout Itemize
6530 Fix dumper video corruption with levels 10-18.
6533 \begin_layout Subsection
6537 \begin_layout Itemize
6541 \begin_layout Itemize
6542 Lots of code cleanups
6545 \begin_layout Itemize
6546 Lua interface to settings
6549 \begin_layout Itemize
6550 Allow specifying AVI borders without Lua
6553 \begin_layout Itemize
6554 Fix scaling if vscale > 1 and originx > 0 (left border exists)
6557 \begin_layout Itemize
6558 on_snoop lua callback
6561 \begin_layout Itemize
6562 Faster movie loading and saving.
6565 \begin_layout Subsection
6569 \begin_layout Itemize
6573 \begin_layout Subsection
6577 \begin_layout Itemize
6581 \begin_layout Itemize
6582 Save jukebox functionality.
6585 \begin_layout Subsection
6589 \begin_layout Itemize
6590 Try to fix some nasty failing movie load edge cases
6593 \begin_layout Itemize
6594 Allow specifying scripts to run on command line.
6597 \begin_layout Subsection
6601 \begin_layout Itemize
6602 Major source code reorganization.
6605 \begin_layout Itemize
6606 Backup savestates before overwriting.
6609 \begin_layout Itemize
6610 Don't crash if loading initial state fails.
6613 \begin_layout Subsection
6617 \begin_layout Itemize
6621 \begin_layout Itemize
6622 Fix author name parsing
6625 \begin_layout Itemize
6626 Fix rerecord counting
6629 \begin_layout Itemize
6630 (SDL) Print messages to console if SDL is uninitialized
6633 \begin_layout Itemize
6634 Add movieinfo program
6637 \begin_layout Itemize
6638 Fix loading movies starting from SRAM.
6641 \begin_layout Subsection
6645 \begin_layout Itemize
6646 Add support for unattended dumping
6649 \begin_layout Itemize
6650 Fix compiling for Win32
6653 \begin_layout Itemize
6654 Don't lock up if sound can't be initialized
6657 \begin_layout Itemize
6658 Strip trailing CR from commands
6661 \begin_layout Itemize
6662 Don't try to do dubious things in global ctors (fix crash on startup)
6665 \begin_layout Subsection
6669 \begin_layout Itemize
6670 Small documentation tweaking
6673 \begin_layout Itemize
6677 \begin_layout Itemize
6678 Fix major bug in modifier matching
6681 \begin_layout Subsection
6685 \begin_layout Itemize
6686 Lots of documentation fixes
6689 \begin_layout Itemize
6690 Use dedicated callbacks for event backcomm., not commands.
6693 \begin_layout Itemize
6694 Ensure that the watchdog is not hit when executing delayed reset.
6697 \begin_layout Itemize
6698 Remove errant tab from joystick message.
6701 \begin_layout Subsection
6705 \begin_layout Itemize
6706 Make autofire operate in absolute time, not linear time
6709 \begin_layout Itemize
6710 Reinitialize controls when resuming from loadstate
6713 \begin_layout Itemize
6714 Some more code cleanups
6717 \begin_layout Itemize
6718 If Lua allocator fails, call OOM_panic()
6721 \begin_layout Itemize
6722 Byte/word/dword/qword sized host memory write/read functions.
6725 \begin_layout Itemize
6726 Dump at correct framerate if dumping interlaced NTSC (height=448).
6729 \begin_layout Subsection
6733 \begin_layout Itemize
6734 Actually include the complete source code
6737 \begin_layout Itemize
6741 \begin_layout Subsection
6745 \begin_layout Itemize
6746 Document {save,start}time.{,sub}second.
6749 \begin_layout Itemize
6750 Intercept time() from bsnes core.
6753 \begin_layout Subsection
6757 \begin_layout Itemize
6758 Allow disabling time() interception (allow build on Mac OS X)
6761 \begin_layout Itemize
6762 Use SDLMain on Mac OS X (make SDL not crash)
6765 \begin_layout Itemize
6766 Disable delayed resets (just plain too buggy for now).
6769 \begin_layout Itemize
6773 \begin_layout Itemize
6774 Use 16-bit for graphics/video instead of 32-bit.
6777 \begin_layout Itemize
6778 gui.rectangle/gui.pixel
6781 \begin_layout Itemize
6785 \begin_layout Itemize
6786 New CSCD writer implementation.
6789 \begin_layout Subsection
6793 \begin_layout Itemize
6794 Fix interaction of * and +.
6797 \begin_layout Itemize
6801 \begin_layout Itemize
6802 Use gettimeofday()/usleep(), these seem portable enough.
6805 \begin_layout Itemize
6806 Move joystick axis manipulation to keymapper code.
6809 \begin_layout Itemize
6810 Changes to how read-only works.
6813 \begin_layout Itemize
6814 Refactor controller input code.
6817 \begin_layout Subsection
6821 \begin_layout Itemize
6822 Fix mouseclick scale compensation.
6825 \begin_layout Itemize
6826 Draw area boundaries correctly in SDL code.
6829 \begin_layout Itemize
6833 \begin_layout Itemize
6834 Fix CSCD output (buffer overrun and race condition).
6837 \begin_layout Subsection
6841 \begin_layout Itemize
6842 JMD dumping support.
6845 \begin_layout Itemize
6846 Allow unattended dumping to JMD.
6849 \begin_layout Itemize
6853 \begin_layout Itemize
6854 Switch back to 32-bit colors.
6857 \begin_layout Itemize
6858 Add Lua function gui.color.
6861 \begin_layout Itemize
6862 Use some new C++11 features in GCC 4.6.
6865 \begin_layout Itemize
6866 Be prepared for core frequency changes.
6869 \begin_layout Itemize
6870 Pass colors in one chunk from Lua.
6873 \begin_layout Subsection
6877 \begin_layout Itemize
6878 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
6879 memory.read_vma() and memory.find_vma().
6882 \begin_layout Itemize
6883 Numerious documentation fixups
6886 \begin_layout Itemize
6887 RTC time format changed
6890 \begin_layout Itemize
6891 Reformat flags display
6894 \begin_layout Itemize
6895 Allow lua package name to be overridden
6898 \begin_layout Itemize
6899 SDUMP (high-quality dumping).
6902 \begin_layout Itemize
6903 Split platform support to plugins.
6906 \begin_layout Itemize
6907 Make all sound plugins support basic sound commands
6910 \begin_layout Itemize
6911 Support portaudio for sound.
6914 \begin_layout Itemize
6915 Allow disable Lua/SDL searching.
6918 \begin_layout Itemize
6919 Upconvert colors when copying lcscreen to screen.
6922 \begin_layout Itemize
6923 Reorganize source tree.
6926 \begin_layout Itemize
6927 Evdev joystick support.
6930 \begin_layout Itemize
6931 Refactor more code into generic window code.
6934 \begin_layout Subsection
6938 \begin_layout Itemize
6939 Refactor message handling.
6942 \begin_layout Itemize
6946 \begin_layout Itemize
6950 \begin_layout Itemize
6951 Finish pending saves before load/quit.
6954 \begin_layout Itemize
6955 Wxwidgets graphics plugin.
6958 \begin_layout Subsection
6962 \begin_layout Itemize
6963 Get rid of win32-crap.[ch]pp.
6966 \begin_layout Itemize
6967 Move files around a lot.
6970 \begin_layout Itemize
6971 Get rid of need for host C++ compiler.
6974 \begin_layout Itemize
6978 \begin_layout Itemize
6979 Refactor inter-component communication.
6982 \begin_layout Itemize
6986 \begin_layout Itemize
6987 Fix crash on multiline aliases.
6990 \begin_layout Itemize
6991 Load/Save settings in wxwidgets gui.
6994 \begin_layout Subsection
6998 \begin_layout Itemize
6999 Patch problems in bsnes core
7002 \begin_layout Itemize
7003 SNES is little-endian, not big-endian!
7006 \begin_layout Itemize
7007 Fix memory corruption in lcscreen::load()
7010 \begin_layout Subsection
7014 \begin_layout Itemize
7015 Fix interpretting repeat counts in rrdata loading.
7018 \begin_layout Itemize
7019 New lua callback: on_frame()
7022 \begin_layout Itemize
7023 Remove calls to runtosave() that aren't supposed to be there
7026 \begin_layout Itemize
7027 Lua function: movie.read_rtc()
7030 \begin_layout Itemize
7031 Ignore src/fonts/font.cpp
7034 \begin_layout Itemize
7035 Fix more bsnes core problems
7038 \begin_layout Itemize
7039 Control bsnes random seeding
7042 \begin_layout Itemize
7046 \begin_layout Itemize
7047 Some bsnes core debugging features (state dump and state hash)
7050 \begin_layout Itemize
7051 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
7052 it was 'lsnes rr0-beta21').
7055 \begin_layout Subsection
7059 \begin_layout Itemize
7060 Fix memory corruption due to macro/field mixup
7063 \begin_layout Itemize
7064 search-memory update
7067 \begin_layout Itemize
7068 Allow direct-mapped framebuffer
7071 \begin_layout Itemize
7072 SDL: Use SDL_ANYFORMAT if possible
7075 \begin_layout Itemize
7076 SDMP2SOX: 2s delay modes.
7079 \begin_layout Itemize
7083 \begin_layout Itemize
7084 Use sed -E, not sed -r.
7085 Fixes building on Mac OS X.
7088 \begin_layout Itemize
7089 Wxwidgets: Save jukebox on exit
7092 \begin_layout Itemize
7093 Fix RTC if using load-movie on savestate.
7096 \begin_layout Itemize
7097 Fix crash related to full console mode.
7100 \begin_layout Subsection
7104 \begin_layout Itemize
7105 Wxwidgets: Allow bringing application to foreground on Mac OS X.
7108 \begin_layout Itemize
7109 Wxwidgets: Allow compiling on Mac OS X.
7112 \begin_layout Itemize
7113 Use movie compare instead of movie hashing (faster save/load).
7116 \begin_layout Itemize
7120 \begin_layout Subsection
7124 \begin_layout Itemize
7125 sdmp2sox: Pad soundtrack if using -l or -L.
7128 \begin_layout Itemize
7129 sdmp2sox: Fix NTSC overscan.
7132 \begin_layout Itemize
7133 sdmp2sox: Add AR correction mode.
7136 \begin_layout Itemize
7137 call lua_close() when exiting.
7140 \begin_layout Itemize
7141 Fix zip_writer bug causing warnings from info-zip and error from advzip.
7144 \begin_layout Subsection
7148 \begin_layout Itemize
7149 Fix IPS patching code (use bsnes core IPS patcher).
7152 \begin_layout Itemize
7153 Implement BPS patching (using bsnes core IPS patcher).
7156 \begin_layout Itemize
7157 Add feature to load headered ROMs.
7160 \begin_layout Subsection
7164 \begin_layout Itemize
7165 Show command names when showing keybindings
7168 \begin_layout Subsection
7172 \begin_layout Itemize
7173 Fix pause-on-end to be actually controllable
7176 \begin_layout Itemize
7177 SDL: Poll all events in queue, not just first one (fixes slowness in command
7181 \begin_layout Itemize
7182 Wxwidgets: Fix ROM loading.
7185 \begin_layout Subsection
7189 \begin_layout Itemize
7190 Lua: Add gui.textH, gui.textV, gui.textHV
7193 \begin_layout Itemize
7194 Fix text colors on SDL on Mac OS X
7197 \begin_layout Itemize
7198 Mode 'F' for finished in readonly mode.
7201 \begin_layout Itemize
7205 \begin_layout Itemize
7206 Reliably pause after skip poll
7209 \begin_layout Itemize
7210 Split UI and core into their own threads
7213 \begin_layout Subsection
7217 \begin_layout Itemize
7218 Remove leftover dummy SRAM slot
7221 \begin_layout Itemize
7222 Fix controller numbers.
7225 \begin_layout Subsection
7229 \begin_layout Itemize
7230 Fix lsnes-dumpavi after interface change.
7233 \begin_layout Itemize
7234 Also give BSNES patches for v085.
7237 \begin_layout Itemize
7238 Pack movie data in memory.
7241 \begin_layout Subsection
7245 \begin_layout Itemize
7246 Fix framecount/length given when loading movies.
7249 \begin_layout Itemize
7250 Controller command memory leak fixes.
7253 \begin_layout Itemize
7254 Don't leak palette if freeing screen object.
7257 \begin_layout Subsection
7261 \begin_layout Itemize
7265 \begin_layout Itemize
7266 Wxwidgets: Allow controlling dumper from the menu.
7269 \begin_layout Subsection
7273 \begin_layout Itemize
7274 Rewrite parts of manual
7277 \begin_layout Itemize
7278 Lua: Make it work with Lua 5.2.
7281 \begin_layout Subsection
7285 \begin_layout Itemize
7286 Win32: Fix compile errors.
7289 \begin_layout Subsection
7293 \begin_layout Itemize
7294 Refactor controller input code.
7297 \begin_layout Itemize
7298 Fix crash when using command line on SDL / Mac OS X.
7301 \begin_layout Subsection
7305 \begin_layout Itemize
7306 Delete core/coroutine (obsolete)
7309 \begin_layout Itemize
7310 Lag input display by one frame.
7313 \begin_layout Itemize
7314 Rewind movie to beginning function.
7317 \begin_layout Itemize
7318 Fix wrong frame number reported to Lua when repainting after loadstate
7321 \begin_layout Itemize
7322 Support UI editing of jukebox
7325 \begin_layout Itemize
7326 Wxwidgets: Save settings on exit.
7329 \begin_layout Itemize
7330 Support ${project} for filenames
7333 \begin_layout Itemize
7334 SDL: Fix command history
7337 \begin_layout Subsection
7341 \begin_layout Itemize
7342 Fix some order-of-global-ctor bugs.
7345 \begin_layout Subsection
7349 \begin_layout Itemize
7350 Fix crashes when quitting on Win32.
7353 \begin_layout Subsection
7357 \begin_layout Itemize
7358 EVDEV: Queue keypresses from joystick, don't send directly
7361 \begin_layout Itemize
7362 Wxwidgets: Load-Preserve that actually works.
7365 \begin_layout Subsection
7369 \begin_layout Itemize
7370 Wxwidgets: GUI for memory search.
7373 \begin_layout Itemize
7374 Warn about using synchronous queue in UI callback.
7377 \begin_layout Subsection
7381 \begin_layout Itemize
7382 Remember last saved file for each ROM
7385 \begin_layout Itemize
7386 Support MT dumping via boost.
7389 \begin_layout Itemize
7393 \begin_layout Itemize
7397 \begin_layout Itemize
7398 Make mouse be ordinary input instead of special-casing
7401 \begin_layout Itemize
7402 SDL: Don't screw up commands with NUL codepoints.
7405 \begin_layout Subsection
7409 \begin_layout Itemize
7410 Merge status panel and main window
7413 \begin_layout Itemize
7414 True movie slot support (the rest of it)
7417 \begin_layout Itemize
7418 SDL: Fix compilation error
7421 \begin_layout Itemize
7422 Elminate cross calls in dump menu code.
7425 \begin_layout Subsection
7429 \begin_layout Itemize
7430 Cancel pending saves command
7433 \begin_layout Itemize
7434 Wxwidgets: Code refactoring
7437 \begin_layout Itemize
7438 Wxwidgets: Fix system -> reset
7441 \begin_layout Itemize
7442 Wxwidgets: Read watch expressions in the right thread
7445 \begin_layout Subsection
7449 \begin_layout Itemize
7450 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
7454 \begin_layout Itemize
7455 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
7458 \begin_layout Itemize
7459 Don't append trailing '-' to prefix when saving movie.
7462 \begin_layout Itemize
7463 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
7466 \begin_layout Subsection
7470 \begin_layout Itemize
7471 Document memory watch syntax.
7474 \begin_layout Subsection
7478 \begin_layout Itemize
7479 Fix unattended dumping (lsnes-dumpavi)
7482 \begin_layout Itemize
7486 \begin_layout Itemize
7487 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
7490 \begin_layout Itemize
7491 Add option to control sample rate preturbation in AVI dumper
7494 \begin_layout Subsection
7498 \begin_layout Itemize
7499 Wxwidgets: Fix dumper submodes
7502 \begin_layout Itemize
7503 Set core controller types before loadstate
7506 \begin_layout Subsection
7510 \begin_layout Itemize
7511 Fix compiling with bsnes v086.
7514 \begin_layout Subsection
7518 \begin_layout Itemize
7519 Don't prompt before quitting
7522 \begin_layout Itemize
7523 Start unpaused, preserve pause/unpause over load.
7526 \begin_layout Itemize
7527 Try to autodetect if ROM is headered.
7530 \begin_layout Itemize
7531 Wxwidgets: Only bring up ROM patching screen if specifically requested.
7534 \begin_layout Itemize
7535 Allow configuring some hotkeys.
7538 \begin_layout Subsection
7542 \begin_layout Itemize
7543 Lots of code cleanups
7546 \begin_layout Itemize
7547 Fix JMD compression (JMD dumping was broken)
7550 \begin_layout Itemize
7551 Don't crash if Lua C function throws an exception.
7554 \begin_layout Itemize
7555 Support bitmap drawing in Lua.
7558 \begin_layout Itemize
7559 Fix bsnes v085/v086 patches.
7562 \begin_layout Itemize
7563 Improve stability on win32.
7566 \begin_layout Subsection
7570 \begin_layout Itemize
7571 Don't corrupt movie if movie length is integer multiple of frames per page.
7574 \begin_layout Subsection
7578 \begin_layout Itemize
7579 New Lua hooks: on_rewind, on_frame_emulated, on_idle, on_timer
7582 \begin_layout Itemize
7583 New Lua functions: emulator_ready(), utime(), set_idle_timeout(), set_timer_time
7584 out(), bit.extract(), bit.value(), input.geta(), input.seta() and input.controllertyp
7588 \begin_layout Itemize
7589 Wxwidgets: Fix internal focus lost (hotkeys stop working)
7592 \begin_layout Itemize
7593 Wxwidgets: Fix broken modifiers
7596 \begin_layout Itemize
7597 on_paint has parameter now.
7600 \begin_layout Itemize
7601 Optional initital fill for bitmaps
7604 \begin_layout Itemize
7605 Fix palette changing.
7608 \begin_layout Itemize
7609 Optimize rendering a bit.
7612 \begin_layout Itemize
7616 \begin_layout Subsection
7620 \begin_layout Itemize
7621 Movieinfo: Fix display of port #2 type.
7624 \begin_layout Itemize
7625 Call on_input() after loadstate.
7628 \begin_layout Subsection
7632 \begin_layout Itemize
7633 Fix writing port2 data to movie.
7636 \begin_layout Itemize
7637 Fix SRAM handling with Bsnes v087.
7640 \begin_layout Subsection
7644 \begin_layout Itemize
7645 Library loading support
7648 \begin_layout Itemize
7649 Built-in TSCC encoder
7652 \begin_layout Itemize
7653 Hi-color (256T colors) dumping.
7656 \begin_layout Itemize
7657 Dump over TCP/IP(v6)
7660 \begin_layout Itemize
7661 Hidable status panel
7664 \begin_layout Itemize
7668 \begin_layout Itemize
7669 Adjustable sound volume
7672 \begin_layout Itemize
7676 \begin_layout Itemize
7677 Allow DnD into filename boxes
7680 \begin_layout Itemize
7684 \begin_layout Itemize
7685 Portaudio: Fix speaker popping at start
7688 \begin_layout Itemize
7692 \begin_layout Itemize
7693 Speed adjustment menu
7696 \begin_layout Itemize
7697 Win32 joystick support
7700 \begin_layout Itemize
7701 Lua: gui.rainbow and gui.box
7704 \begin_layout Itemize
7705 Split key lists into classes (the key list was large!)
7708 \begin_layout Itemize
7709 More save slots support
7712 \begin_layout Itemize
7713 Wxwidgets (wxJoystick) joystick support
7716 \begin_layout Subsection
7720 \begin_layout Itemize
7721 Lots of internal joystick refactoring
7724 \begin_layout Itemize
7725 Evdev: Add mapping for BTN_TOOL_QUINTTAP
7728 \begin_layout Itemize
7729 Wxwidgets: Settings mode (open settings without ROM)
7732 \begin_layout Itemize
7733 Wxwidgets: Prompt key to use option
7736 \begin_layout Itemize
7737 Wxwidgets: Fix crash if key goes away underneath
7740 \begin_layout Itemize
7741 Wxwidgets: Fix mouse position in presence of scaling
7744 \begin_layout Itemize
7745 AVI dumper: Mode 4 (high-quality resampling to common rate using SRC)
7748 \begin_layout Itemize
7749 Wxwidgets: Redesign hotkeys dialog to avoid tree control (tree control doesn't
7750 seem to work well on WinXP)
7753 \begin_layout Itemize
7754 Start paused option.
7757 \begin_layout Subsection
7761 \begin_layout Itemize
7765 \begin_layout Itemize
7766 lsnes-dumpavi: Start Lua before starting dumper
7769 \begin_layout Itemize
7770 AVI: Fix secondary audio in mode 4.
7773 \begin_layout Subsection
7777 \begin_layout Itemize
7778 AVI: Refactor ZMBV a bit.
7781 \begin_layout Itemize
7782 Fix error reading analog values from movie file
7785 \begin_layout Subsection
7789 \begin_layout Itemize
7790 Delayed reset support
7793 \begin_layout Itemize
7794 Lua: memory.hash_region
7797 \begin_layout Subsection
7801 \begin_layout Itemize
7802 Rework the build system
7805 \begin_layout Itemize
7806 Typing input support
7809 \begin_layout Itemize
7810 Fix building with bsnes v086 and v087.
7813 \begin_layout Itemize
7814 SDL: Save settings on exit
7817 \begin_layout Itemize
7818 SDL: Command to enter command line mode with given command.
7821 \begin_layout Itemize
7822 SDL: More advanced command editing.
7825 \begin_layout Subsection
7829 \begin_layout Itemize
7831 \begin_inset Quotes eld
7834 arrow keys and enter don't work
7835 \begin_inset Quotes erd
7841 \begin_layout Itemize
7845 \begin_layout Itemize
7846 Show mode changes due to rewinding.
7849 \begin_layout Itemize
7850 Unsafe rewind support
7853 \begin_layout Itemize
7854 Fix directory transversal.
7857 \begin_layout Subsection
7861 \begin_layout Itemize
7862 AVI: Sound mode 5 (48kHz high-quality)
7865 \begin_layout Itemize
7869 \begin_layout Itemize
7870 Map the SNES bus into address space
7873 \begin_layout Itemize
7874 Fix loading memory watch files with CRLF line endings
7877 \begin_layout Subsection
7881 \begin_layout Itemize
7882 Map bsnes internal state into memory space
7885 \begin_layout Itemize
7887 \begin_inset Quotes eld
7890 click on panel wedges the emulator
7891 \begin_inset Quotes erd
7897 \begin_layout Itemize
7898 DnD movies/saves on the main window.
7901 \begin_layout Subsection
7905 \begin_layout Itemize
7906 Split core bindings into own module.
7909 \begin_layout Itemize
7910 Remember invalid settings
7913 \begin_layout Itemize
7914 Support for modified Gambatte core for GB/GBC emulation.
7917 \begin_layout Itemize
7918 Reload/swap ROM function
7921 \begin_layout Subsection
7925 \begin_layout Itemize
7926 Fix step poll function
7929 \begin_layout Subsection
7933 \begin_layout Itemize
7934 Non-insane savestate anchoring
7937 \begin_layout Subsection
7941 \begin_layout Itemize
7942 More Memory search methods
7945 \begin_layout Itemize
7946 Preserve movie if loading in RO mode.
7949 \begin_layout Itemize
7950 Fix a obscure case in timeline check
7953 \begin_layout Itemize
7954 Revamp the entiere ROM loading code
7957 \begin_layout Itemize
7961 \begin_layout Itemize
7965 \begin_layout Itemize
7966 Standalone hotkey config dialog
7969 \begin_layout Itemize
7970 Show bindings in more user-friendly format
7973 \begin_layout Subsection
7977 \begin_layout Itemize
7981 \begin_layout Itemize
7982 Fix uninitialized variables in bsnes v085
7985 \begin_layout Subsection
7989 \begin_layout Itemize
7990 Merge gambatte core into mainline (from its own branch)
7993 \begin_layout Itemize
7994 Wxwidgets: Show expected dump file formats
7997 \begin_layout Itemize
7998 Memory watch: Data typing
8001 \begin_layout Itemize
8002 lsnes internal MMIO area.
8005 \begin_layout Itemize
8006 Wxwidgets: New memory watch editor
8009 \begin_layout Itemize
8010 Hexadecimal memory watches
8013 \begin_layout Itemize
8014 Wxwidgets: Monospaced panel
8017 \begin_layout Itemize
8018 Wxwidgets: Split memory watches in panel
8021 \begin_layout Itemize
8022 Wxwidgets: Disable VMAs in memory search
8025 \begin_layout Itemize
8026 lsnes-dumpavi: Fix speed bug
8029 \begin_layout Itemize
8030 Movie subtitle support
8033 \begin_layout Itemize
8034 Fix rerecord count reporting
8037 \begin_layout Itemize
8038 Don't trash movie when loading in readonly mode.
8041 \begin_layout Subsection
8045 \begin_layout Itemize
8046 Wxwidgets: Fix crashes on closing settings dialogs on Mac OS X.
8049 \begin_layout Itemize
8050 Fix build on Mac OS X.
8053 \begin_layout Itemize
8057 \begin_layout Itemize
8058 Wxwidgets: Hidable messages window
8061 \begin_layout Itemize
8065 \begin_layout Itemize
8066 Bsnes: Support inconsistent saves
8069 \begin_layout Itemize
8070 Bsnes: Allow simulating saving every frame
8073 \begin_layout Itemize
8074 Fix desync if savestate is loaded in readonly mode in certain conditions.
8077 \begin_layout Itemize
8078 Wxwidgets: Fix save dialogs on Mac OS X.
8081 \begin_layout Itemize
8082 Wxwidgets: Fix insane status width on Win32.
8085 \begin_layout Itemize
8086 Wxwidgets: Fix autohold processing to be faster.
8089 \begin_layout Itemize
8090 Wxwidgets: Allow loading ROMs and movies from commandline.
8093 \begin_layout Subsection
8097 \begin_layout Itemize
8098 Be a bit smarter with --load
8101 \begin_layout Itemize
8102 Rewrote higher-level parts of audio system
8105 \begin_layout Itemize
8106 Tool to build commentary tracks
8109 \begin_layout Itemize
8113 \begin_layout Itemize
8114 Gambatte: Add support for SVN358
8117 \begin_layout Itemize
8118 Use builtin font when rendering status panel.
8121 \begin_layout Itemize
8122 Option to detach memory watch to its own window.
8125 \begin_layout Itemize
8126 Recent ROMs/Movies menu
8129 \begin_layout Itemize
8133 \begin_layout Itemize
8134 Useful lag counter for SNES games that autopoll
8137 \begin_layout Itemize
8138 Fix buffer overflow in gambatte sound output
8141 \begin_layout Subsection
8145 \begin_layout Itemize
8146 Don't blow up on wxGTK if the window is hidden somehow
8149 \begin_layout Itemize
8150 Support simultaneous drop of ROM and movie.
8153 \begin_layout Itemize
8154 Gambatte: Don't save spurious SRAMs.
8157 \begin_layout Itemize
8158 Make SGB ROMs actually usable.
8161 \begin_layout Itemize
8162 Fix so that saved movies appear in recent movies.
8165 \begin_layout Itemize
8166 Don't open multiple commentary editors at once.
8169 \begin_layout Subsection
8173 \begin_layout Itemize
8174 Lua: memory.readregion/memory.writeregion
8177 \begin_layout Itemize
8178 Lua: memory.map{,s}{byte,word,dword,qword}
8181 \begin_layout Itemize
8182 Lua: memory.map_structure
8185 \begin_layout Itemize
8186 Lua: Fix bus_address for gambatte
8189 \begin_layout Itemize
8190 Fix features dependent of bsnes debugger
8193 \begin_layout Itemize
8194 Cleanup bsnes debugger logic
8197 \begin_layout Itemize
8198 Fix resets in presence of save every frame
8201 \begin_layout Subsection
8205 \begin_layout Itemize
8206 Lua: input.lcid_to_pcid
8209 \begin_layout Itemize
8210 Fix off-by-one bug with slot hashes
8213 \begin_layout Itemize
8214 Fix crashes on certain memory watch expressions
8217 \begin_layout Itemize
8218 Lua: memory.read_expr
8221 \begin_layout Itemize
8222 Lua: Fix memory.read_expr on nil argument
8225 \begin_layout Itemize
8226 Fix the code to compile on G++ 4.7
8229 \begin_layout Itemize
8230 Change button_id to be a function pointer field, not a virtual method
8233 \begin_layout Itemize
8234 Add bsnes patches to fix libsnes to compile on GCC 4.7
8237 \begin_layout Itemize
8238 Gambatte: Always use legacy lag counting
8241 \begin_layout Itemize
8242 Memory commands: Memory addresses are up to 16 hex digits, not up to 8
8245 \begin_layout Itemize
8246 Fix analog controllers
8249 \begin_layout Itemize
8253 \begin_layout Itemize
8254 Fix button symbols in input display
8257 \begin_layout Itemize
8258 Compensate for nuts bsnes superscope/justifier handling
8261 \begin_layout Itemize
8262 Lua: Fix bit.extract boolean handling
8265 \begin_layout Subsection
8269 \begin_layout Itemize
8270 Stop at movie end: Don't off-by-one
8273 \begin_layout Itemize
8274 Fix crash closing lsnes with voice playback active.
8277 \begin_layout Itemize
8278 Import/Export OggOpus for commentary tracks
8281 \begin_layout Itemize
8282 16-button controllers.
8285 \begin_layout Itemize
8286 Don't show nonexistent controllers in input display
8289 \begin_layout Itemize
8290 Set voice record/playback volume from UI
8293 \begin_layout Itemize
8294 Patches for gambatte SVN364.
8297 \begin_layout Itemize
8298 Load markup (if exists) even without gamepack file.
8301 \begin_layout Itemize
8302 Screen rotation & flipping
8305 \begin_layout Itemize
8306 Lua: Some new bit functions
8309 \begin_layout Itemize
8310 Auto-refresh voice streams on change.
8313 \begin_layout Itemize
8314 Auto-refresh subtitles on change & new subtitle editor.
8317 \begin_layout Itemize
8318 Fix music volume adjustment.
8321 \begin_layout Subsection
8325 \begin_layout Itemize
8326 Wxwidgets: Fix memory watch rendering.
8329 \begin_layout Itemize
8330 Wxwidgets: Allow setting voice stream gain.
8333 \begin_layout Itemize
8334 Wxwidgets: VU meters and volume adjustment.
8337 \begin_layout Itemize
8338 Lua: Custom fonts support.
8341 \begin_layout Itemize
8342 Lua: Fix methods stopping working when resetting Lua.
8345 \begin_layout Itemize
8346 Fix loading standard-format movies in preserve (readonly) mode.
8349 \begin_layout Subsection
8353 \begin_layout Itemize
8354 Primitive movie editor
8357 \begin_layout Itemize
8358 Fix VU meter with no sound device.
8361 \begin_layout Itemize
8362 Fix various undefined return values.
8365 \begin_layout Itemize
8366 Show rates in VU meter window.
8369 \begin_layout Subsection
8373 \begin_layout Itemize
8374 Commentary tool: Set nominal bit rate and limit max bit rate.
8377 \begin_layout Itemize
8378 Lua: Unconditionally reload host memory on loadstate
8381 \begin_layout Itemize
8382 Lua: Query bindings, manipulate aliases, create inverse bindings
8385 \begin_layout Itemize
8386 Lua: Fix crashes with resetting VM while some types of paint requests are
8390 \begin_layout Itemize
8391 Lua: gui.text: Clip the text properly instead of corrupting memory in some
8395 \begin_layout Itemize
8396 Save screenshot header reliably
8399 \begin_layout Itemize
8400 Lua: Backport input.get2 and input.set2
8403 \begin_layout Itemize
8404 Lua: New controller info functions.
8407 \begin_layout Itemize
8408 Movie editor: Fix reset delay counters to be the right way around.
8411 \begin_layout Itemize
8415 \begin_layout Itemize
8416 Lua: on_button and input.veto_button.
8419 \begin_layout Subsection
8423 \begin_layout Itemize
8424 Fix saving PNG screenshots on Win32.
8427 \begin_layout Itemize
8428 Movie editor: Sweep axis.
8431 \begin_layout Itemize
8432 Load selected slot in ro/rw/preserve/movie mode.
8435 \begin_layout Itemize
8436 input.joyset: Preserve and invert user input.
8439 \begin_layout Itemize
8440 Allow immediate saving at point of save (transfer saves).
8443 \begin_layout Itemize
8444 Wxwidgets: Filter filenames in dialogs, autoappend extensions.
8447 \begin_layout Itemize
8448 data/verysmall.font: Add missing glyph 70 (
8449 \begin_inset Quotes eld
8453 \begin_inset Quotes erd
8459 \begin_layout Itemize
8460 Lua: Allow painting custom fonts with halo.
8463 \begin_layout Itemize
8464 Fix memory value search to work on byte types.
8467 \begin_layout Subsection
8471 \begin_layout Itemize
8472 Fix status panel (and movie editor) flicker
8475 \begin_layout Itemize
8476 Show effects of Lua in input display
8479 \begin_layout Itemize
8480 Offer lsmv.backup as file filter too for load lsmv
8483 \begin_layout Itemize
8484 Allow slowing down subframe advance
8487 \begin_layout Itemize
8488 Display current save slot information
8491 \begin_layout Itemize
8495 \begin_layout Itemize
8496 Fix hotkeys stopping working after X-ing settings dialog
8499 \begin_layout Itemize
8500 Movie editor: Fix bug if extending finished movie
8503 \begin_layout Itemize
8504 Cap current_frame_first_subframe to movie size when recounting movie
8507 \begin_layout Itemize
8508 Movie editor: Interpret ctrl+click as right click