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
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).
151 \begin_layout Itemize
152 Version 5.1.X or 5.2X.
156 \begin_layout Enumerate
157 G++ 4.6 (bsnes doesn't seem to like 4.7, status for gambatte is unknown).
160 \begin_layout Section
164 \begin_layout Itemize
165 Copy bsnes sources (the bsnes subdirectory) to subdirectory 'bsnes' (for
169 \begin_layout Itemize
170 Copy gambatte sources to subdirectory 'gambatte' (for gambatte core).
173 \begin_layout Itemize
174 Patch the bsnes sources with included patches (directory 'bsnes-patches/<version
178 \begin_layout Itemize
179 Patch the gambatte sources with included patches (directory 'gambatte-patches/<v
180 ersion>', gambatte core)
183 \begin_layout Itemize
184 Edit options.build (or copy of that file)
187 \begin_layout Itemize
188 Run make (passing 'OPTIONS=<filename>' if using something else than options.build
192 \begin_layout Section
196 \begin_layout Subsection
200 \begin_layout Subsubsection
201 --rom=<file> (lsnes/SDL, lsnes/wxwidgets, lsnes-avidump)
204 \begin_layout Standard
208 \begin_layout Subsection
212 \begin_layout Subsubsection
216 \begin_layout Standard
220 \begin_layout Subsubsection
221 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
224 \begin_layout Standard
225 Load <filename> as movie or savestate file.
226 All other session options are ignored.
229 \begin_layout Subsubsection
230 --port1=<device> (lsnes/SDL, bsnes core only)
233 \begin_layout Standard
238 \begin_layout Itemize
239 none: No device connected
242 \begin_layout Itemize
243 gamepad: One gamepad (the default)
246 \begin_layout Itemize
247 multitap: Four gamepads (warning: makes most games refuse to start)
250 \begin_layout Itemize
254 \begin_layout Subsubsection
255 --port2=<type> (lsnes/SDL, bsnes core only)
258 \begin_layout Standard
263 \begin_layout Itemize
264 none: No device connected (the default)
267 \begin_layout Itemize
271 \begin_layout Itemize
272 multitap: Four gamepads.
275 \begin_layout Itemize
279 \begin_layout Itemize
280 superscope: Super Scope
283 \begin_layout Itemize
284 justifier: One justifier
287 \begin_layout Itemize
288 justifiers: Two justifiers
291 \begin_layout Subsubsection
292 --gamename=<name> (lsnes/SDL)
295 \begin_layout Standard
296 Set the name of game to <name>.
300 \begin_layout Subsubsection
301 --author=<name> (lsnes/SDL)
304 \begin_layout Standard
305 Add author with full name of <name> (no nickname).
308 \begin_layout Subsubsection
309 --author=|<name> (lsnes/SDL)
312 \begin_layout Standard
313 Add author with nickname of <name> (no full name).
316 \begin_layout Subsubsection
317 --author=<fullname>|<nickname> (lsnes/SDL)
320 \begin_layout Standard
321 Add author with full name of <fullname> and nickname of <nickname>.
324 \begin_layout Subsubsection
325 --rtc-second=<value> (lsnes/SDL)
328 \begin_layout Standard
329 Set RTC second (0 is 1st January 1970 00:00:00Z).
330 Default is 1,000,000,000.
333 \begin_layout Subsubsection
334 --rtc-subsecond=<value> (lsnes/SDL)
337 \begin_layout Standard
344 \begin_layout Subsubsection
345 --anchor-savestate=<file> (lsnes/SDL)
348 \begin_layout Standard
349 Set the anchor savestate file.
352 \begin_layout Subsubsection
353 --load=<file> (lsnes/wxwidgets)
356 \begin_layout Standard
357 After loading the ROM, load <file> as savestate/movie.
360 \begin_layout Subsection
365 \begin_layout Subsubsection
366 --run=<file> (lsnes/SDL)
369 \begin_layout Standard
370 After running main RC file, run this file.
371 If multiple are specified, these execute in order specified.
374 \begin_layout Subsection
375 dump options (lsnes-dumpavi only)
378 \begin_layout Subsubsection
382 \begin_layout Standard
383 Set the dumper to use (required).
384 Use 'list' for listing of known dumpers.
387 \begin_layout Subsubsection
391 \begin_layout Standard
392 Set the mode to use (required for dumpers with multiple modes, forbidden
394 Use 'list' for known modes.
397 \begin_layout Subsubsection
401 \begin_layout Standard
404 \begin_inset Quotes eld
408 \begin_inset Quotes erd
414 \begin_layout Subsubsection
415 --option=<name>=<value>
418 \begin_layout Standard
419 Set option <name> to value <value>.
422 \begin_layout Subsubsection
426 \begin_layout Standard
427 Set number of frames to dump.
431 \begin_layout Subsubsection
435 \begin_layout Standard
436 Run specified lua script (lsnes-dumpavi does not have initialization files).
439 \begin_layout Subsubsection
440 --load-library=<library>
443 \begin_layout Standard
444 Load the specified shared object / dynamic library / dynamic link library.
447 \begin_layout Section
448 Startup file lsnes.rc
451 \begin_layout Standard
452 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
453 This file is located in:
456 \begin_layout Itemize
461 lsnes.rc (if %APPDATA% exists)
464 \begin_layout Itemize
465 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
468 \begin_layout Itemize
469 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
472 \begin_layout Itemize
473 All: ./lsnes.rc (fallback default).
476 \begin_layout Standard
477 If leading directories do not exist, attempt to create them is made.
480 \begin_layout Section
484 \begin_layout Itemize
485 Commands beginning with '*' invoke the corresponding command without alias
489 \begin_layout Itemize
490 If command starts with '+' (after possible '*'), the command is executed
491 as-is when button is pressed, and when button is released, it is executed
492 with '+' replaced by '-'.
495 \begin_layout Itemize
496 Commands without '+' execute only on negative edge (release).
499 \begin_layout Subsection
503 \begin_layout Standard
504 Settings control various aspects of emulator behaviour.
507 \begin_layout Subsubsection
508 set-setting <setting> <value>
511 \begin_layout Standard
512 Sets setting <setting> to value <value> (may be empty).
515 \begin_layout Subsubsection
516 unset-setting <setting>
519 \begin_layout Standard
520 Try to unset setting <setting> (not all settings can be unset).
523 \begin_layout Subsubsection
524 get-setting <setting>
527 \begin_layout Standard
528 Read value of setting <setting>
531 \begin_layout Subsubsection
535 \begin_layout Standard
536 Print names and values of all settings.
539 \begin_layout Subsection
543 \begin_layout Standard
544 Keybindings bind commands or aliases to keys (or pseudo-keys).
548 \begin_layout Standard
552 \begin_layout Itemize
553 Do not bind edge active (+/-) commands to keys with modifiers, that won't
557 \begin_layout Itemize
558 Names of keys and modifiers are platform-dependent.
561 \begin_layout Itemize
562 Be careful before binding pseudo-keys (such as joystick axes, buttons or
563 hats) with modifiers.
564 That may or may not work right.
567 \begin_layout Subsubsection
568 bind-key [<mod>/<modmask>] <key> <command>
571 \begin_layout Standard
572 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
573 ed list) are set as <mod> (comma-seperated list).
576 \begin_layout Standard
577 The names of keys and modifiers are platform-dependent.
580 \begin_layout Subsubsection
581 unbind-key [<mod>/<modmask>] <key>
584 \begin_layout Standard
585 Unbind command from <key> (with specified <mod> and <modmask>).
588 \begin_layout Subsubsection
589 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
590 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
591 [plus=<val>] [tolerance=<val>]
594 \begin_layout Standard
595 Set axis parameters for axis <axis>.
598 \begin_layout Itemize
599 disabled: Disable axis
602 \begin_layout Itemize
606 \begin_layout Itemize
607 axis-inverse: Inverse axis
610 \begin_layout Itemize
611 pressure0-: Pressure sensitive.
612 Released at 0, pressed at -.
615 \begin_layout Itemize
616 pressure0+: Pressure sensitive.
617 Released at 0, pressed at +.
620 \begin_layout Itemize
621 pressure-0: Pressure sensitive.
622 Released at -, pressed at 0.
625 \begin_layout Itemize
626 pressure-+: Pressure sensitive.
627 Released at -, pressed at +.
630 \begin_layout Itemize
631 pressure+0: Pressure sensitive.
632 Released at +, pressed at 0.
635 \begin_layout Itemize
636 pressure+-: Pressure sensitive.
637 Released at +, pressed at -.
640 \begin_layout Itemize
641 minus=<val>: Calibration at extreme minus position (-32768-32767)
644 \begin_layout Itemize
645 zero=<val>: Calibration at neutral position (-32768-32767)
648 \begin_layout Itemize
649 plus=<val>: Calibration at extreme plus position (-32768-32767)
652 \begin_layout Itemize
653 tolerance=<value>: Center band tolerance (0<x<1).
654 The smaller the value, the more sensitive the control is.
657 \begin_layout Subsubsection
661 \begin_layout Standard
662 Print all key bindings in effect.
665 \begin_layout Subsection
669 \begin_layout Standard
670 Aliases bind command to sequence of commands.
671 After alias has been defined, it replaces the command it shadows.
674 \begin_layout Standard
678 \begin_layout Itemize
679 You can't alias command to itself.
682 \begin_layout Itemize
683 Aliases starting with +/- are edge active just like ordinary commands starting
687 \begin_layout Itemize
688 One command can be aliased to multiple commands.
691 \begin_layout Subsubsection
692 alias-command <command> <expansion>
695 \begin_layout Standard
696 Append <expansion> to alias <command>.
697 If alias does not already exist, it is created.
700 \begin_layout Subsubsection
701 unalias-command <command>
704 \begin_layout Standard
705 Clear alias expansion for <command>.
708 \begin_layout Subsubsection
712 \begin_layout Standard
713 Print all aliases and their expansions in effect.
716 \begin_layout Subsection
720 \begin_layout Standard
721 Run <script> as if commands were entered on the command line.
724 \begin_layout Subsection
728 \begin_layout Standard
729 Following commands control video dumping:
732 \begin_layout Subsubsection
733 start-dump <dumper> [<mode>] <prefix/filename>
736 \begin_layout Standard
737 Start dumping using dumper <dumper>.
738 If mode is present or not and if prefix or filename is present depends
739 on the dumper and dumper mode.
742 \begin_layout Standard
743 The following dumpers are available:
746 \begin_layout Itemize
747 INTERNAL-AVI-CSCD: Internal CSCD in .avi dumper.
751 \begin_layout Itemize
752 Mode: uncompressed/pcm: Uncompressed video, PCM audio.
756 \begin_layout Itemize
757 Mode: cscd/pcm: CSCD video, PCM audio.
762 \begin_layout Itemize
763 INTERNAL-JMD: Internal .jmd dumper.
767 \begin_layout Itemize
771 \begin_layout Itemize
776 \begin_layout Itemize
777 INTERNAL-RAW: Internal RAW dumper.
781 \begin_layout Itemize
785 \begin_layout Itemize
789 \begin_layout Itemize
790 Sound is big-endian signed 16-bit, usually at 32040.5Hz.
793 \begin_layout Itemize
794 Video is always upscaled to double resolution (512x448 / 512 x 478).
797 \begin_layout Itemize
798 Video framerate is usually 322445/6448 fps for PAL and 10738636/178683 fps
803 \begin_layout Itemize
804 INTERNAL-SDMP: Internal SDMP dumper.
808 \begin_layout Itemize
809 Mode 'ms': Multi-segment.
813 \begin_layout Itemize
814 Mode 'ss': Single-segment.
819 \begin_layout Subsubsection
823 \begin_layout Standard
824 End dumping using <dumper>
827 \begin_layout Subsubsection
828 show-dumpers [<dumper>]
831 \begin_layout Standard
832 Show the list of dumpers or list of modes for <dumper>
835 \begin_layout Subsection
839 \begin_layout Standard
840 <address> may be decimal or hexadecimal (prefixed with '0x').
841 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
845 \begin_layout Standard
846 The available element <sizes> are:
849 \begin_layout Itemize
853 \begin_layout Itemize
857 \begin_layout Itemize
861 \begin_layout Itemize
865 \begin_layout Standard
866 When reading RAM and ROM, multi-byte reads/writes are big-endian.
867 When dealing with DSP memory, multi-byte reads/writes are native-endian
868 (do not use operand sizes exceeding DSP bitness, except dword is OK for
872 \begin_layout Subsubsection
873 read-<size> <address>
876 \begin_layout Standard
877 Read the value of byte in <address>.
880 \begin_layout Subsubsection
881 read-s<size> <address>
884 \begin_layout Standard
885 Read the value of signed byte in <address>.
888 \begin_layout Subsubsection
889 write-<size> <address> <value>
892 \begin_layout Standard
893 Write <value> to byte in address <address>.
896 \begin_layout Subsubsection
900 \begin_layout Standard
901 Reset the memory search
904 \begin_layout Subsubsection
908 \begin_layout Standard
909 Print number of candidates remaining
912 \begin_layout Subsubsection
916 \begin_layout Standard
917 Print all candidates remaining
920 \begin_layout Subsubsection
921 search-memory <usflag><sizeflag><op>
924 \begin_layout Standard
925 Searches memory for addresses satisfying criteria.
928 \begin_layout Standard
932 \begin_layout Itemize
936 \begin_layout Itemize
940 \begin_layout Standard
944 \begin_layout Itemize
948 \begin_layout Itemize
952 \begin_layout Itemize
956 \begin_layout Itemize
960 \begin_layout Standard
964 \begin_layout Itemize
965 lt: < previous value.
968 \begin_layout Itemize
969 le: <= previous value.
972 \begin_layout Itemize
973 eq: = previous value.
976 \begin_layout Itemize
977 ne: != previous value.
980 \begin_layout Itemize
981 ge: >= previous value.
984 \begin_layout Itemize
985 gt: > previous value.
988 \begin_layout Subsubsection
989 search-memory <sizeflag> <value>
992 \begin_layout Standard
993 Searches for addresses that currently have value <value>.
994 <sizeflag> is as in previous command.
997 \begin_layout Subsection
1001 \begin_layout Standard
1002 These commands are not available in lsnesrc, but are available after ROM
1006 \begin_layout Subsubsection
1010 \begin_layout Standard
1011 Quits the emulator (asking for confirmation).
1012 If /y is given, no confirmation is asked.
1015 \begin_layout Subsubsection
1019 \begin_layout Standard
1020 Toggle paused/unpaused
1023 \begin_layout Subsubsection
1027 \begin_layout Standard
1029 If the button is still held after configurable timeout expires, game unpauses
1030 for the duration frame advance is held.
1033 \begin_layout Subsubsection
1037 \begin_layout Standard
1039 If the button is still held after configurable timeout expires, game unpauses
1040 for the duration frame advance is held.
1043 \begin_layout Subsubsection
1047 \begin_layout Standard
1048 Skip to first poll in frame after current.
1051 \begin_layout Subsubsection
1055 \begin_layout Standard
1056 Reset the SNES after this frame.
1059 \begin_layout Subsubsection
1063 \begin_layout Standard
1064 Load savestate <filename> in current mode.
1067 \begin_layout Subsubsection
1068 load-state <filename>
1071 \begin_layout Standard
1072 Load savestate <filename> in readwrite mode.
1075 \begin_layout Subsubsection
1076 load-readonly <filename>
1079 \begin_layout Standard
1080 Load savestate <filename> in readonly mode.
1083 \begin_layout Subsubsection
1084 load-preserve <filename>
1087 \begin_layout Standard
1088 Load savestate <filename> in readonly mode, preserving current events.
1091 \begin_layout Subsubsection
1092 load-movie <filename>
1095 \begin_layout Standard
1096 Load savestate <filename>, ignoring save part in readonly mode.
1099 \begin_layout Subsubsection
1100 save-state <filename>
1103 \begin_layout Standard
1104 Save system state to <filename> as soon as possible.
1107 \begin_layout Subsubsection
1108 save-movie <filename>
1111 \begin_layout Standard
1112 Save movie to <filename>.
1115 \begin_layout Subsubsection
1119 \begin_layout Standard
1120 Set read-write mode.
1123 \begin_layout Subsubsection
1127 \begin_layout Standard
1131 \begin_layout Subsubsection
1135 \begin_layout Standard
1136 Toggle between read-only and read-write modes.
1139 \begin_layout Subsubsection
1143 \begin_layout Standard
1144 Set name of the game to <name>
1147 \begin_layout Subsubsection
1151 \begin_layout Standard
1152 Print the name of the game.
1155 \begin_layout Subsubsection
1159 \begin_layout Standard
1160 Adds new author <author>.
1161 If <author> does not contain '|' it is full name.
1162 If it contains '|', '|' splits the full name and nickname.
1165 \begin_layout Subsubsection
1166 edit-author <num> <author>
1169 \begin_layout Standard
1170 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1174 \begin_layout Subsubsection
1178 \begin_layout Standard
1179 Remove author in slot <num>
1182 \begin_layout Subsubsection
1186 \begin_layout Standard
1190 \begin_layout Subsubsection
1191 test-1, test-2, test-3
1194 \begin_layout Standard
1195 Internal test commands.
1199 \begin_layout Subsubsection
1200 take-screenshot <filename>
1203 \begin_layout Standard
1204 Save screenshot to <filename>.
1207 \begin_layout Subsubsection
1208 +controller<num><button>
1211 \begin_layout Standard
1212 Press button <button> on controller <num> (1-8).
1213 The following button names are known:
1216 \begin_layout Itemize
1220 \begin_layout Itemize
1224 \begin_layout Itemize
1228 \begin_layout Itemize
1232 \begin_layout Itemize
1236 \begin_layout Itemize
1240 \begin_layout Itemize
1244 \begin_layout Itemize
1248 \begin_layout Itemize
1252 \begin_layout Itemize
1256 \begin_layout Itemize
1260 \begin_layout Itemize
1264 \begin_layout Itemize
1268 \begin_layout Itemize
1272 \begin_layout Itemize
1276 \begin_layout Itemize
1280 \begin_layout Subsubsection
1281 controllerh<num><button>
1284 \begin_layout Standard
1285 Hold/unhold button <button> on controller <num> (1-8).
1286 See +controller for button names.
1289 \begin_layout Subsubsection
1290 controllerf<num><button>
1293 \begin_layout Standard
1294 Hold/unhold button <button> on controller <num> (1-8) for the next frame.
1295 See +controller for button names.
1298 \begin_layout Standard
1299 Cauntion: Does not work properly if outside frame advance.
1302 \begin_layout Subsubsection
1303 autofire (<pattern>|-)...
1306 \begin_layout Standard
1307 Set autofire pattern.
1308 Each parameter is comma-separated list of button names (in form of 1start,
1309 1A, 2B, etc..) to hold on that frame.
1310 After reaching the end of pattern, the pattern restarts from the beginning.
1313 \begin_layout Subsubsection
1317 \begin_layout Standard
1321 \begin_layout Subsection
1325 \begin_layout Subsubsection
1326 cycle-jukebox-backward
1329 \begin_layout Standard
1330 Cycle save jukebox backwards.
1333 \begin_layout Subsubsection
1334 cycle-jukebox-forward
1337 \begin_layout Standard
1338 Cycle save jukebox forwards
1341 \begin_layout Subsubsection
1345 \begin_layout Standard
1346 Do load from jukebox (current mode).
1349 \begin_layout Subsubsection
1353 \begin_layout Standard
1354 Do state save to jukebox.
1357 \begin_layout Subsection
1361 \begin_layout Standard
1362 Only available if lua support is compiled in.
1365 \begin_layout Subsubsection
1366 evaluate-lua <luacode>
1369 \begin_layout Standard
1370 Run Lua code <luacode> using built-in Lua interpretter.
1373 \begin_layout Subsubsection
1377 \begin_layout Standard
1378 Run specified lua file using built-in Lua interpretter.
1381 \begin_layout Subsubsection
1385 \begin_layout Standard
1386 Clear the Lua VM state and restore to factory defaults.
1389 \begin_layout Subsection
1393 \begin_layout Subsubsection
1394 add-watch <name> <expression>
1397 \begin_layout Standard
1398 Adds new watch (or modifies old one).
1401 \begin_layout Subsubsection
1405 \begin_layout Standard
1409 \begin_layout Subsection
1413 \begin_layout Subsubsection
1414 enable-sound <on/off>
1417 \begin_layout Standard
1418 Enable/Disable sound.
1421 \begin_layout Subsubsection
1422 set-sound-device <device>
1425 \begin_layout Standard
1426 Set sound device to <device>
1429 \begin_layout Subsubsection
1433 \begin_layout Standard
1434 Show status of sound system.
1437 \begin_layout Subsubsection
1441 \begin_layout Standard
1442 Show all available devices.
1445 \begin_layout Subsubsection
1446 set-volume <multiplier>
1449 \begin_layout Standard
1450 Set the volume multiplier to <multiplier>.
1451 1 is normal volume, and higher numbers are louder.
1454 \begin_layout Subsubsection
1455 set-volume <multiplier>%
1458 \begin_layout Standard
1459 Set the volume multiplier to <multiplier> percent.
1460 100 is normal volume, and higher numbers are louder.
1463 \begin_layout Subsubsection
1464 set-volume <multiplier>dB
1467 \begin_layout Standard
1468 Set the volume multiplier to <multiplier> dB.
1469 0 is normal volume, and higher numbers are louder.
1470 The value may be negative.
1473 \begin_layout Subsection
1477 \begin_layout Subsubsection
1481 \begin_layout Standard
1482 Reloads the main ROM image from <file>.
1485 \begin_layout Subsubsection
1486 edit-subtitle <firstframe> <length> [<text>]
1489 \begin_layout Standard
1490 Edit or delete a subtitle.
1493 \begin_layout Subsubsection
1497 \begin_layout Standard
1501 \begin_layout Subsection
1505 \begin_layout Subsubsection
1509 \begin_layout Standard
1513 \begin_layout Subsubsection
1517 \begin_layout Standard
1521 \begin_layout Subsubsection
1525 \begin_layout Standard
1529 \begin_layout Subsubsection
1530 change-timebase <id> <newbase>
1533 \begin_layout Standard
1534 Change time base of <id> to <newbase>.
1535 The time base can be given as samples (integer) or second (postfix with
1539 \begin_layout Subsubsection
1540 import-stream-opus <timebase> <file>
1543 \begin_layout Standard
1544 Import opus stream from <file>, placing it at <timebase>.
1545 This operation is lossless.
1548 \begin_layout Subsubsection
1549 import-stream-pcm <timebase> <file>
1552 \begin_layout Standard
1553 Import PCM (.sox, 1ch@48kHz) stream from <file>, placing it at <timebase>.
1556 \begin_layout Subsubsection
1557 export-stream-opus <id> <file>
1560 \begin_layout Standard
1561 Export stream <id> as opus stream to <file>.
1562 This operation is lossless.
1565 \begin_layout Subsubsection
1566 export-stream-pcm <id> <file>
1569 \begin_layout Standard
1570 Export stream <id> as PCM (.sox) stream to <file>.
1574 \begin_layout Subsubsection
1575 export-superstream <file>
1578 \begin_layout Standard
1579 Export the entiere superstream as PCM (.sox) stream to <file>.
1582 \begin_layout Subsubsection
1583 load-collection <file>
1586 \begin_layout Standard
1587 Load collection (if there is existing collection, unload it) from <file>
1590 \begin_layout Subsubsection
1594 \begin_layout Standard
1598 \begin_layout Subsubsection
1602 \begin_layout Standard
1603 Tangent for recording voice for commentary track.
1604 While pressed, record a stream.
1607 \begin_layout Subsection
1608 SDL Platform commands
1611 \begin_layout Standard
1612 The following are valid on SDL platform.
1615 \begin_layout Subsubsection
1619 \begin_layout Standard
1620 Asks to press a key and then identifies that (pseudo-)key.
1623 \begin_layout Subsubsection
1627 \begin_layout Standard
1628 Toggle between windowed/fullscreen console.
1631 \begin_layout Subsubsection
1635 \begin_layout Standard
1636 Scroll messages window as far back as it goes.
1639 \begin_layout Subsubsection
1643 \begin_layout Standard
1644 Scroll messages window as far forward as it goes.
1647 \begin_layout Subsubsection
1651 \begin_layout Standard
1652 Scroll messages window back one screenful.
1655 \begin_layout Subsubsection
1659 \begin_layout Standard
1660 Scroll messages window forward one screenful.
1663 \begin_layout Subsubsection
1664 prompt-command <command>
1667 \begin_layout Standard
1668 Enter command prompt, with prompt prepopulated with specified command.
1671 \begin_layout Section
1675 \begin_layout Subsection
1679 \begin_layout Subsubsection
1683 \begin_layout Standard
1684 Set where bsnes looks for firmware files.
1686 \begin_inset Quotes eld
1690 \begin_inset Quotes erd
1696 \begin_layout Subsubsection
1700 \begin_layout Standard
1702 Numeric, range is 0.001 to
1703 \begin_inset Quotes eld
1707 \begin_inset Quotes erd
1711 Default is native framerate.
1714 \begin_layout Subsubsection
1718 \begin_layout Standard
1719 Set save compression level (integer 0-9).
1720 Default is 7 (0 is no compression).
1723 \begin_layout Subsubsection
1727 \begin_layout Standard
1728 Set the frame advance timeout in milliseconds.
1729 Numeric integer, range is 0-999999999.
1733 \begin_layout Subsubsection
1734 allow-inconsistent-saves (bsnes only)
1737 \begin_layout Standard
1738 If true, save without synchronization.
1739 Makes games seriously unstable.
1742 \begin_layout Subsubsection
1743 save-every-frame (bsnes only)
1746 \begin_layout Standard
1747 If true, simulate saving on each frame.
1748 Trades off emulation accuracy for sync stability.
1749 Also needed if the movie assumes saving on each frame for rewind.
1752 \begin_layout Subsection
1756 \begin_layout Subsubsection
1760 \begin_layout Standard
1761 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1765 \begin_layout Subsubsection
1769 \begin_layout Standard
1770 AVI dumper: Set the default left border thickness (unless lua overrides)
1776 \begin_layout Subsubsection
1780 \begin_layout Standard
1781 AVI dumper: Set the default right border thickness (unless lua overrides)
1787 \begin_layout Subsubsection
1791 \begin_layout Standard
1792 AVI dumper: Set the default top border thickness (unless lua overrides)
1798 \begin_layout Subsubsection
1802 \begin_layout Standard
1803 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1809 \begin_layout Subsubsection
1813 \begin_layout Standard
1814 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1819 \begin_layout Subsubsection
1823 \begin_layout Standard
1824 AVI dumper: Compression level (0-18).
1827 \begin_layout Itemize
1828 Compression levels 10 and above are not compatible with stock CSCD codec.
1831 \begin_layout Itemize
1832 Recomended level is 7.
1835 \begin_layout Subsubsection
1839 \begin_layout Standard
1840 AVI dumper: Set method of determining the sound rate.
1843 \begin_layout Itemize
1844 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
1845 128, 176.4 and 192 kHz.
1848 \begin_layout Itemize
1849 1: Round down to nearest integer.
1852 \begin_layout Itemize
1853 2: Round up to nearest ingeter.
1856 \begin_layout Subsection
1860 \begin_layout Subsubsection
1864 \begin_layout Standard
1865 JMD dumper: Compression level (0-9).
1868 \begin_layout Subsection
1869 SDL platform settings
1872 \begin_layout Subsubsection
1873 autorepeat-first-delay
1876 \begin_layout Standard
1877 Sets the delay for first character in typematic autorepeat.
1880 \begin_layout Subsubsection
1881 autorepeat-subsequent-delay
1884 \begin_layout Standard
1885 Sets the delay for subsequent characters in typematic autorepeat.
1888 \begin_layout Section
1892 \begin_layout Subsection
1893 Core (in main table)
1896 \begin_layout Subsubsection
1900 \begin_layout Standard
1901 Print line to message console.
1904 \begin_layout Subsubsection
1905 exec(string command)
1908 \begin_layout Standard
1909 Run command as it was entered on the command line
1912 \begin_layout Subsubsection
1916 \begin_layout Standard
1918 First is time since some epoch in seconds, the second is microseconds mod
1919 10^6 since that epoch.
1922 \begin_layout Subsubsection
1926 \begin_layout Standard
1927 Returns true if emulator has finished booting, false if not (on_startup()
1928 will be issued later).
1931 \begin_layout Subsubsection
1932 set_idle_timeout(number timeout)
1935 \begin_layout Standard
1936 Set number of microseconds to block idle for.
1937 After this timeout has expired, on_idle() will be called once.
1940 \begin_layout Subsubsection
1941 set_timer_timeout(number timeout)
1944 \begin_layout Standard
1945 Set number of microseconds to block timer for.
1946 After this timeout has expired, on_timer() will be called once.
1949 \begin_layout Subsubsection
1950 bus_address(number snesaddr)
1953 \begin_layout Standard
1954 Returns virtual address corresponding to specified address on SNES bus.
1957 \begin_layout Subsubsection
1958 loopwrapper(function fun, ...)
1961 \begin_layout Standard
1962 Calls function fun with function and specified arguments.
1963 The function passed suspends execution until the function returned is called.
1964 Handy for linear flow control among multiple invocations of a hook.
1968 \begin_layout LyX-Code
1969 on_paint = loopwrapper(function(wait)
1973 \begin_layout LyX-Code
1978 \begin_layout LyX-Code
1980 \begin_inset Quotes eld
1984 \begin_inset Quotes erd
1990 \begin_layout LyX-Code
1995 \begin_layout LyX-Code
2000 \begin_layout LyX-Code
2004 \begin_layout Subsection
2008 \begin_layout Standard
2009 Bitwise logical functions and related.
2012 \begin_layout Subsubsection
2013 bit.none(number...) / bit.bnot(number...)
2016 \begin_layout Standard
2017 48-bit bitwise NOT / NONE function (set bits that are set in none of the
2021 \begin_layout Subsubsection
2022 bit.any(number...) / bit.bor(number...)
2025 \begin_layout Standard
2026 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
2029 \begin_layout Subsubsection
2030 bit.all(number...) / bit.band(number...)
2033 \begin_layout Standard
2034 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
2038 \begin_layout Subsubsection
2039 bit.parity(number...) / bit.bxor(number...)
2042 \begin_layout Standard
2043 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
2047 \begin_layout Subsubsection
2048 bit.lrotate(number base[, number amount[, number bits]])
2051 \begin_layout Standard
2052 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
2055 \begin_layout Subsubsection
2056 bit.rrotate(number base[, number amount[, number bits]])
2059 \begin_layout Standard
2060 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
2064 \begin_layout Subsubsection
2065 bit.lshift(number base[, number amount[, number bits]])
2068 \begin_layout Standard
2069 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
2070 The new bits are filled with zeroes.
2073 \begin_layout Subsubsection
2074 bit.lrshift(number base[, number amount[, number bits]])
2077 \begin_layout Standard
2078 Shift bits-bit (max 48, default 48) number logically right by amount (default
2080 The new bits are filled with zeroes.
2083 \begin_layout Subsubsection
2084 bit.arshift(number base[, number amount[, number bits]])
2087 \begin_layout Standard
2088 Shift bits-bit (max 48, default 48) number arithmetically right by amount
2090 The new bits are shifted in with copy of the high bit.
2093 \begin_layout Subsubsection
2094 bit.extract(number base[, number bit0[, number bit1,...]])
2097 \begin_layout Standard
2098 Returns number that has bit0-th bit as bit 0, bit1-th bit as 1 and so on.
2101 \begin_layout Standard
2105 \begin_layout Itemize
2106 Bit numbers up to 51 should work reliably (then things start falling apart
2107 due to double precision issues).
2110 \begin_layout Itemize
2111 There are two special bit positions, true and false, standing for always
2112 set bit and always clear bit.
2115 \begin_layout Subsubsection
2116 bit.value([number bit1[, number bit2,...]])
2119 \begin_layout Standard
2120 Returns bitwise OR of 1 left shifted by bit1 places, 1 left shifted by bit2
2122 As special value, nil argument is no-op.
2125 \begin_layout Subsection
2129 \begin_layout Standard
2130 Most of these functions can only be called in on_paint and on_video callbacks.
2131 Exceptions are noted.
2134 \begin_layout Standard
2136 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
2137 16-23 are the red component, bits 24-31 are alpha component (0 is fully
2138 opaque, 255 is almost transparent).
2139 -1 is the fully transparent color.
2140 Alpha values greater than 127 do work.
2143 \begin_layout Standard
2144 Origin of coordinates is at top left corner of game display area.
2145 Left and top gaps correspond to negative coordinates.
2148 \begin_layout Subsubsection
2152 \begin_layout Standard
2153 Returns 2-tuple (hresolution, vresolution).
2156 \begin_layout Subsubsection
2157 gui.<class>_gap(number gap)
2160 \begin_layout Standard
2161 Set the <class> (left, right, top, bottom) gap to specified value (max gap
2165 \begin_layout Subsubsection
2166 gui.text(number x, number y, string text[, number fgc[, number bgc]])
2169 \begin_layout Standard
2170 Draw specified text on the GUI (each character cell is 8 or 16 wide and
2175 \begin_layout Itemize
2176 x: X-coordinate to start the drawing from (and x-coordinate at begining
2180 \begin_layout Itemize
2181 y: Y-coordinate to start the drawing from.
2184 \begin_layout Itemize
2185 text: The text to draw.
2188 \begin_layout Itemize
2189 fgc: Text color (default is 0xFFFFFF (white))
2192 \begin_layout Itemize
2193 bgc: Background color (default is -1 (transparent))
2196 \begin_layout Subsubsection
2197 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
2200 \begin_layout Standard
2201 Like gui.text, but draw using double-width.
2204 \begin_layout Subsubsection
2205 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
2208 \begin_layout Standard
2209 Like gui.text, but draw using double-height.
2212 \begin_layout Subsubsection
2213 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
2216 \begin_layout Standard
2217 Like gui.text, but draw using double-width/double-height.
2220 \begin_layout Subsubsection
2221 gui.rectangle(number x, number y, number width, number height[, number thickness[
2222 , number outline[, number fill]]])
2225 \begin_layout Standard
2226 Draw rectangle on the GUI.
2230 \begin_layout Itemize
2231 x: X-coordinate of left edge.
2234 \begin_layout Itemize
2235 y: Y-coordinate of upper edge.
2238 \begin_layout Itemize
2239 width: Width of rectangle.
2242 \begin_layout Itemize
2243 height: Height of rectangle.
2246 \begin_layout Itemize
2247 thickness: Thickness of outline (default is 1).
2250 \begin_layout Itemize
2251 outline: Color of outline (default is 0xFFFFFF (white))
2254 \begin_layout Itemize
2255 fill: Color of fill (default is -1 (transparent))
2258 \begin_layout Subsubsection
2259 gui.box(number x, number y, number width, number height[, number thickness[,
2260 number outline1[,number outline2[, number fill]]]])
2263 \begin_layout Standard
2264 Draw rectangle with 3D effect on the GUI.
2268 \begin_layout Itemize
2269 x: X-coordinate of left edge.
2272 \begin_layout Itemize
2273 y: Y-coordinate of upper edge.
2276 \begin_layout Itemize
2277 width: Width of rectangle.
2280 \begin_layout Itemize
2281 height: Height of rectangle.
2284 \begin_layout Itemize
2285 thickness: Thickness of outline (default is 1).
2288 \begin_layout Itemize
2289 outline1: First color of outline (default is 0xFFFFFF (white))
2292 \begin_layout Itemize
2293 outline2: First color of outline (default is 0x808080 (dark gray))
2296 \begin_layout Itemize
2297 fill: Color of fill (default is 0xC0C0C0 (light grayy))
2300 \begin_layout Subsubsection
2301 gui.pixel(number x, number y[, number color])
2304 \begin_layout Standard
2305 Draw one pixel on the GUI.
2309 \begin_layout Itemize
2310 x: X-coordinate of the pixel
2313 \begin_layout Itemize
2314 y: Y-coordinate of the pixel
2317 \begin_layout Itemize
2318 color: Color of the pixel (default is 0xFFFFFF (white))
2321 \begin_layout Subsubsection
2322 gui.crosshair(number x, number y[, number length[, number color]])
2325 \begin_layout Standard
2330 \begin_layout Itemize
2331 x: X-coordinate of the crosshair
2334 \begin_layout Itemize
2335 y: Y-coordinate of the crosshair
2338 \begin_layout Itemize
2339 length: Length of the crosshair lines (default 10).
2342 \begin_layout Itemize
2343 color: Color of the crosshair (default is 0xFFFFFF (white))
2346 \begin_layout Subsubsection
2347 gui.line(number x1, number y1, number x2, number y2[, number color])
2350 \begin_layout Standard
2355 \begin_layout Itemize
2356 x1: X-coordinate of one end.
2359 \begin_layout Itemize
2360 y1: Y-coordinate of one end.
2363 \begin_layout Itemize
2364 x2: X-coordinate of the other end.
2367 \begin_layout Itemize
2368 y2: Y-coordinate of the other end.
2371 \begin_layout Itemize
2372 color: Color of the line (default is 0xFFFFFF (white)).
2375 \begin_layout Subsubsection
2376 gui.circle(number x, number y, number r[, number thick[, number border[,
2380 \begin_layout Standard
2385 \begin_layout Itemize
2386 x: X-coordinate of the center
2389 \begin_layout Itemize
2390 y: Y-coordinate of the center
2393 \begin_layout Itemize
2394 r: The radius of the circle
2397 \begin_layout Itemize
2398 thick: Border thickness
2401 \begin_layout Itemize
2402 border: Border color (default is 0xFFFFFF (white))
2405 \begin_layout Itemize
2406 fill: Fill color (default is -1 (transparent)).
2409 \begin_layout Subsubsection
2410 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
2413 \begin_layout Standard
2414 Draw a bitmap on screen with specified palette.
2418 \begin_layout Itemize
2419 x: X-coordinate of left edge.
2422 \begin_layout Itemize
2423 y: Y-coordinate of top edge.
2426 \begin_layout Itemize
2427 bitmap: The bitmap to draw
2430 \begin_layout Itemize
2431 palette: The palette to draw the bitmap using.
2434 \begin_layout Subsubsection
2435 gui.bitmap_draw(number x, number y, dbitmap bitmap)
2438 \begin_layout Standard
2439 Draw a bitmap on screen.
2443 \begin_layout Itemize
2444 x: X-coordinate of left edge.
2447 \begin_layout Itemize
2448 y: Y-coordinate of top edge.
2451 \begin_layout Itemize
2452 bitmap: The bitmap to draw
2455 \begin_layout Subsubsection
2459 \begin_layout Standard
2460 Returns a new palette (initially all transparent).
2461 Can be used anywhere.
2464 \begin_layout Subsubsection
2465 gui.bitmap_new(number w, number h, boolean direct[, bool icolor])
2468 \begin_layout Standard
2469 Returns a new bitmap/dbitmap.
2470 Can be used anywhere.
2474 \begin_layout Itemize
2475 w: The width of new bitmap
2478 \begin_layout Itemize
2479 h: The height of new bitmap
2482 \begin_layout Itemize
2483 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
2486 \begin_layout Itemize
2487 icolor: Initital fill color (defaults to 0 on BITMAP, -1 on DBITMAP)
2490 \begin_layout Subsubsection
2491 gui.bitmap_load(string file)
2494 \begin_layout Standard
2495 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
2497 Can be used anywhere.
2501 \begin_layout Itemize
2502 file: The name of file to load.
2505 \begin_layout Subsubsection
2506 gui.palette_set(palette palette, number index, number color)
2509 \begin_layout Standard
2510 Sets color in palette.
2511 Can be used anywhere.
2515 \begin_layout Itemize
2516 palette: The palette to manipulate
2519 \begin_layout Itemize
2520 index: Index of color (0-65535).
2523 \begin_layout Itemize
2524 color: The color value.
2527 \begin_layout Subsubsection
2528 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
2531 \begin_layout Standard
2532 Sets specified pixel in bitmap.
2533 Can be used anywhere.
2537 \begin_layout Itemize
2538 bitmap: The bitmap to manipulate
2541 \begin_layout Itemize
2542 x: The x-coordinate of the pixel.
2545 \begin_layout Itemize
2546 y: The y-coordinate of the pixel.
2549 \begin_layout Itemize
2550 color: If bitmap is a bitmap, color index (0-65535).
2551 Otherwise color value.
2554 \begin_layout Subsubsection
2555 gui.bitmap_size(bitmap/dbitmap bitmap)
2558 \begin_layout Standard
2560 Can be used anywhere.
2564 \begin_layout Itemize
2565 bitmap: The bitmap to query.
2568 \begin_layout Standard
2569 The first return is the width, the second is the height.
2572 \begin_layout Subsubsection
2573 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
2574 src, number sx, number sy, number w, number h[, number ck])
2577 \begin_layout Standard
2578 Blit a part of bitmap to another.
2579 Can be used anywhere.
2583 \begin_layout Itemize
2584 dest: Destination to blit to.
2587 \begin_layout Itemize
2588 dx: left edge of target
2591 \begin_layout Itemize
2592 dy: Top edge of target
2595 \begin_layout Itemize
2596 src: The source to blit from.
2597 Must be of the same type as destination.
2600 \begin_layout Itemize
2601 sx: left edge of source
2604 \begin_layout Itemize
2605 sy: Top edge of source
2608 \begin_layout Itemize
2612 \begin_layout Itemize
2613 h: Height of region.
2616 \begin_layout Itemize
2618 Pixels of this color are not blitted.
2622 \begin_layout Itemize
2623 If bitmaps are bitmaps, this is color index of colorkey.
2624 Values outside range 0-65535 cause no key to be used as colorkey.
2627 \begin_layout Itemize
2628 If bitmaps are dbitmaps, this color value of colorkey.
2631 \begin_layout Itemize
2632 May be absent or nil for no colorkey blit.
2636 \begin_layout Subsubsection
2640 \begin_layout Standard
2641 Request on_repaint() to happen as soon as possible.
2642 Can be used anywhere.
2645 \begin_layout Subsubsection
2646 gui.subframe_update(boolean on)
2649 \begin_layout Standard
2650 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2651 or not happen (on=false).
2652 Can be used anywhere.
2655 \begin_layout Subsubsection
2656 gui.screenshot(string filename)
2659 \begin_layout Standard
2660 Write PNG screenshot of the current frame (no drawings) to specified file.
2661 Can be used anywhere.
2664 \begin_layout Subsubsection
2665 gui.color(number r, number g, number b[, number a])
2668 \begin_layout Standard
2669 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2670 each component in scale 0-255.
2671 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2673 The default alpha is 256.
2676 \begin_layout Subsubsection
2677 gui.status(string name, string value)
2680 \begin_layout Standard
2682 \begin_inset Quotes eld
2686 \begin_inset Quotes erd
2689 to <value> in status area.
2690 Can be used anywhere.
2693 \begin_layout Subsubsection
2694 gui.rainbow(number step, number steps[, number color])
2697 \begin_layout Standard
2698 Perform hue rotation of color <color> (default bright red), by <step> steps.
2699 The number of steps per full rotation is given by absolute value of <steps>.
2702 \begin_layout Standard
2703 If <steps> is negative, the rotation will be counterclockwise.
2706 \begin_layout Subsubsection
2707 gui.screenshot(string filename)
2710 \begin_layout Standard
2711 Saves a screenshot into specified file.
2714 \begin_layout Subsection
2718 \begin_layout Standard
2720 Only available in on_input callback.
2723 \begin_layout Subsubsection
2724 input.get(number controller, number index)
2727 \begin_layout Standard
2728 Read the specified index (0-11) from specified controller (0-7).
2732 \begin_layout Itemize
2733 Uses physical controller numbering.
2734 Gamepad in port 2 is controller 4, not 1!
2737 \begin_layout Subsubsection
2738 input.set(number controller, number index, number value)
2741 \begin_layout Standard
2742 Write the specified index (0-11) from specified controller (0-7), storing
2747 \begin_layout Itemize
2748 Uses physical controller numbering.
2749 Gamepad in port 2 is controller 4, not 1!
2752 \begin_layout Subsubsection
2753 input.geta(number controller)
2756 \begin_layout Standard
2757 Get input state for entiere controller.
2758 Returns 13 return values.
2761 \begin_layout Itemize
2762 1st return value: Bitmask: bit i is set if i:th index is nonzero
2765 \begin_layout Itemize
2766 2nd-13th return value: value of i:th index.
2769 \begin_layout Subsubsection
2770 input.seta(number controller, number bitmask, number args...)
2773 \begin_layout Standard
2774 Set state for entiere controller.
2775 args is up to 12 values for indices (overriding values in bitmask if specified).
2778 \begin_layout Subsubsection
2779 input.controllertype(number controller)
2782 \begin_layout Standard
2783 Get the type of controller as string.
2787 \begin_layout Itemize
2791 \begin_layout Itemize
2795 \begin_layout Itemize
2799 \begin_layout Itemize
2803 \begin_layout Subsubsection
2804 input.reset([number cycles])
2807 \begin_layout Standard
2809 If cycles is greater than zero, do delayed reset.
2810 0 (or no value) causes immediate reset.
2813 \begin_layout Itemize
2814 Only available with subframe flag false.
2817 \begin_layout Subsubsection
2821 \begin_layout Standard
2822 Returns table of tables of all available keys and axes.
2823 The first table is indexed by key name (platform-dependent!), and the inner
2824 table has the following fields:
2827 \begin_layout Itemize
2828 last_rawval: Last reported raw value for control.
2831 \begin_layout Itemize
2832 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2833 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2836 \begin_layout Itemize
2837 cal_left: Minimum calibration value.
2838 Only meaningful with axis and pressure types.
2841 \begin_layout Itemize
2842 cal_center: Center calibration value.
2843 Only meaningful with axis and pressure types.
2846 \begin_layout Itemize
2847 cal_right: Maximum calibration value.
2848 Only meaningful with axis and pressure types.
2851 \begin_layout Itemize
2852 cal_tolerance: Dead zone tolerance.
2853 Only meaningful with axis and pressure types.
2856 \begin_layout Subsubsection
2857 input.keyhook(string key, boolean state)
2860 \begin_layout Standard
2861 Requests that keyhook events to be sent for key (state=true) or not sent
2865 \begin_layout Subsubsection
2866 input.joyget(number controller)
2869 \begin_layout Standard
2870 Returns table for current controls for specified controller.
2871 The names of fields vary by controller type.
2874 \begin_layout Itemize
2875 The buttons have the same name as those are referred to in other contexts
2879 \begin_layout Itemize
2881 \begin_inset Quotes eld
2885 \begin_inset Quotes erd
2889 \begin_inset Quotes eld
2893 \begin_inset Quotes erd
2899 \begin_layout Subsubsection
2900 input.joyset(number controller, table controls)
2903 \begin_layout Standard
2904 Set the the state of specified controller to values specified in specified
2908 \begin_layout Subsection
2912 \begin_layout Standard
2916 \begin_layout Subsubsection
2917 subtitle.byindex(number i)
2920 \begin_layout Standard
2921 Read the frame and length of ith subtitle.
2922 Returns nothing if not present.
2925 \begin_layout Subsubsection
2926 subtitle.set(number f, number l, string txt)
2929 \begin_layout Standard
2930 Set the text of subtitle.
2933 \begin_layout Subsubsection
2934 subtitle.get(number f, number l)
2937 \begin_layout Standard
2938 Get the text of subtitle.
2941 \begin_layout Subsubsection
2942 subtitle.delete(number f, number l)
2945 \begin_layout Standard
2946 Delete specified subtitle.
2949 \begin_layout Subsection
2953 \begin_layout Standard
2954 Host memory handling (extra memory saved to savestates).
2955 Host memory starts empty.
2958 \begin_layout Subsubsection
2959 hostmemory.read(number address)
2962 \begin_layout Standard
2963 Reads hostmemory slot address.
2964 Slot numbers out of range return false instead of numeric.
2967 \begin_layout Subsubsection
2968 hostmemory.write(number address, number value)
2971 \begin_layout Standard
2972 Writes hostmemory slot with 0-255.
2973 Slot numbers out of range cause extension of host memory slot space.
2976 \begin_layout Subsubsection
2977 hostmemory.readbyte(number address)
2980 \begin_layout Standard
2981 Read unsigned byte (1 element) from given address.
2982 Slots out of range return false.
2985 \begin_layout Subsubsection
2986 hostmemory.writebyte(number address, number value)
2989 \begin_layout Standard
2990 Write unsigned byte (1 element) to given slot.
2991 Slot numbers out of range cause extension.
2994 \begin_layout Subsubsection
2995 hostmemory.readsbyte(number address)
2998 \begin_layout Standard
2999 Read signed byte (1 element) from given address.
3000 Slots out of range return false.
3003 \begin_layout Subsubsection
3004 hostmemory.writesbyte(number address, number value)
3007 \begin_layout Standard
3008 Write signed byte (1 element) to given slot.
3009 Slot numbers out of range cause extension.
3012 \begin_layout Subsubsection
3013 hostmemory.readword(number address)
3016 \begin_layout Standard
3017 Read unsigned word (2 elements) from given address.
3018 Slots out of range return false.
3021 \begin_layout Subsubsection
3022 hostmemory.writeword(number address, number value)
3025 \begin_layout Standard
3026 Write unsigned word (2 elements) to given slot.
3027 Slot numbers out of range cause extension.
3030 \begin_layout Subsubsection
3031 hostmemory.readsword(number address)
3034 \begin_layout Standard
3035 Read signed word (2 elements) from given address.
3036 Slots out of range return false.
3039 \begin_layout Subsubsection
3040 hostmemory.writesword(number address, number value)
3043 \begin_layout Standard
3044 Write signed word (2 elements) to given slot.
3045 Slot numbers out of range cause extension.
3048 \begin_layout Subsubsection
3049 hostmemory.readdword(number address)
3052 \begin_layout Standard
3053 Read unsigned doubleword (4 elements) from given address.
3054 Slots out of range return false.
3057 \begin_layout Subsubsection
3058 hostmemory.writedword(number address, number value)
3061 \begin_layout Standard
3062 Write unsigned doubleword (4 elements) to given slot.
3063 Slot numbers out of range cause extension.
3066 \begin_layout Subsubsection
3067 hostmemory.readsdword(number address)
3070 \begin_layout Standard
3071 Read signed doubleword (4 elements) from given address.
3072 Slots out of range return false.
3075 \begin_layout Subsubsection
3076 hostmemory.writesdword(number address, number value)
3079 \begin_layout Standard
3080 Write signed doubleword (4 elements) to given slot.
3081 Slot numbers out of range cause extension.
3084 \begin_layout Subsubsection
3085 hostmemory.readqword(number address)
3088 \begin_layout Standard
3089 Read unsigned quadword (8 elements) from given address.
3090 Slots out of range return false.
3093 \begin_layout Subsubsection
3094 hostmemory.writeqword(number address, number value)
3097 \begin_layout Standard
3098 Write unsigned quadword (4 elements) to given slot.
3099 Slot numbers out of range cause extension.
3102 \begin_layout Subsubsection
3103 hostmemory.readsqword(number address)
3106 \begin_layout Standard
3107 Read signed quadword (8 elements) from given address.
3108 Slots out of range return false.
3111 \begin_layout Subsubsection
3112 hostmemory.writesqword(number address, number value)
3115 \begin_layout Standard
3116 Write signed quadword (8 elements) to given slot.
3117 Slot numbers out of range cause extension.
3120 \begin_layout Subsection
3124 \begin_layout Standard
3128 \begin_layout Subsubsection
3129 movie.currentframe()
3132 \begin_layout Standard
3133 Return number of current frame.
3136 \begin_layout Subsubsection
3140 \begin_layout Standard
3141 Return number of frames in movie.
3144 \begin_layout Subsubsection
3148 \begin_layout Standard
3149 Return true if in readonly mode, false if in readwrite.
3152 \begin_layout Subsubsection
3156 \begin_layout Standard
3157 Returns the current value of rerecord count.
3160 \begin_layout Subsubsection
3161 movie.set_readwrite()
3164 \begin_layout Standard
3165 Set readwrite mode (does not cause on_readwrite callback).
3168 \begin_layout Subsubsection
3169 movie.frame_subframes(number frame)
3172 \begin_layout Standard
3173 Count number of subframes in specified frame (frame numbers are 1-based)
3177 \begin_layout Subsubsection
3178 movie.read_subframe(number frame, number subframe)
3181 \begin_layout Standard
3182 Read specifed subframe in specified frame and return data as array (100
3183 elements, numbered 0-99 currently).
3186 \begin_layout Subsubsection
3190 \begin_layout Standard
3191 Returns the current value of the RTC as a pair (second, subsecond).
3194 \begin_layout Subsubsection
3195 movie.unsafe_rewind([UNSAFEREWIND state])
3198 \begin_layout Standard
3199 Start setting point for unsafe rewind or jump to point of unsafe rewind.
3202 \begin_layout Itemize
3203 If called without argument, causes emulator to start process of setting
3204 unsafe rewind point.
3205 When this has finished, callback on_set_rewind occurs, passing the rewind
3206 state to lua script.
3209 \begin_layout Itemize
3210 If called with argument, causes emulator rewind to passed rewind point as
3212 Readwrite mode is implicitly activated.
3215 \begin_layout Standard
3216 The following warnings apply to unsafe rewinding:
3219 \begin_layout Itemize
3220 There are no safety checks against misuse (that's what
3221 \begin_inset Quotes eld
3225 \begin_inset Quotes erd
3231 \begin_layout Itemize
3232 Only call rewind from timeline rewind point was set from.
3235 \begin_layout Itemize
3236 Only call rewind from after the rewind point was set.
3239 \begin_layout Subsection
3243 \begin_layout Standard
3244 Routines for settings manipulation
3247 \begin_layout Subsubsection
3248 settings.get(string name)
3251 \begin_layout Standard
3252 Get value of setting.
3253 If setting is blank, returns false.
3254 If setting value can't be obtained, returns (nil, error message).
3257 \begin_layout Subsubsection
3258 settings.set(string name, string value)
3261 \begin_layout Standard
3262 Set value of setting.
3263 If setting can't be set, returns (nil, error message).
3266 \begin_layout Subsubsection
3267 settings.is_set(string name)
3270 \begin_layout Standard
3271 Returns if setting is set.
3272 If setting does not exist, returns (nil, error message).
3275 \begin_layout Subsubsection
3276 settings.blank(string name)
3279 \begin_layout Standard
3280 Blanks a setting and returns true.
3281 If setting can't be blanked, returns (nil, error message).
3284 \begin_layout Subsection
3288 \begin_layout Standard
3289 Contains various functions for managing memory
3292 \begin_layout Subsubsection
3296 \begin_layout Standard
3297 Returns the number of VMAs
3300 \begin_layout Subsubsection
3301 memory.read_vma(number index)
3304 \begin_layout Standard
3305 Reads the specified VMA (indices start from zero).
3306 Trying to read invalid VMA gives nil.
3307 The read VMA is table with the following fields:
3310 \begin_layout Itemize
3311 region_name (string): The readable name of the VMA
3314 \begin_layout Itemize
3315 baseaddr (number): Base address of the VMA
3318 \begin_layout Itemize
3319 lastaddr (number): Last address in the VMA.
3322 \begin_layout Itemize
3323 size (number): The size of VMA in bytes.
3326 \begin_layout Itemize
3327 readonly (boolean): True of the VMA corresponds to ROM.
3330 \begin_layout Itemize
3331 iospace (boolean): True if the VMA is I/O space.
3334 \begin_layout Itemize
3335 native_endian (boolean): True if the VMA has native endian as opposed to
3339 \begin_layout Subsubsection
3340 memory.find_vma(number address)
3343 \begin_layout Standard
3344 Finds the VMA containing specified address.
3345 Returns table in the same format as read_vma or nil if not found.
3348 \begin_layout Subsubsection
3349 memory.readbyte(number address)
3352 \begin_layout Standard
3353 Reads the specified address as unsigned byte and returns the result.
3356 \begin_layout Subsubsection
3357 memory.readsbyte(number address)
3360 \begin_layout Standard
3361 Reads the specified address as signed byte and returns the result.
3364 \begin_layout Subsubsection
3365 memory.writebyte(number address, number value)
3368 \begin_layout Standard
3369 Writes the specified value (negative values undergo 2's complement) to specified
3370 address (as a byte).
3373 \begin_layout Subsubsection
3374 memory.readword(number address)
3377 \begin_layout Standard
3378 Reads the specified address as unsigned word and returns the result.
3381 \begin_layout Subsubsection
3382 memory.readsword(number address)
3385 \begin_layout Standard
3386 Reads the specified address as signed word and returns the result.
3389 \begin_layout Subsubsection
3390 memory.writeword(number address, number value)
3393 \begin_layout Standard
3394 Writes the specified value (negative values undergo 2's complement) to specified
3395 address (as a word).
3398 \begin_layout Subsubsection
3399 memory.readdword(number address)
3402 \begin_layout Standard
3403 Reads the specified address as unsigned doubleword and returns the result.
3406 \begin_layout Subsubsection
3407 memory.readsdword(number address)
3410 \begin_layout Standard
3411 Reads the specified address as signed doubleword and returns the result.
3414 \begin_layout Subsubsection
3415 memory.writedword(number address, number value)
3418 \begin_layout Standard
3419 Writes the specified value (negative values undergo 2's complement) to specified
3420 address (as a doubleword).
3423 \begin_layout Subsubsection
3424 memory.readqword(number address)
3427 \begin_layout Standard
3428 Reads the specified address as unsigned quadword and returns the result.
3431 \begin_layout Subsubsection
3432 memory.readsqword(number address)
3435 \begin_layout Standard
3436 Reads the specified address as signed quadword and returns the result.
3439 \begin_layout Subsubsection
3440 memory.writeqword(number address, number value)
3443 \begin_layout Standard
3444 Writes the specified value (negative values undergo 2's complement) to specified
3445 address (as a quadword).
3448 \begin_layout Subsubsection
3449 memory.hash_region(number base, number size)
3452 \begin_layout Standard
3453 Hash specified number of bytes starting from specified address and return
3457 \begin_layout Subsubsection
3461 \begin_layout Standard
3462 Hash the current system state.
3463 Mainly useful for debugging savestates.
3466 \begin_layout Subsubsection
3467 memory.readregion(number base, number size)
3470 \begin_layout Standard
3471 Read a region of memory.
3474 \begin_layout Itemize
3475 Warning: If the region crosses VMA boundary, the results are undefined.
3478 \begin_layout Subsubsection
3479 memory.map<type>([number base, number size])
3482 \begin_layout Standard
3483 Returns a table mapping specified memory aperture for read/write.
3484 If parameters are omitted, entiere map space is the aperture.
3487 \begin_layout Itemize
3488 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
3491 \begin_layout Subsubsection
3492 memory.writeregion(number base, number size, table data)
3495 \begin_layout Standard
3496 Write a region of memory.
3499 \begin_layout Itemize
3500 Warning: If the region crosses VMA boundary, the results are undefined.
3503 \begin_layout Subsubsection
3507 \begin_layout Standard
3508 Returns a new mapping structure (MMAP_STRUCT)
3511 \begin_layout Subsubsection
3512 MMAP_STRUCT(string key, number address, string type)
3515 \begin_layout Standard
3516 Bind key in mmap structure to specified address with specified type.
3519 \begin_layout Itemize
3520 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
3523 \begin_layout Subsection
3527 \begin_layout Standard
3528 Contains functions for manipulating subtitles.
3531 \begin_layout Subsubsection
3532 subtitle.byindex(number index)
3535 \begin_layout Standard
3536 Get (basetime, length) pair of specified subtitle index or nothing if index
3540 \begin_layout Subsubsection
3541 subtitle.get(number basetime, number length)
3544 \begin_layout Standard
3545 Read the specified subtitle.
3547 \begin_inset Quotes eld
3551 \begin_inset Quotes erd
3554 if the subtitle does not exist.
3557 \begin_layout Subsubsection
3558 subtitle.set(number basetime, number length, string content)
3561 \begin_layout Standard
3562 Set the specified subtitle.
3565 \begin_layout Subsubsection
3566 subtitle.deltete(number basetime, number length)
3569 \begin_layout Standard
3570 Delete the specified subtitle.
3573 \begin_layout Subsection
3577 \begin_layout Standard
3578 Contains copy of global variables from time of Lua initialization.
3582 \begin_layout Subsection
3586 \begin_layout Standard
3587 Various callbacks to Lua that can occur.
3590 \begin_layout Subsubsection
3591 Callback: on_paint(bool not_synth)
3594 \begin_layout Standard
3595 Called when screen is being painted.
3596 Any gui.* calls requiring graphic context draw on the screen.
3599 \begin_layout Standard
3600 not_synth is true if this hook is being called in response to received frame,
3604 \begin_layout Subsubsection
3605 Callback: on_video()
3608 \begin_layout Standard
3609 Called when video dump frame is being painted.
3610 Any gui.* calls requiring graphic context draw on the video.
3613 \begin_layout Subsubsection
3614 Callback: on_frame_emulated()
3617 \begin_layout Standard
3618 Called when emulating frame has completed and on_paint()/on_video() calls
3619 are about to be issued.
3622 \begin_layout Subsubsection
3623 Callback: on_frame()
3626 \begin_layout Standard
3627 Called on each starting whole frame.
3630 \begin_layout Subsubsection
3631 Callback: on_startup()
3634 \begin_layout Standard
3635 Called when the emulator is starting (lsnes.rc and --run files has been run).
3638 \begin_layout Subsubsection
3639 Callback: on_rewind()
3642 \begin_layout Standard
3643 Called when rewind movie to beginning has completed.
3646 \begin_layout Subsubsection
3647 Callback: on_pre_load(string name)
3650 \begin_layout Standard
3651 Called just before savestate/movie load occurs (note: loads are always delayed,
3652 so this occurs even when load was initiated by lua).
3655 \begin_layout Subsubsection
3656 Callback: on_err_load(string name)
3659 \begin_layout Standard
3660 Called if loadstate goes wrong.
3663 \begin_layout Subsubsection
3664 Callback: on_post_load(string name, boolean was_savestate)
3667 \begin_layout Standard
3668 Called on successful loadstate.
3669 was_savestate gives if this was a savestate or a movie.
3672 \begin_layout Subsubsection
3673 Callback: on_pre_save(string name, boolean is_savestate)
3676 \begin_layout Standard
3677 Called just before savestate save occurs (note: movie saves are synchronous
3678 and won't trigger these callbacks if called from Lua).
3681 \begin_layout Subsubsection
3682 Callback: on_err_save(string name)
3685 \begin_layout Standard
3686 Called if savestate goes wrong.
3689 \begin_layout Subsubsection
3690 Callback: on_post_save(string name, boolean is_savestate)
3693 \begin_layout Standard
3694 Called on successful savaestate.
3695 is_savestate gives if this was a savestate or a movie.
3698 \begin_layout Subsubsection
3702 \begin_layout Standard
3703 Called when emulator is shutting down.
3706 \begin_layout Subsubsection
3707 Callback: on_input(boolean subframe)
3710 \begin_layout Standard
3711 Called when emulator is just sending input to bsnes core.
3712 Warning: This is called even in readonly mode, but the results are ignored.
3715 \begin_layout Subsubsection
3716 Callback: on_reset()
3719 \begin_layout Standard
3720 Called when SNES is reset.
3723 \begin_layout Subsubsection
3724 Callback: on_readwrite()
3727 \begin_layout Standard
3728 Called when moving into readwrite mode as result of
3729 \begin_inset Quotes eld
3733 \begin_inset Quotes erd
3736 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3740 \begin_layout Subsubsection
3741 Callback: on_snoop(number port, number controller, number index, number
3745 \begin_layout Standard
3746 Called each time bsnes asks for input.
3747 The value is the final value to be sent to bsnes core (readonly mode, autohold
3748 and autofire have been taken into account).
3749 Might be useful when translating movies to format suitable for console
3751 Note: There is no way to modify the value to be sent.
3754 \begin_layout Subsubsection
3755 Callback: on_keyhook(string keyname, table state)
3758 \begin_layout Standard
3759 Sent when key that has keyhook events requested changes state.
3760 Keyname is name of the key (group) and state is the state (same kind as
3761 table values in input.raw).
3764 \begin_layout Subsubsection
3768 \begin_layout Standard
3769 Called when requested by set_idle_timeout(), the timeout has expired and
3770 emulator is waiting.
3773 \begin_layout Subsubsection
3774 Callback: on_timer()
3777 \begin_layout Standard
3778 Called when requested by set_idle_timeout() and the timeout has expired
3779 (regardless if emulator is waiting).
3782 \begin_layout Subsubsection
3783 Callback: on_set_rewind(UNSAFEREWIND r)
3786 \begin_layout Standard
3787 Called when unsafe rewind object has been constructed.
3790 \begin_layout Subsubsection
3791 Callback: on_pre_rewind()
3794 \begin_layout Standard
3795 Called just before unsafe rewind is about to occur.
3798 \begin_layout Subsubsection
3799 Callback: on_post_rewind()
3802 \begin_layout Standard
3803 Called just after unsafe rewind has occured.
3806 \begin_layout Section
3807 Memory watch expression syntax
3810 \begin_layout Standard
3811 Memory watch expressions are in RPN (Reverse Polish Notation).
3812 At the end of expression, the top entry on stack is taken as the final
3816 \begin_layout Standard
3820 \begin_layout Itemize
3821 Evaluation order is strictly left to right.
3824 \begin_layout Itemize
3825 a is the entry on top of stack
3828 \begin_layout Itemize
3829 b is the entry immediately below top of stack
3832 \begin_layout Itemize
3833 ; separates values to be pushed (no intermediate pop).
3836 \begin_layout Itemize
3837 After end of element, all used stack slots are popped and all results are
3841 \begin_layout Itemize
3842 When pushing multiple values, the pushes occur in order shown.
3845 \begin_layout Standard
3846 The following operators are available:
3849 \begin_layout Itemize
3853 \begin_layout Itemize
3857 \begin_layout Itemize
3861 \begin_layout Itemize
3865 \begin_layout Itemize
3869 \begin_layout Itemize
3873 \begin_layout Itemize
3874 b : read_signed_byte(a)
3877 \begin_layout Itemize
3881 \begin_layout Itemize
3882 d : read_signed_dword(a)
3885 \begin_layout Itemize
3889 \begin_layout Itemize
3891 \begin_inset Formula $\pi$
3897 \begin_layout Itemize
3898 q : read_signed_qword(a)
3901 \begin_layout Itemize
3905 \begin_layout Itemize
3909 \begin_layout Itemize
3913 \begin_layout Itemize
3917 \begin_layout Itemize
3918 w : read_signed_word(a)
3921 \begin_layout Itemize
3925 \begin_layout Itemize
3926 B : read_unsigned_byte(a)
3929 \begin_layout Itemize
3930 C<number>z : Push number <number> to stack.
3933 \begin_layout Itemize
3934 D : read_unsigned_dword(a)
3937 \begin_layout Itemize
3938 C0x<number>z : Push number <number> (hexadecimal) to stack.
3941 \begin_layout Itemize
3942 Q : read_unsigned_qword(a)
3945 \begin_layout Itemize
3946 R<digit> : round a to <digit> digits.
3949 \begin_layout Itemize
3950 W : read_unsigned_word(a)
3953 \begin_layout Subsection
3957 \begin_layout Standard
3958 C0x007e0878zWC0x007e002czW-
3961 \begin_layout Enumerate
3962 Push value 0x7e0878 on top of stack (C0x007e0878z).
3965 \begin_layout Enumerate
3966 Pop the value on top of stack (0x7e0878), read word value at that address
3967 and push the result,call it x1 (W).
3970 \begin_layout Enumerate
3971 Push value 0x7e002c on top of stack (C0x007e002cz).
3974 \begin_layout Enumerate
3975 Pop the value on top of stack (0x7e002c), read word value at that address
3976 and push the result,call it x2 (W).
3979 \begin_layout Enumerate
3980 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3984 \begin_layout Enumerate
3985 Since the expression ends, the final memory watch result is the top one
3986 on stack, which is x2 - x1.
3989 \begin_layout Section
3990 Modifier and key names:
3993 \begin_layout Subsection
3997 \begin_layout Subsubsection
4001 \begin_layout Standard
4002 Following modifier names are known:
4005 \begin_layout Itemize
4006 ctrl, lctrl, rctrl: Control keys
4009 \begin_layout Itemize
4010 alt, lalt, ralt: ALT keys.
4013 \begin_layout Itemize
4014 shift, lshift, rshift: Shift keys.
4017 \begin_layout Itemize
4018 meta, lmeta, rmeta: Meta keys.
4021 \begin_layout Itemize
4022 num, caps: Numlock/Capslock (these are sticky!)
4025 \begin_layout Itemize
4029 \begin_layout Subsubsection
4033 \begin_layout Standard
4034 Following key names are known:
4037 \begin_layout Itemize
4038 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
4039 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
4040 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
4041 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
4042 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
4043 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
4044 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
4045 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
4046 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
4047 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
4048 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
4049 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
4050 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
4051 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
4052 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
4053 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
4054 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
4055 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
4056 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
4057 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
4058 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
4059 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
4060 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
4061 break, menu, power, euro, undo
4064 \begin_layout Itemize
4065 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
4066 hardware-dependent scan code of <n> (useful to bind those keys that don't
4067 have symbolic names).
4070 \begin_layout Subsubsection
4071 Joystick pseudo-keys:
4074 \begin_layout Itemize
4075 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
4078 \begin_layout Itemize
4079 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
4082 \begin_layout Itemize
4083 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
4086 \begin_layout Itemize
4087 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
4090 \begin_layout Itemize
4091 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
4094 \begin_layout Itemize
4095 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
4096 position (axis modes axis and axis_inverse).
4099 \begin_layout Itemize
4100 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
4101 position (axis modes axis and axis_inverse).
4104 \begin_layout Itemize
4105 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
4109 \begin_layout Subsubsection
4113 \begin_layout Itemize
4114 Escape: Enter/Exit Command mode, cancel modal dialogs.
4117 \begin_layout Itemize
4118 Return (also KPEnter): Execute command, ok modal dialog.
4121 \begin_layout Itemize
4122 Pgup/Up (also KP8/9 if no num lock, CTRL+P; command mode): Previous command
4126 \begin_layout Itemize
4127 Pgdn/Down(also KP2/3 if no num lock, CTRL+N; command mode): Next command
4131 \begin_layout Itemize
4132 Home (also KP7 if no num lock, CTRL+A; command mode): Beginning of command.
4135 \begin_layout Itemize
4136 End (also KP1 if no num lock, CTRL+E; command mode): End of command.
4139 \begin_layout Itemize
4140 Left (also KP4 if no num lock, CTRL+B; command mode): Move cursor left.
4143 \begin_layout Itemize
4144 Right (also KP6 if no num lock, CTRL+F; command mode): Move cursor right.
4147 \begin_layout Itemize
4149 if no num lock; command mode): Delete character to right of cursor.
4152 \begin_layout Itemize
4153 Insert (also KP0 if no num lock; command mode): Toggle between insert /
4157 \begin_layout Itemize
4158 Backspace (command mode): Delete character to left of cursor.
4161 \begin_layout Itemize
4162 CTRL+LEFT (also ALT+B; command mode): Previous word.
4165 \begin_layout Itemize
4166 CTRL+RIGHT (also ALT+F; command mode): Next word.
4169 \begin_layout Itemize
4170 ALT+D (also CTRL+W; command mode): Delete word.
4173 \begin_layout Itemize
4174 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
4177 \begin_layout Subsection
4181 \begin_layout Subsubsection
4185 \begin_layout Standard
4186 Following modifier names are known:
4189 \begin_layout Itemize
4193 \begin_layout Itemize
4197 \begin_layout Itemize
4201 \begin_layout Itemize
4205 \begin_layout Itemize
4209 \begin_layout Subsubsection
4213 \begin_layout Standard
4214 Following key names are known:
4217 \begin_layout Itemize
4218 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
4219 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
4220 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
4221 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
4222 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
4223 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
4224 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
4225 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
4226 pause, capital, end, home, lefT, up, right, down, select, print, execute,
4227 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
4228 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
4229 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
4230 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
4231 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
4232 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
4233 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
4234 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
4235 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
4236 windows_right, windows_menu, command, special1, special2, special3, special4,
4237 special5, special6, special7, special8, special9, special10, special11,
4238 special12, special13, special14, special15, special16, special17, special18,
4239 special19, special20
4242 \begin_layout Section
4246 \begin_layout Standard
4247 Movie file is .zip archive in itself, normal ZIP archive tools work on it
4248 (note: If you recompress it, do not use compression methods other than
4249 store and deflate and especially do not use encryption of any kind).
4252 \begin_layout Subsection
4253 Detecting clean start/SRAM/Savestate
4256 \begin_layout Itemize
4258 \begin_inset Quotes eld
4262 \begin_inset Quotes erd
4265 it is savestate, otherwise:
4268 \begin_layout Itemize
4269 If file has members with names starting
4270 \begin_inset Quotes eld
4274 \begin_inset Quotes erd
4277 it is movie starting from SRAM, otherwise:
4280 \begin_layout Itemize
4281 It is movie starting from clear state.
4284 \begin_layout Subsection
4288 \begin_layout Standard
4289 Type of game ROM and region (as one line).
4293 \begin_layout Standard
4294 \begin_inset Tabular
4295 <lyxtabular version="3" rows="8" columns="3">
4296 <features tabularvalignment="middle">
4297 <column alignment="center" valignment="top" width="0">
4298 <column alignment="center" valignment="top" width="0">
4299 <column alignment="center" valignment="top" width="0">
4301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4304 \begin_layout Plain Layout
4310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4313 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4322 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4333 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4342 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4351 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4362 \begin_layout Plain Layout
4368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4371 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4391 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4400 \begin_layout Plain Layout
4406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4409 \begin_layout Plain Layout
4417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4420 \begin_layout Plain Layout
4426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4429 \begin_layout Plain Layout
4435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4438 \begin_layout Plain Layout
4446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4449 \begin_layout Plain Layout
4455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4458 \begin_layout Plain Layout
4464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4467 \begin_layout Plain Layout
4475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4478 \begin_layout Plain Layout
4484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4487 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4496 \begin_layout Plain Layout
4504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4507 \begin_layout Plain Layout
4513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4525 \begin_layout Plain Layout
4539 \begin_layout Standard
4543 \begin_layout Standard
4544 \begin_inset Tabular
4545 <lyxtabular version="3" rows="3" columns="2">
4546 <features tabularvalignment="middle">
4547 <column alignment="center" valignment="top" width="0">
4548 <column alignment="center" valignment="top" width="0">
4550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4553 \begin_layout Plain Layout
4559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4562 \begin_layout Plain Layout
4570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4573 \begin_layout Plain Layout
4579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4582 \begin_layout Plain Layout
4590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4593 \begin_layout Plain Layout
4599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4602 \begin_layout Plain Layout
4616 \begin_layout Subsection
4620 \begin_layout Standard
4621 Contains type of port #1 (as one line).
4622 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
4623 If not present, defaults to 'gamepad'.
4626 \begin_layout Subsection
4630 \begin_layout Standard
4631 Contains type of port #2 (as one line).
4632 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
4633 'justifier' and 'justifiers'.
4634 If not present, defaults to 'none'.
4637 \begin_layout Subsection
4641 \begin_layout Standard
4642 Contains name of the game (as one line).
4645 \begin_layout Subsection
4649 \begin_layout Standard
4650 Contains authors, one per line.
4651 Part before '|' is the full name, part after is the nickname.
4654 \begin_layout Subsection
4658 \begin_layout Standard
4660 \begin_inset Quotes eld
4664 \begin_inset Quotes erd
4668 Used to reject other saves.
4671 \begin_layout Subsection
4672 Member: controlsversion
4675 \begin_layout Standard
4677 \begin_inset Quotes eld
4681 \begin_inset Quotes erd
4685 Used to identify what controls are there.
4688 \begin_layout Subsection
4690 \begin_inset Quotes eld
4694 \begin_inset Quotes erd
4700 \begin_layout Standard
4701 Contains bsnes core version number (as one line).
4704 \begin_layout Subsection
4708 \begin_layout Standard
4709 Contains project ID (as one line).
4710 Used to identify if two movies are part of the same project.
4713 \begin_layout Subsection
4714 Member: {rom,slota,slotb}{,xml}.sha256
4717 \begin_layout Standard
4718 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4719 Absent if corresponding file is absent.
4722 \begin_layout Subsection
4723 Member: moviesram.<name>
4726 \begin_layout Standard
4727 Raw binary startup SRAM of kind <name>.
4728 Only present in savestates and movies starting from SRAM.
4731 \begin_layout Subsection
4735 \begin_layout Standard
4736 Contains frame number (as one line) of frame movie was saved on.
4737 Only present in savestates.
4740 \begin_layout Subsection
4744 \begin_layout Standard
4745 Current value of lag counter (as one line).
4746 Only present in savestates.
4749 \begin_layout Subsection
4750 Member: pollcounters
4753 \begin_layout Standard
4754 Contains poll counters (currently 100 of them), one per line.
4755 Each line is raw poll count if DRDY is set for it.
4756 Otherwise it is negative poll count minus one.
4757 Only present in savestates.
4760 \begin_layout Subsection
4764 \begin_layout Standard
4765 Raw binary dump of host memory.
4766 Only present in savestates.
4769 \begin_layout Subsection
4773 \begin_layout Standard
4774 The raw binary savestate itself.
4775 Savestate detection uses this file, only present in savestates.
4778 \begin_layout Subsection
4782 \begin_layout Standard
4783 Screenshot of current frame.
4784 Only present in savestates.
4785 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4787 Height of image is inferred from the width and size of data.
4790 \begin_layout Subsection
4794 \begin_layout Standard
4795 Raw binary SRAM of kind <name> at time of savestate.
4796 Only present in savestates.
4799 \begin_layout Subsection
4803 \begin_layout Standard
4804 The actual input track, one line per subframe (blank lines are skipped).
4807 \begin_layout Itemize
4808 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4809 part of same frame as previous, otherwise it starts a new frame.
4812 \begin_layout Itemize
4813 First subframe must start a new frame.
4816 \begin_layout Standard
4817 Length of movie in frames is number of lines in input file that start a
4821 \begin_layout Subsection
4825 \begin_layout Standard
4830 \begin_layout Itemize
4831 Each line is in form <firstframe> <numframes> <text>.
4834 \begin_layout Itemize
4835 Linefeed is encoded as
4837 n, backslash is encoded as
4844 \begin_layout Subsection
4848 \begin_layout Standard
4849 Contains textual base-10 rerecord count (as one line; emulator just writes
4850 this, it doesn't read it) + 1.
4853 \begin_layout Subsection
4857 \begin_layout Standard
4858 This member stores set of load IDs.
4859 There is one load ID per rerecord (plus one corresponding to start of project).
4862 \begin_layout Itemize
4863 This member constists of concatenation of records
4866 \begin_layout Itemize
4867 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4871 \begin_layout Itemize
4872 IDs are interpretted as 256-bit big-endian integers with warparound.
4875 \begin_layout Itemize
4876 Initial predicted ID is all zeroes.
4879 \begin_layout Standard
4880 Format of each record is:
4883 \begin_layout Itemize
4884 1 byte: Opcode byte.
4885 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4889 \begin_layout Itemize
4890 32-prefixlen bytes of ID.
4893 \begin_layout Itemize
4894 countlen bytes of big-endian count (count).
4897 \begin_layout Standard
4898 Records are processed as follows:
4901 \begin_layout Itemize
4902 To form the first ID encoded by record, take the first prefixlen bytes predicted
4903 ID and append the read ID value to it.
4904 The result is the first ID encoded.
4907 \begin_layout Itemize
4908 If countlen is 0, record encodes 1 ID.
4911 \begin_layout Itemize
4912 If countlen is 1, record encodes 2+count IDs.
4915 \begin_layout Itemize
4916 If countlen is 2, record encodes 258+count IDs.
4919 \begin_layout Itemize
4920 If countlen is 3, record encodes 65794+count IDs.
4923 \begin_layout Itemize
4924 The new predicted ID is the next ID after last one encoded by the record.
4927 \begin_layout Standard
4928 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4932 \begin_layout Subsection
4933 Member: starttime.second
4936 \begin_layout Standard
4937 Movie starting time, second part.
4938 Epoch is Unix epoch.
4939 Default is 1,000,000,000.
4942 \begin_layout Subsection
4943 Member: starttime.subsecond
4946 \begin_layout Standard
4947 Movie starting time, subsecond part.
4952 \begin_layout Subsection
4953 Member: savetime.second
4956 \begin_layout Standard
4957 Movie saving time, second part.
4958 Default is starttime.second.
4959 Only present in savestates.
4962 \begin_layout Subsection
4963 Member: savetime.subsecond
4966 \begin_layout Standard
4967 Movie saving time, subsecond part.
4968 Default is starttime.subsecond.
4969 Only present in savestates.
4972 \begin_layout Section
4973 lsvs file format (commentary tracks)
4976 \begin_layout Subsection
4980 \begin_layout Itemize
4981 Each cluster is 8kB (8192 bytes) in size.
4984 \begin_layout Itemize
4985 Cluster n starts at offset 8192*n in file.
4988 \begin_layout Itemize
4989 The following clusters are system special:
4993 \begin_layout Itemize
4994 Cluster 0 and all clusters with number multiple of 2048 (cluster tables)
4997 \begin_layout Itemize
4998 Cluster 1 (superblock)
5002 \begin_layout Subsection
5006 \begin_layout Itemize
5007 The cluster table describing cluster n is stored in cluster n & ~0x7FF (zero
5011 \begin_layout Itemize
5012 This cluster table consists of 2048 4-byte big-endian integers.
5015 \begin_layout Itemize
5016 Each entry describes a cluster in 16MB supercluster, in order.
5019 \begin_layout Itemize
5020 The valid values for entries are:
5024 \begin_layout Itemize
5025 0x00000000: Free cluster
5028 \begin_layout Itemize
5029 0x00000001: Last cluster in chain.
5032 \begin_layout Itemize
5033 0xFFFFFFFF: System cluster (cluster tables and superblock)
5036 \begin_layout Itemize
5037 (anything else): Number of next cluster in chain.
5038 Must not be multiple of 2048.
5042 \begin_layout Itemize
5043 Due to limitations of the format, there can be at most 2097052 superclusters,
5044 giving maximum file size of 16TB.
5047 \begin_layout Subsection
5051 \begin_layout Itemize
5052 The stream table chain always starts in cluster 2.
5055 \begin_layout Itemize
5056 Otherwise, it follows normal chaining.
5059 \begin_layout Itemize
5060 The stream table consists of 16-byte entries:
5064 \begin_layout Itemize
5065 The first 8 bytes of entry give big-endian beginning position of stream
5066 in units of 1/48000 s.
5069 \begin_layout Itemize
5070 The next 4 bytes of entry give big-endian beginning cluster for control
5072 0 here marks the entry as not present.
5075 \begin_layout Itemize
5076 The last 4 bytes of entry give big-endian beginning cluster for codec data.
5080 \begin_layout Itemize
5081 Stream table clusters are normal clusters, following normal chaining.
5084 \begin_layout Itemize
5085 The stream begnning position is not guarenteed unique.
5086 There can be multiple streams with the same starting position in the file.
5089 \begin_layout Subsection
5093 \begin_layout Itemize
5094 The stream control data consists of entries 4 bytes each:
5098 \begin_layout Itemize
5099 The first 2 bytes of entry gives big-endian length of packet
5102 \begin_layout Itemize
5103 The next byte of entry gives audio length of packet in units of 1/400 s.
5106 \begin_layout Itemize
5107 The last byte is control byte.
5111 \begin_layout Itemize
5112 0 means this entry is not present and the control data ends.
5115 \begin_layout Itemize
5116 1 is valid control entry.
5121 \begin_layout Itemize
5122 The stream control data can also end by running into end of the readable
5127 \begin_layout Itemize
5128 This happens if there happens to be exact multiple of 2048 packets in stream
5129 and number of packets is nonzero.
5133 \begin_layout Itemize
5134 These clusters follow normal chaining.
5137 \begin_layout Subsection
5141 \begin_layout Itemize
5142 Stream codec data consists of raw Opus data packets packed back to back
5143 with nothing in between.
5146 \begin_layout Itemize
5147 Warning: Due to internal limitations, this data must reside in the first
5148 65536 superclusters (that is, the first 1TB of the file).
5151 \begin_layout Subsection
5155 \begin_layout Itemize
5156 The superblock is stored in cluster 1.
5160 \begin_layout Itemize
5161 The first 11 bytes are
5162 \begin_inset Quotes eld
5166 \begin_inset Quotes erd
5172 \begin_layout Itemize
5173 The rest are unused.
5176 \begin_layout Itemize
5177 This cluster 1 is marked as system special.
5180 \begin_layout Section
5181 Known ROM extensions
5184 \begin_layout Itemize
5185 SNES cartridge ROMs: sfc, smc, swc, fig, ufo, sf2, gd3, gd7, dx2, mgd, mgh.
5188 \begin_layout Itemize
5189 DMG cartridge ROMs: dmg, gb.
5192 \begin_layout Itemize
5193 GBC cartridge ROMs: cgb, gbc.
5196 \begin_layout Section
5200 \begin_layout Itemize
5201 The first line must be:
5202 \begin_inset Quotes eld
5206 \begin_inset Quotes erd
5212 \begin_layout Itemize
5213 There is one needed line:
5214 \begin_inset Quotes eld
5218 \begin_inset Quotes erd
5222 This sets system type to <systype>.
5223 The following system types are valid:
5227 \begin_layout Itemize
5231 \begin_layout Itemize
5232 bsx (BS-X non-slotted)
5235 \begin_layout Itemize
5236 bsxslotted (BS-X slotted)
5239 \begin_layout Itemize
5240 sufamiturbo (Sufami Turbo)
5243 \begin_layout Itemize
5244 sgb (Super Game Boy)
5247 \begin_layout Itemize
5251 \begin_layout Itemize
5252 gbc (Game Boy Color)
5255 \begin_layout Itemize
5256 gbc_gba (Game Boy Color with GBA initial register values)
5260 \begin_layout Itemize
5261 Optionally a region can be specified:
5262 \begin_inset Quotes eld
5266 \begin_inset Quotes erd
5270 The following values are valid:
5274 \begin_layout Itemize
5275 autodetect (Autodetect region: snes and sgb only)
5278 \begin_layout Itemize
5279 ntsc (NTSC: snes, bsx, bsxslotted, sufamiturbo, sgb)
5282 \begin_layout Itemize
5283 pal (PAL: snes, sgb)
5286 \begin_layout Itemize
5287 world (World: dmg, gbc, gbc_gba)
5291 \begin_layout Itemize
5292 ROM images are loaded as:
5293 \begin_inset Quotes eld
5297 \begin_inset Quotes erd
5301 The following types are valid:
5305 \begin_layout Itemize
5306 rom (Cartridge ROM in snes, dmg, gbc, gbc_gba.
5307 BIOS in bsx, bsxslotted, sufamiturbo)
5310 \begin_layout Itemize
5311 bsx (Cartridge ROM in bsx, bsxslotted)
5314 \begin_layout Itemize
5315 slot-a (Cartridge ROM in sufamiturbo)
5318 \begin_layout Itemize
5319 slot-b (Cartridge ROM in sufamiturbo)
5323 \begin_layout Itemize
5324 ROM markup can be loaded as:
5325 \begin_inset Quotes eld
5329 \begin_inset Quotes erd
5333 The types valid are the same as for ROMs.
5336 \begin_layout Itemize
5337 Patches can be loaded as
5338 \begin_inset Quotes eld
5341 patch[<offset>] <type> <file>
5342 \begin_inset Quotes erd
5346 The types are the same as for ROMs.
5350 \begin_layout Itemize
5351 Offset is given in form [+-]<number>.
5352 Usually offset is either +0 or -512.
5355 \begin_layout Itemize
5356 Default offset is +0.
5360 \begin_layout Subsection
5364 \begin_layout LyX-Code
5368 \begin_layout LyX-Code
5372 \begin_layout LyX-Code
5373 rom rom speedygonzales.sfc
5376 \begin_layout LyX-Code
5377 patch-512 rom sonicthehedgehog.ips
5380 \begin_layout Subsection
5384 \begin_layout LyX-Code
5388 \begin_layout LyX-Code
5392 \begin_layout LyX-Code
5393 rom rom supergameboy.sfc
5396 \begin_layout LyX-Code
5397 rom dmg megamanV.dmg
5400 \begin_layout Section
5401 Quick'n'dirty encode guide
5404 \begin_layout Enumerate
5405 Start the emulator and load the ROM and movie file.
5408 \begin_layout Enumerate
5409 Set large AVI option 'set-setting avi-large on'
5412 \begin_layout Enumerate
5413 Enable dumping 'dump-avi tmpdump'
5416 \begin_layout Enumerate
5417 Unpause and let it run until you want to end dumping.
5420 \begin_layout Enumerate
5421 Close the emulator (closing the window is the easiest way).
5425 \begin_layout Enumerate
5426 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
5427 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
5430 \begin_layout Enumerate
5431 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
5434 \begin_layout Enumerate
5435 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
5436 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
5439 \begin_layout Enumerate
5440 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
5441 Now final.mkv contains quick'n'dirty encode.
5444 \begin_layout Section
5445 Axis configurations for some gamepad types:
5448 \begin_layout Subsection
5452 \begin_layout Standard
5453 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
5456 \begin_layout LyX-Code
5457 set-axis joystick0axis2 pressure-+
5460 \begin_layout LyX-Code
5461 set-axis joystick0axis5 pressure-+
5464 \begin_layout Itemize
5465 This is needed for SDL only.
5466 EVDEV sets those types correctly.
5469 \begin_layout Subsection
5471 \begin_inset Quotes eld
5475 \begin_inset Quotes erd
5481 \begin_layout Standard
5482 Axes 8-19 should be disabled.
5485 \begin_layout LyX-Code
5486 set-axis joystick0axis8 disabled
5489 \begin_layout LyX-Code
5490 set-axis joystick0axis9 disabled
5493 \begin_layout LyX-Code
5494 set-axis joystick0axis10 disabled
5497 \begin_layout LyX-Code
5498 set-axis joystick0axis11 disabled
5501 \begin_layout LyX-Code
5502 set-axis joystick0axis12 disabled
5505 \begin_layout LyX-Code
5506 set-axis joystick0axis13 disabled
5509 \begin_layout LyX-Code
5510 set-axis joystick0axis14 disabled
5513 \begin_layout LyX-Code
5514 set-axis joystick0axis15 disabled
5517 \begin_layout LyX-Code
5518 set-axis joystick0axis16 disabled
5521 \begin_layout LyX-Code
5522 set-axis joystick0axis17 disabled
5525 \begin_layout LyX-Code
5526 set-axis joystick0axis18 disabled
5529 \begin_layout LyX-Code
5530 set-axis joystick0axis19 disabled
5533 \begin_layout Section
5537 \begin_layout Subsection
5538 Problems from BSNES core:
5541 \begin_layout Itemize
5542 The whole pending save stuff.
5545 \begin_layout Itemize
5546 Lack of layer hiding.
5549 \begin_layout Itemize
5550 It is slow (especially accuracy).
5553 \begin_layout Itemize
5554 Firmwares can't be loaded from ZIP archives.
5557 \begin_layout Subsection
5561 \begin_layout Itemize
5562 Modifiers don't work with pseudo-keys (SDL, EVDEV).
5565 \begin_layout Itemize
5566 Audio for last dumped frame is not itself dumped.
5569 \begin_layout Itemize
5570 Audio in UI is pretty bad in quality if game doesn't run at full speed.
5573 \begin_layout Itemize
5574 No menus, command based interface (SDL).
5577 \begin_layout Itemize
5578 Long commands don't scroll.
5581 \begin_layout Section
5585 \begin_layout Subsection
5589 \begin_layout Itemize
5593 \begin_layout Itemize
5594 Fix dumper video corruption with levels 10-18.
5597 \begin_layout Subsection
5601 \begin_layout Itemize
5605 \begin_layout Itemize
5606 Lots of code cleanups
5609 \begin_layout Itemize
5610 Lua interface to settings
5613 \begin_layout Itemize
5614 Allow specifying AVI borders without Lua
5617 \begin_layout Itemize
5618 Fix scaling if vscale > 1 and originx > 0 (left border exists)
5621 \begin_layout Itemize
5622 on_snoop lua callback
5625 \begin_layout Itemize
5626 Faster movie loading and saving.
5629 \begin_layout Subsection
5633 \begin_layout Itemize
5637 \begin_layout Subsection
5641 \begin_layout Itemize
5645 \begin_layout Itemize
5646 Save jukebox functionality.
5649 \begin_layout Subsection
5653 \begin_layout Itemize
5654 Try to fix some nasty failing movie load edge cases
5657 \begin_layout Itemize
5658 Allow specifying scripts to run on command line.
5661 \begin_layout Subsection
5665 \begin_layout Itemize
5666 Major source code reorganization.
5669 \begin_layout Itemize
5670 Backup savestates before overwriting.
5673 \begin_layout Itemize
5674 Don't crash if loading initial state fails.
5677 \begin_layout Subsection
5681 \begin_layout Itemize
5685 \begin_layout Itemize
5686 Fix author name parsing
5689 \begin_layout Itemize
5690 Fix rerecord counting
5693 \begin_layout Itemize
5694 (SDL) Print messages to console if SDL is uninitialized
5697 \begin_layout Itemize
5698 Add movieinfo program
5701 \begin_layout Itemize
5702 Fix loading movies starting from SRAM.
5705 \begin_layout Subsection
5709 \begin_layout Itemize
5710 Add support for unattended dumping
5713 \begin_layout Itemize
5714 Fix compiling for Win32
5717 \begin_layout Itemize
5718 Don't lock up if sound can't be initialized
5721 \begin_layout Itemize
5722 Strip trailing CR from commands
5725 \begin_layout Itemize
5726 Don't try to do dubious things in global ctors (fix crash on startup)
5729 \begin_layout Subsection
5733 \begin_layout Itemize
5734 Small documentation tweaking
5737 \begin_layout Itemize
5741 \begin_layout Itemize
5742 Fix major bug in modifier matching
5745 \begin_layout Subsection
5749 \begin_layout Itemize
5750 Lots of documentation fixes
5753 \begin_layout Itemize
5754 Use dedicated callbacks for event backcomm., not commands.
5757 \begin_layout Itemize
5758 Ensure that the watchdog is not hit when executing delayed reset.
5761 \begin_layout Itemize
5762 Remove errant tab from joystick message.
5765 \begin_layout Subsection
5769 \begin_layout Itemize
5770 Make autofire operate in absolute time, not linear time
5773 \begin_layout Itemize
5774 Reinitialize controls when resuming from loadstate
5777 \begin_layout Itemize
5778 Some more code cleanups
5781 \begin_layout Itemize
5782 If Lua allocator fails, call OOM_panic()
5785 \begin_layout Itemize
5786 Byte/word/dword/qword sized host memory write/read functions.
5789 \begin_layout Itemize
5790 Dump at correct framerate if dumping interlaced NTSC (height=448).
5793 \begin_layout Subsection
5797 \begin_layout Itemize
5798 Actually include the complete source code
5801 \begin_layout Itemize
5805 \begin_layout Subsection
5809 \begin_layout Itemize
5810 Document {save,start}time.{,sub}second.
5813 \begin_layout Itemize
5814 Intercept time() from bsnes core.
5817 \begin_layout Subsection
5821 \begin_layout Itemize
5822 Allow disabling time() interception (allow build on Mac OS X)
5825 \begin_layout Itemize
5826 Use SDLMain on Mac OS X (make SDL not crash)
5829 \begin_layout Itemize
5830 Disable delayed resets (just plain too buggy for now).
5833 \begin_layout Itemize
5837 \begin_layout Itemize
5838 Use 16-bit for graphics/video instead of 32-bit.
5841 \begin_layout Itemize
5842 gui.rectangle/gui.pixel
5845 \begin_layout Itemize
5849 \begin_layout Itemize
5850 New CSCD writer implementation.
5853 \begin_layout Subsection
5857 \begin_layout Itemize
5858 Fix interaction of * and +.
5861 \begin_layout Itemize
5865 \begin_layout Itemize
5866 Use gettimeofday()/usleep(), these seem portable enough.
5869 \begin_layout Itemize
5870 Move joystick axis manipulation to keymapper code.
5873 \begin_layout Itemize
5874 Changes to how read-only works.
5877 \begin_layout Itemize
5878 Refactor controller input code.
5881 \begin_layout Subsection
5885 \begin_layout Itemize
5886 Fix mouseclick scale compensation.
5889 \begin_layout Itemize
5890 Draw area boundaries correctly in SDL code.
5893 \begin_layout Itemize
5897 \begin_layout Itemize
5898 Fix CSCD output (buffer overrun and race condition).
5901 \begin_layout Subsection
5905 \begin_layout Itemize
5906 JMD dumping support.
5909 \begin_layout Itemize
5910 Allow unattended dumping to JMD.
5913 \begin_layout Itemize
5917 \begin_layout Itemize
5918 Switch back to 32-bit colors.
5921 \begin_layout Itemize
5922 Add Lua function gui.color.
5925 \begin_layout Itemize
5926 Use some new C++11 features in GCC 4.6.
5929 \begin_layout Itemize
5930 Be prepared for core frequency changes.
5933 \begin_layout Itemize
5934 Pass colors in one chunk from Lua.
5937 \begin_layout Subsection
5941 \begin_layout Itemize
5942 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
5943 memory.read_vma() and memory.find_vma().
5946 \begin_layout Itemize
5947 Numerious documentation fixups
5950 \begin_layout Itemize
5951 RTC time format changed
5954 \begin_layout Itemize
5955 Reformat flags display
5958 \begin_layout Itemize
5959 Allow lua package name to be overridden
5962 \begin_layout Itemize
5963 SDUMP (high-quality dumping).
5966 \begin_layout Itemize
5967 Split platform support to plugins.
5970 \begin_layout Itemize
5971 Make all sound plugins support basic sound commands
5974 \begin_layout Itemize
5975 Support portaudio for sound.
5978 \begin_layout Itemize
5979 Allow disable Lua/SDL searching.
5982 \begin_layout Itemize
5983 Upconvert colors when copying lcscreen to screen.
5986 \begin_layout Itemize
5987 Reorganize source tree.
5990 \begin_layout Itemize
5991 Evdev joystick support.
5994 \begin_layout Itemize
5995 Refactor more code into generic window code.
5998 \begin_layout Subsection
6002 \begin_layout Itemize
6003 Refactor message handling.
6006 \begin_layout Itemize
6010 \begin_layout Itemize
6014 \begin_layout Itemize
6015 Finish pending saves before load/quit.
6018 \begin_layout Itemize
6019 Wxwidgets graphics plugin.
6022 \begin_layout Subsection
6026 \begin_layout Itemize
6027 Get rid of win32-crap.[ch]pp.
6030 \begin_layout Itemize
6031 Move files around a lot.
6034 \begin_layout Itemize
6035 Get rid of need for host C++ compiler.
6038 \begin_layout Itemize
6042 \begin_layout Itemize
6043 Refactor inter-component communication.
6046 \begin_layout Itemize
6050 \begin_layout Itemize
6051 Fix crash on multiline aliases.
6054 \begin_layout Itemize
6055 Load/Save settings in wxwidgets gui.
6058 \begin_layout Subsection
6062 \begin_layout Itemize
6063 Patch problems in bsnes core
6066 \begin_layout Itemize
6067 SNES is little-endian, not big-endian!
6070 \begin_layout Itemize
6071 Fix memory corruption in lcscreen::load()
6074 \begin_layout Subsection
6078 \begin_layout Itemize
6079 Fix interpretting repeat counts in rrdata loading.
6082 \begin_layout Itemize
6083 New lua callback: on_frame()
6086 \begin_layout Itemize
6087 Remove calls to runtosave() that aren't supposed to be there
6090 \begin_layout Itemize
6091 Lua function: movie.read_rtc()
6094 \begin_layout Itemize
6095 Ignore src/fonts/font.cpp
6098 \begin_layout Itemize
6099 Fix more bsnes core problems
6102 \begin_layout Itemize
6103 Control bsnes random seeding
6106 \begin_layout Itemize
6110 \begin_layout Itemize
6111 Some bsnes core debugging features (state dump and state hash)
6114 \begin_layout Itemize
6115 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
6116 it was 'lsnes rr0-beta21').
6119 \begin_layout Subsection
6123 \begin_layout Itemize
6124 Fix memory corruption due to macro/field mixup
6127 \begin_layout Itemize
6128 search-memory update
6131 \begin_layout Itemize
6132 Allow direct-mapped framebuffer
6135 \begin_layout Itemize
6136 SDL: Use SDL_ANYFORMAT if possible
6139 \begin_layout Itemize
6140 SDMP2SOX: 2s delay modes.
6143 \begin_layout Itemize
6147 \begin_layout Itemize
6148 Use sed -E, not sed -r.
6149 Fixes building on Mac OS X.
6152 \begin_layout Itemize
6153 Wxwidgets: Save jukebox on exit
6156 \begin_layout Itemize
6157 Fix RTC if using load-movie on savestate.
6160 \begin_layout Itemize
6161 Fix crash related to full console mode.
6164 \begin_layout Subsection
6168 \begin_layout Itemize
6169 Wxwidgets: Allow bringing application to foreground on Mac OS X.
6172 \begin_layout Itemize
6173 Wxwidgets: Allow compiling on Mac OS X.
6176 \begin_layout Itemize
6177 Use movie compare instead of movie hashing (faster save/load).
6180 \begin_layout Itemize
6184 \begin_layout Subsection
6188 \begin_layout Itemize
6189 sdmp2sox: Pad soundtrack if using -l or -L.
6192 \begin_layout Itemize
6193 sdmp2sox: Fix NTSC overscan.
6196 \begin_layout Itemize
6197 sdmp2sox: Add AR correction mode.
6200 \begin_layout Itemize
6201 call lua_close() when exiting.
6204 \begin_layout Itemize
6205 Fix zip_writer bug causing warnings from info-zip and error from advzip.
6208 \begin_layout Subsection
6212 \begin_layout Itemize
6213 Fix IPS patching code (use bsnes core IPS patcher).
6216 \begin_layout Itemize
6217 Implement BPS patching (using bsnes core IPS patcher).
6220 \begin_layout Itemize
6221 Add feature to load headered ROMs.
6224 \begin_layout Subsection
6228 \begin_layout Itemize
6229 Show command names when showing keybindings
6232 \begin_layout Subsection
6236 \begin_layout Itemize
6237 Fix pause-on-end to be actually controllable
6240 \begin_layout Itemize
6241 SDL: Poll all events in queue, not just first one (fixes slowness in command
6245 \begin_layout Itemize
6246 Wxwidgets: Fix ROM loading.
6249 \begin_layout Subsection
6253 \begin_layout Itemize
6254 Lua: Add gui.textH, gui.textV, gui.textHV
6257 \begin_layout Itemize
6258 Fix text colors on SDL on Mac OS X
6261 \begin_layout Itemize
6262 Mode 'F' for finished in readonly mode.
6265 \begin_layout Itemize
6269 \begin_layout Itemize
6270 Reliably pause after skip poll
6273 \begin_layout Itemize
6274 Split UI and core into their own threads
6277 \begin_layout Subsection
6281 \begin_layout Itemize
6282 Remove leftover dummy SRAM slot
6285 \begin_layout Itemize
6286 Fix controller numbers.
6289 \begin_layout Subsection
6293 \begin_layout Itemize
6294 Fix lsnes-dumpavi after interface change.
6297 \begin_layout Itemize
6298 Also give BSNES patches for v085.
6301 \begin_layout Itemize
6302 Pack movie data in memory.
6305 \begin_layout Subsection
6309 \begin_layout Itemize
6310 Fix framecount/length given when loading movies.
6313 \begin_layout Itemize
6314 Controller command memory leak fixes.
6317 \begin_layout Itemize
6318 Don't leak palette if freeing screen object.
6321 \begin_layout Subsection
6325 \begin_layout Itemize
6329 \begin_layout Itemize
6330 Wxwidgets: Allow controlling dumper from the menu.
6333 \begin_layout Subsection
6337 \begin_layout Itemize
6338 Rewrite parts of manual
6341 \begin_layout Itemize
6342 Lua: Make it work with Lua 5.2.
6345 \begin_layout Subsection
6349 \begin_layout Itemize
6350 Win32: Fix compile errors.
6353 \begin_layout Subsection
6357 \begin_layout Itemize
6358 Refactor controller input code.
6361 \begin_layout Itemize
6362 Fix crash when using command line on SDL / Mac OS X.
6365 \begin_layout Subsection
6369 \begin_layout Itemize
6370 Delete core/coroutine (obsolete)
6373 \begin_layout Itemize
6374 Lag input display by one frame.
6377 \begin_layout Itemize
6378 Rewind movie to beginning function.
6381 \begin_layout Itemize
6382 Fix wrong frame number reported to Lua when repainting after loadstate
6385 \begin_layout Itemize
6386 Support UI editing of jukebox
6389 \begin_layout Itemize
6390 Wxwidgets: Save settings on exit.
6393 \begin_layout Itemize
6394 Support ${project} for filenames
6397 \begin_layout Itemize
6398 SDL: Fix command history
6401 \begin_layout Subsection
6405 \begin_layout Itemize
6406 Fix some order-of-global-ctor bugs.
6409 \begin_layout Subsection
6413 \begin_layout Itemize
6414 Fix crashes when quitting on Win32.
6417 \begin_layout Subsection
6421 \begin_layout Itemize
6422 EVDEV: Queue keypresses from joystick, don't send directly
6425 \begin_layout Itemize
6426 Wxwidgets: Load-Preserve that actually works.
6429 \begin_layout Subsection
6433 \begin_layout Itemize
6434 Wxwidgets: GUI for memory search.
6437 \begin_layout Itemize
6438 Warn about using synchronous queue in UI callback.
6441 \begin_layout Subsection
6445 \begin_layout Itemize
6446 Remember last saved file for each ROM
6449 \begin_layout Itemize
6450 Support MT dumping via boost.
6453 \begin_layout Itemize
6457 \begin_layout Itemize
6461 \begin_layout Itemize
6462 Make mouse be ordinary input instead of special-casing
6465 \begin_layout Itemize
6466 SDL: Don't screw up commands with NUL codepoints.
6469 \begin_layout Subsection
6473 \begin_layout Itemize
6474 Merge status panel and main window
6477 \begin_layout Itemize
6478 True movie slot support (the rest of it)
6481 \begin_layout Itemize
6482 SDL: Fix compilation error
6485 \begin_layout Itemize
6486 Elminate cross calls in dump menu code.
6489 \begin_layout Subsection
6493 \begin_layout Itemize
6494 Cancel pending saves command
6497 \begin_layout Itemize
6498 Wxwidgets: Code refactoring
6501 \begin_layout Itemize
6502 Wxwidgets: Fix system -> reset
6505 \begin_layout Itemize
6506 Wxwidgets: Read watch expressions in the right thread
6509 \begin_layout Subsection
6513 \begin_layout Itemize
6514 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
6518 \begin_layout Itemize
6519 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
6522 \begin_layout Itemize
6523 Don't append trailing '-' to prefix when saving movie.
6526 \begin_layout Itemize
6527 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
6530 \begin_layout Subsection
6534 \begin_layout Itemize
6535 Document memory watch syntax.
6538 \begin_layout Subsection
6542 \begin_layout Itemize
6543 Fix unattended dumping (lsnes-dumpavi)
6546 \begin_layout Itemize
6550 \begin_layout Itemize
6551 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
6554 \begin_layout Itemize
6555 Add option to control sample rate preturbation in AVI dumper
6558 \begin_layout Subsection
6562 \begin_layout Itemize
6563 Wxwidgets: Fix dumper submodes
6566 \begin_layout Itemize
6567 Set core controller types before loadstate
6570 \begin_layout Subsection
6574 \begin_layout Itemize
6575 Fix compiling with bsnes v086.
6578 \begin_layout Subsection
6582 \begin_layout Itemize
6583 Don't prompt before quitting
6586 \begin_layout Itemize
6587 Start unpaused, preserve pause/unpause over load.
6590 \begin_layout Itemize
6591 Try to autodetect if ROM is headered.
6594 \begin_layout Itemize
6595 Wxwidgets: Only bring up ROM patching screen if specifically requested.
6598 \begin_layout Itemize
6599 Allow configuring some hotkeys.
6602 \begin_layout Subsection
6606 \begin_layout Itemize
6607 Lots of code cleanups
6610 \begin_layout Itemize
6611 Fix JMD compression (JMD dumping was broken)
6614 \begin_layout Itemize
6615 Don't crash if Lua C function throws an exception.
6618 \begin_layout Itemize
6619 Support bitmap drawing in Lua.
6622 \begin_layout Itemize
6623 Fix bsnes v085/v086 patches.
6626 \begin_layout Itemize
6627 Improve stability on win32.
6630 \begin_layout Subsection
6634 \begin_layout Itemize
6635 Don't corrupt movie if movie length is integer multiple of frames per page.
6638 \begin_layout Subsection
6642 \begin_layout Itemize
6643 New Lua hooks: on_rewind, on_frame_emulated, on_idle, on_timer
6646 \begin_layout Itemize
6647 New Lua functions: emulator_ready(), utime(), set_idle_timeout(), set_timer_time
6648 out(), bit.extract(), bit.value(), input.geta(), input.seta() and input.controllertyp
6652 \begin_layout Itemize
6653 Wxwidgets: Fix internal focus lost (hotkeys stop working)
6656 \begin_layout Itemize
6657 Wxwidgets: Fix broken modifiers
6660 \begin_layout Itemize
6661 on_paint has parameter now.
6664 \begin_layout Itemize
6665 Optional initital fill for bitmaps
6668 \begin_layout Itemize
6669 Fix palette changing.
6672 \begin_layout Itemize
6673 Optimize rendering a bit.
6676 \begin_layout Itemize
6680 \begin_layout Subsection
6684 \begin_layout Itemize
6685 Movieinfo: Fix display of port #2 type.
6688 \begin_layout Itemize
6689 Call on_input() after loadstate.
6692 \begin_layout Subsection
6696 \begin_layout Itemize
6697 Fix writing port2 data to movie.
6700 \begin_layout Itemize
6701 Fix SRAM handling with Bsnes v087.
6704 \begin_layout Subsection
6708 \begin_layout Itemize
6709 Library loading support
6712 \begin_layout Itemize
6713 Built-in TSCC encoder
6716 \begin_layout Itemize
6717 Hi-color (256T colors) dumping.
6720 \begin_layout Itemize
6721 Dump over TCP/IP(v6)
6724 \begin_layout Itemize
6725 Hidable status panel
6728 \begin_layout Itemize
6732 \begin_layout Itemize
6733 Adjustable sound volume
6736 \begin_layout Itemize
6740 \begin_layout Itemize
6741 Allow DnD into filename boxes
6744 \begin_layout Itemize
6748 \begin_layout Itemize
6749 Portaudio: Fix speaker popping at start
6752 \begin_layout Itemize
6756 \begin_layout Itemize
6757 Speed adjustment menu
6760 \begin_layout Itemize
6761 Win32 joystick support
6764 \begin_layout Itemize
6765 Lua: gui.rainbow and gui.box
6768 \begin_layout Itemize
6769 Split key lists into classes (the key list was large!)
6772 \begin_layout Itemize
6773 More save slots support
6776 \begin_layout Itemize
6777 Wxwidgets (wxJoystick) joystick support
6780 \begin_layout Subsection
6784 \begin_layout Itemize
6785 Lots of internal joystick refactoring
6788 \begin_layout Itemize
6789 Evdev: Add mapping for BTN_TOOL_QUINTTAP
6792 \begin_layout Itemize
6793 Wxwidgets: Settings mode (open settings without ROM)
6796 \begin_layout Itemize
6797 Wxwidgets: Prompt key to use option
6800 \begin_layout Itemize
6801 Wxwidgets: Fix crash if key goes away underneath
6804 \begin_layout Itemize
6805 Wxwidgets: Fix mouse position in presence of scaling
6808 \begin_layout Itemize
6809 AVI dumper: Mode 4 (high-quality resampling to common rate using SRC)
6812 \begin_layout Itemize
6813 Wxwidgets: Redesign hotkeys dialog to avoid tree control (tree control doesn't
6814 seem to work well on WinXP)
6817 \begin_layout Itemize
6818 Start paused option.
6821 \begin_layout Subsection
6825 \begin_layout Itemize
6829 \begin_layout Itemize
6830 lsnes-dumpavi: Start Lua before starting dumper
6833 \begin_layout Itemize
6834 AVI: Fix secondary audio in mode 4.
6837 \begin_layout Subsection
6841 \begin_layout Itemize
6842 AVI: Refactor ZMBV a bit.
6845 \begin_layout Itemize
6846 Fix error reading analog values from movie file
6849 \begin_layout Subsection
6853 \begin_layout Itemize
6854 Delayed reset support
6857 \begin_layout Itemize
6858 Lua: memory.hash_region
6861 \begin_layout Subsection
6865 \begin_layout Itemize
6866 Rework the build system
6869 \begin_layout Itemize
6870 Typing input support
6873 \begin_layout Itemize
6874 Fix building with bsnes v086 and v087.
6877 \begin_layout Itemize
6878 SDL: Save settings on exit
6881 \begin_layout Itemize
6882 SDL: Command to enter command line mode with given command.
6885 \begin_layout Itemize
6886 SDL: More advanced command editing.
6889 \begin_layout Subsection
6893 \begin_layout Itemize
6895 \begin_inset Quotes eld
6898 arrow keys and enter don't work
6899 \begin_inset Quotes erd
6905 \begin_layout Itemize
6909 \begin_layout Itemize
6910 Show mode changes due to rewinding.
6913 \begin_layout Itemize
6914 Unsafe rewind support
6917 \begin_layout Itemize
6918 Fix directory transversal.
6921 \begin_layout Subsection
6925 \begin_layout Itemize
6926 AVI: Sound mode 5 (48kHz high-quality)
6929 \begin_layout Itemize
6933 \begin_layout Itemize
6934 Map the SNES bus into address space
6937 \begin_layout Itemize
6938 Fix loading memory watch files with CRLF line endings
6941 \begin_layout Subsection
6945 \begin_layout Itemize
6946 Map bsnes internal state into memory space
6949 \begin_layout Itemize
6951 \begin_inset Quotes eld
6954 click on panel wedges the emulator
6955 \begin_inset Quotes erd
6961 \begin_layout Itemize
6962 DnD movies/saves on the main window.
6965 \begin_layout Subsection
6969 \begin_layout Itemize
6970 Split core bindings into own module.
6973 \begin_layout Itemize
6974 Remember invalid settings
6977 \begin_layout Itemize
6978 Support for modified Gambatte core for GB/GBC emulation.
6981 \begin_layout Itemize
6982 Reload/swap ROM function
6985 \begin_layout Subsection
6989 \begin_layout Itemize
6990 Fix step poll function
6993 \begin_layout Subsection
6997 \begin_layout Itemize
6998 Non-insane savestate anchoring
7001 \begin_layout Subsection
7005 \begin_layout Itemize
7006 More Memory search methods
7009 \begin_layout Itemize
7010 Preserve movie if loading in RO mode.
7013 \begin_layout Itemize
7014 Fix a obscure case in timeline check
7017 \begin_layout Itemize
7018 Revamp the entiere ROM loading code
7021 \begin_layout Itemize
7025 \begin_layout Itemize
7029 \begin_layout Itemize
7030 Standalone hotkey config dialog
7033 \begin_layout Itemize
7034 Show bindings in more user-friendly format
7037 \begin_layout Subsection
7041 \begin_layout Itemize
7045 \begin_layout Itemize
7046 Fix uninitialized variables in bsnes v085
7049 \begin_layout Subsection
7053 \begin_layout Itemize
7054 Merge gambatte core into mainline (from its own branch)
7057 \begin_layout Itemize
7058 Wxwidgets: Show expected dump file formats
7061 \begin_layout Itemize
7062 Memory watch: Data typing
7065 \begin_layout Itemize
7066 lsnes internal MMIO area.
7069 \begin_layout Itemize
7070 Wxwidgets: New memory watch editor
7073 \begin_layout Itemize
7074 Hexadecimal memory watches
7077 \begin_layout Itemize
7078 Wxwidgets: Monospaced panel
7081 \begin_layout Itemize
7082 Wxwidgets: Split memory watches in panel
7085 \begin_layout Itemize
7086 Wxwidgets: Disable VMAs in memory search
7089 \begin_layout Itemize
7090 lsnes-dumpavi: Fix speed bug
7093 \begin_layout Itemize
7094 Movie subtitle support
7097 \begin_layout Itemize
7098 Fix rerecord count reporting
7101 \begin_layout Itemize
7102 Don't trash movie when loading in readonly mode.
7105 \begin_layout Subsection
7109 \begin_layout Itemize
7110 Wxwidgets: Fix crashes on closing settings dialogs on Mac OS X.
7113 \begin_layout Itemize
7114 Fix build on Mac OS X.
7117 \begin_layout Itemize
7121 \begin_layout Itemize
7122 Wxwidgets: Hidable messages window
7125 \begin_layout Itemize
7129 \begin_layout Itemize
7130 Bsnes: Support inconsistent saves
7133 \begin_layout Itemize
7134 Bsnes: Allow simulating saving every frame
7137 \begin_layout Itemize
7138 Fix desync if savestate is loaded in readonly mode in certain conditions.
7141 \begin_layout Itemize
7142 Wxwidgets: Fix save dialogs on Mac OS X.
7145 \begin_layout Itemize
7146 Wxwidgets: Fix insane status width on Win32.
7149 \begin_layout Itemize
7150 Wxwidgets: Fix autohold processing to be faster.
7153 \begin_layout Itemize
7154 Wxwidgets: Allow loading ROMs and movies from commandline.
7157 \begin_layout Subsection
7161 \begin_layout Itemize
7162 Be a bit smarter with --load
7165 \begin_layout Itemize
7166 Rewrote higher-level parts of audio system
7169 \begin_layout Itemize
7170 Tool to build commentary tracks
7173 \begin_layout Itemize
7177 \begin_layout Itemize
7178 Gambatte: Add support for SVN358
7181 \begin_layout Itemize
7182 Use builtin font when rendering status panel.
7185 \begin_layout Itemize
7186 Option to detach memory watch to its own window.
7189 \begin_layout Itemize
7190 Recent ROMs/Movies menu
7193 \begin_layout Itemize
7197 \begin_layout Itemize
7198 Useful lag counter for SNES games that autopoll
7201 \begin_layout Itemize
7202 Fix buffer overflow in gambatte sound output
7205 \begin_layout Subsection
7209 \begin_layout Itemize
7210 Don't blow up on wxGTK if the window is hidden somehow
7213 \begin_layout Itemize
7214 Support simultaneous drop of ROM and movie.
7217 \begin_layout Itemize
7218 Gambatte: Don't save spurious SRAMs.
7221 \begin_layout Itemize
7222 Make SGB ROMs actually usable.
7225 \begin_layout Itemize
7226 Fix so that saved movies appear in recent movies.
7229 \begin_layout Itemize
7230 Don't open multiple commentary editors at once.