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.
75 Syntax: lsnes.exe <rom-options> <misc-options> (<new-session-options>|<filename>)
79 Syntax: lsnes-avidump <dump-options> <misc-options> <rom-options> <filename>
83 Syntax: movieinfo.exe <filename>
86 \begin_layout Subsection
90 \begin_layout Standard
91 These options control loading the ROM.
94 \begin_layout Subsubsection
98 \begin_layout Standard
99 Load <file> (SFC file format) as main SNES cartridge ROM.
100 This is the game ROM for SNES and cartridge BIOS for other types.
104 \begin_layout Subsubsection
108 \begin_layout Standard
109 Set the mapping XML file for main cartridge ROM.
110 If not specified, defaults are used.
113 \begin_layout Subsubsection
117 \begin_layout Standard
118 Load <file> (BS file format) as BS-X non-slotted flash memory.
119 Also sets system type to BS-X non-slotted (not compatible with --bsxslotted=<fi
120 le>, --dmg=<file>, --slot-a=<file> nor --slot-b=<file>).
123 \begin_layout Subsubsection
127 \begin_layout Standard
128 Set mapping XML file for BS-X non-slotted flash memory.
129 If not specified, defaults are used.
130 Only can be used together with --bsx=<file>.
133 \begin_layout Subsubsection
137 \begin_layout Standard
138 Load <file> (BS file format) as BS-X slotted flash memory.
139 Also sets system type to BS-X slotted (not compatible with --bsx=<file>,
140 --dmg=<file>, --slot-a=<file> nor --slot-b=<file>).
143 \begin_layout Subsubsection
144 --bsxslotted-xml=<file>
147 \begin_layout Standard
148 Set mapping XML file for BS-X slotted flash memory.
149 If not specified, defaults are used.
150 Only can be used together with --bsxslotted=<file>.
153 \begin_layout Subsubsection
157 \begin_layout Standard
158 Load <file> (GB file format) as Game Boy ROM.
159 Also sets system type to SGB (not compatible with --bsx=<file>, --bsxslotted=<f
160 ile>, --slot-a=<file> nor --slot-b=<file>).
163 \begin_layout Subsubsection
167 \begin_layout Standard
168 Set mapping XML file for Game Boy ROM.
169 If not specified, defaults are used.
170 Only can be used together with --dmg=<file>.
173 \begin_layout Subsubsection
177 \begin_layout Standard
178 Load <file> (ST file format) as Sufami turbo cartridge A ROM.
179 Also sets system type to Sufami Turbo (not compatible with --bsx=<file>,
180 --bsxslotted=<file> nor --dmg=<file>).
183 \begin_layout Subsubsection
187 \begin_layout Standard
188 Set mapping XML file for Sufami turbo cartridge A ROM.
189 If not specified, defaults are used.
190 Only can be used together with --slot-a=<file>.
193 \begin_layout Subsubsection
197 \begin_layout Standard
198 Load <file> (ST file format) as Sufami turbo cartridge B ROM.
199 Also sets system type to Sufami Turbo (not compatible with --bsx=<file>,
200 --bsxslotted=<file> nor --dmg=<file>).
203 \begin_layout Subsubsection
207 \begin_layout Standard
208 Set mapping XML file for Sufami turbo cartridge B ROM.
209 If not specified, defaults are used.
210 Only can be used together with --slot-b=<file>.
213 \begin_layout Subsubsection
217 \begin_layout Standard
218 Apply IPS patch <file> to main cartridge ROM.
219 Requires --rom=<file>.
222 \begin_layout Subsubsection
226 \begin_layout Standard
227 Apply IPS patch <file> to main cartridge ROM mapping XML.
228 Requires --rom-xml=<file>.
231 \begin_layout Subsubsection
235 \begin_layout Standard
236 Apply IPS patch <file> to BS-X non-slotted flash.
237 Requires --bsx=<file>.
240 \begin_layout Subsubsection
244 \begin_layout Standard
245 Apply IPS patch <file> to BS-X non-slotted flash mapping XML.
246 Requires --bsx-xml=<file>.
249 \begin_layout Subsubsection
250 --ips-bsxslotted=<file>
253 \begin_layout Standard
254 Apply IPS patch <file> to BS-X slotted flash.
255 Requires --bsxslotted=<file>.
258 \begin_layout Subsubsection
259 --ips-bsxslotted-xml=<file>
262 \begin_layout Standard
263 Apply IPS patch <file> to BS-X slotted flash mapping XML.
264 Requires --bsxslotted-xml=<file>.
267 \begin_layout Subsubsection
271 \begin_layout Standard
272 Apply IPS patch <file> to Game Boy ROM.
273 Requires --dmg=<file>.
276 \begin_layout Subsubsection
280 \begin_layout Standard
281 Apply IPS patch <file> to Game Boy ROM mapping XML.
282 Requires --dmg-xml=<file>.
285 \begin_layout Subsubsection
289 \begin_layout Standard
290 Apply IPS patch <file> to Sufami turbo cartridge A ROM.
291 Requires --slot-a=<file>.
294 \begin_layout Subsubsection
295 --ips-slot-a-xml=<file>
298 \begin_layout Standard
299 Apply IPS patch <file> to Sufami turbo cartridge A ROM mapping XML.
300 Requires --slot-a-xml=<file>.
303 \begin_layout Subsubsection
307 \begin_layout Standard
308 Apply IPS patch <file> to Sufami turbo cartridge B ROM.
309 Requires --slot-b=<file>.
312 \begin_layout Subsubsection
313 --ips-slot-b-xml=<file>
316 \begin_layout Standard
317 Apply IPS patch <file> to Sufami turbo cartridge B ROM mapping XML.
318 Requires --slot-b-xml=<file>.
321 \begin_layout Subsubsection
322 --ips-offset=<offset>
325 \begin_layout Standard
326 Set IPS apply offset to <offset> (can be negative).
327 IPS apply offset is added to all addresses inside IPS file before applying.
328 If the resulting address is negative, write is ignored (with a warning).
329 If resulting address exceeds ROM size, the ROM is extended.
332 \begin_layout Subsubsection
336 \begin_layout Standard
337 Force ROM to be considered PAL-only (warning: Will cause error if used on
338 anything except SNES and SGB).
341 \begin_layout Subsubsection
345 \begin_layout Standard
346 Force ROM to be considered NTSC-only (default for everything except SNES
350 \begin_layout Subsection
351 New session options (lsnes.exe only)
354 \begin_layout Standard
355 If filename is not specified, new session is started.
356 These options control the properties of new session:
359 \begin_layout Subsubsection
363 \begin_layout Standard
368 \begin_layout Itemize
369 none: No device connected
372 \begin_layout Itemize
373 gamepad: One gamepad (the default)
376 \begin_layout Itemize
377 multitap: Four gamepads (warning: makes most games refuse to start)
380 \begin_layout Itemize
384 \begin_layout Subsubsection
388 \begin_layout Standard
393 \begin_layout Itemize
394 none: No device connected (the default)
397 \begin_layout Itemize
401 \begin_layout Itemize
402 multitap: Four gamepads.
405 \begin_layout Itemize
409 \begin_layout Itemize
410 superscope: Super Scope
413 \begin_layout Itemize
414 justifier: One justifier
417 \begin_layout Itemize
418 justifiers: Two justifiers
421 \begin_layout Subsubsection
425 \begin_layout Standard
426 Set the name of game to <name>
429 \begin_layout Subsubsection
433 \begin_layout Standard
434 Add author with full name of <name> (no nickname).
437 \begin_layout Subsubsection
441 \begin_layout Standard
442 Add author with nickname of <name> (no full name).
445 \begin_layout Subsubsection
446 --author=<fullname>|<nickname>
449 \begin_layout Standard
450 Add author with full name of <fullname> and nickname of <nickname>.
453 \begin_layout Subsubsection
457 \begin_layout Standard
458 Set RTC second (0 is 1st January 1970 00:00:00Z).
461 \begin_layout Subsubsection
462 --rtc-subsecond=<value>
465 \begin_layout Standard
471 \begin_layout Subsection
475 \begin_layout Standard
476 If filename is specified on command line, it is loaded as initial state
477 (instead of constructing one).
478 Mandatory for lsnes-avidump.exe and movieinfo.exe.
481 \begin_layout Subsection
486 \begin_layout Subsubsection
487 --run=<file> (lsnes.exe only)
490 \begin_layout Standard
491 After running main RC file, run this file.
492 If multiple are specified, these execute in order specified.
495 \begin_layout Subsection
496 dump options (lsnes-avidump.exe only)
499 \begin_layout Subsubsection
503 \begin_layout Standard
506 \begin_inset Quotes eld
510 \begin_inset Quotes erd
516 \begin_layout Subsubsection
520 \begin_layout Standard
521 Set compression level (0-18).
525 \begin_layout Subsubsection
529 \begin_layout Standard
530 Set number of frames to dump.
534 \begin_layout Subsubsection
538 \begin_layout Standard
539 Run specified lua script (lsnes-avidump.exe does not have initialization
543 \begin_layout Subsubsection
547 \begin_layout Standard
548 Use JMD dumping instead of AVI dumping.
551 \begin_layout Section
552 Startup file lsnes.rc
555 \begin_layout Standard
556 Upon startup, lsnes (lsnes.exe only) executes file lsnes.rc as commands.
557 This file is located in:
560 \begin_layout Itemize
565 lsnes.rc (if %APPDATA% exists)
568 \begin_layout Itemize
569 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
572 \begin_layout Itemize
573 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
576 \begin_layout Itemize
577 All: ./lsnes.rc (fallback default).
580 \begin_layout Standard
581 If leading directories do not exist, attempt to create them is made.
584 \begin_layout Section
585 Game internal commands
588 \begin_layout Itemize
589 Commands beginning with '*' invoke the corresponding command without alias
593 \begin_layout Itemize
594 If command starts with '+' (after possible '*'), the command is executed
595 as-is when button is pressed, and when button is released, it is executed
596 with '+' replaced by '-'.
599 \begin_layout Subsection
603 \begin_layout Standard
604 Settings control various aspects of emulator behaviour.
607 \begin_layout Subsubsection
608 set-setting <setting> <value>
611 \begin_layout Standard
612 Sets setting <setting> to value <value> (may be empty).
615 \begin_layout Subsubsection
616 unset-setting <setting>
619 \begin_layout Standard
620 Try to unset setting <setting> (not all settings can be unset).
623 \begin_layout Subsubsection
624 get-setting <setting>
627 \begin_layout Standard
628 Read value of setting <setting>
631 \begin_layout Subsubsection
635 \begin_layout Standard
636 Print names and values of all settings.
639 \begin_layout Subsection
643 \begin_layout Standard
644 Keybindings bind commands or aliases to keys (or pseudo-keys).
648 \begin_layout Standard
652 \begin_layout Itemize
653 Do not bind edge active (+/-) commands to keys with modifiers, that won't
657 \begin_layout Itemize
658 Names of keys and modifiers are platform-dependent.
661 \begin_layout Itemize
662 Be careful before binding pseudo-keys (such as joystick axes, buttons or
663 hats) with modifiers.
664 That may or may not work right.
667 \begin_layout Subsubsection
668 bind-key [<mod>/<modmask>] <key> <command>
671 \begin_layout Standard
672 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
673 ed list) are set as <mod> (comma-seperated list).
676 \begin_layout Standard
677 The names of keys and modifiers are platform-dependent.
680 \begin_layout Subsubsection
681 unbind-key [<mod>/<modmask>] <key>
684 \begin_layout Standard
685 Unbind command from <key> (with specified <mod> and <modmask>).
688 \begin_layout Subsubsection
689 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
690 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
691 [plus=<val>] [tolerance=<val>]
694 \begin_layout Standard
695 Set axis parameters for axis <axis>.
698 \begin_layout Itemize
699 disabled: Disable axis
702 \begin_layout Itemize
706 \begin_layout Itemize
707 axis-inverse: Inverse axis
710 \begin_layout Itemize
711 pressure0-: Pressure sensitive.
712 Released at 0, pressed at -.
715 \begin_layout Itemize
716 pressure0+: Pressure sensitive.
717 Released at 0, pressed at +.
720 \begin_layout Itemize
721 pressure-0: Pressure sensitive.
722 Released at -, pressed at 0.
725 \begin_layout Itemize
726 pressure-+: Pressure sensitive.
727 Released at -, pressed at +.
730 \begin_layout Itemize
731 pressure+0: Pressure sensitive.
732 Released at +, pressed at 0.
735 \begin_layout Itemize
736 pressure+-: Pressure sensitive.
737 Released at +, pressed at -.
740 \begin_layout Itemize
741 minus=<val>: Calibration at extreme minus position (-32768-32767)
744 \begin_layout Itemize
745 zero=<val>: Calibration at neutral position (-32768-32767)
748 \begin_layout Itemize
749 plus=<val>: Calibration at extreme plus position (-32768-32767)
752 \begin_layout Itemize
753 tolerance=<value>: Center band tolerance (0<x<1).
754 The smaller the value, the more sensitive the control is.
757 \begin_layout Subsubsection
761 \begin_layout Standard
762 Print all key bindings in effect.
765 \begin_layout Subsection
769 \begin_layout Standard
770 Aliases bind command to sequence of commands.
771 After alias has been defined, it replaces the command it shadows.
774 \begin_layout Standard
778 \begin_layout Itemize
779 You can't alias command to itself.
782 \begin_layout Itemize
783 Aliases starting with +/- are edge active just like ordinary commands starting
787 \begin_layout Itemize
788 One command can be aliased to multiple commands.
791 \begin_layout Subsubsection
792 alias-command <command> <expansion>
795 \begin_layout Standard
796 Append <expansion> to alias <command>.
797 If alias does not already exist, it is created.
800 \begin_layout Subsubsection
801 unalias-command <command>
804 \begin_layout Standard
805 Clear alias expansion for <command>.
808 \begin_layout Subsubsection
812 \begin_layout Standard
813 Print all aliases and their expansions in effect.
816 \begin_layout Subsection
817 run-script <script> (implemented for wxwidgets)
820 \begin_layout Standard
821 Run <script> as if commands were entered on the command line.
824 \begin_layout Subsection
828 \begin_layout Standard
829 Following commands control AVI video dumping:
832 \begin_layout Subsubsection
833 dump-avi <level> <prefix>
836 \begin_layout Standard
837 Dump AVI video to prefix <prefix> at level <level> (0-18).
841 \begin_layout Itemize
842 The codec is Camstudio Codec in gzip mode.
845 \begin_layout Itemize
846 Encoder and muxer are internal, available on all platforms.
849 \begin_layout Itemize
850 Audio enable/disable and framerate has no effect.
853 \begin_layout Itemize
854 Levels 10-18 are not compatible with AVISource.
857 \begin_layout Itemize
858 Recomended level is 7 if decoded by AVISource.
861 \begin_layout Itemize
862 Recomended level is 16 if decoded by ffmpeg, mencoder or FFMpegSource.
865 \begin_layout Itemize
866 Dumps of low-res PAL games are 256x239 (with all the consequences odd height
870 \begin_layout Itemize
871 The audio dumped to .avi is low-quality version.
872 The high-quality version is dumped to .sox file.
875 \begin_layout Subsubsection
879 \begin_layout Standard
880 End current AVI video dump (closing the emulator also closes the dump).
883 \begin_layout Subsection
887 \begin_layout Standard
888 Following commands control JMD video dumping:
891 \begin_layout Subsubsection
892 dump-jmd <level> <file>
895 \begin_layout Standard
896 Dump JMD video to file <file> at level <level> (0-9).
899 \begin_layout Subsubsection
903 \begin_layout Standard
904 End the current JMD dump in progress.
907 \begin_layout Subsection
911 \begin_layout Standard
912 <address> may be decimal or hexadecimal (prefixed with '0x').
913 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
917 \begin_layout Standard
918 The available element <sizes> are:
921 \begin_layout Itemize
925 \begin_layout Itemize
929 \begin_layout Itemize
933 \begin_layout Itemize
937 \begin_layout Standard
938 When reading RAM and ROM, multi-byte reads/writes are big-endian.
939 When dealing with DSP memory, multi-byte reads/writes are native-endian
940 (do not use operand sizes exceeding DSP bitness, except dword is OK for
944 \begin_layout Subsubsection
945 read-<size> <address>
948 \begin_layout Standard
949 Read the value of byte in <address>.
952 \begin_layout Subsubsection
953 read-s<size> <address>
956 \begin_layout Standard
957 Read the value of signed byte in <address>.
960 \begin_layout Subsubsection
961 write-<size> <address> <value>
964 \begin_layout Standard
965 Write <value> to byte in address <address>.
968 \begin_layout Subsubsection
972 \begin_layout Standard
973 Reset the memory search
976 \begin_layout Subsubsection
980 \begin_layout Standard
981 Print number of candidates remaining
984 \begin_layout Subsubsection
988 \begin_layout Standard
989 Print all candidates remaining
992 \begin_layout Subsubsection
993 search-memory <usflag><sizeflag><op>
996 \begin_layout Standard
997 Searches memory for addresses satisfying criteria.
1000 \begin_layout Standard
1004 \begin_layout Itemize
1008 \begin_layout Itemize
1012 \begin_layout Standard
1016 \begin_layout Itemize
1020 \begin_layout Itemize
1024 \begin_layout Itemize
1028 \begin_layout Itemize
1032 \begin_layout Standard
1036 \begin_layout Itemize
1037 lt: < previous value.
1040 \begin_layout Itemize
1041 le: <= previous value.
1044 \begin_layout Itemize
1045 eq: = previous value.
1048 \begin_layout Itemize
1049 ne: != previous value.
1052 \begin_layout Itemize
1053 ge: >= previous value.
1056 \begin_layout Itemize
1057 gt: > previous value.
1060 \begin_layout Subsubsection
1061 search-memory <sizeflag> <value>
1064 \begin_layout Standard
1065 Searches for addresses that currently have value <value>.
1066 <sizeflag> is as in previous command.
1069 \begin_layout Subsection
1073 \begin_layout Standard
1074 These commands are not available in lsnesrc, but are available after ROM
1078 \begin_layout Subsubsection
1079 quit-emulator [/y] (implemented for wxwidgets)
1082 \begin_layout Standard
1083 Quits the emulator (asking for confirmation).
1084 If /y is given, no confirmation is asked.
1087 \begin_layout Subsubsection
1088 pause-emulator (implemented for wxwidgets)
1091 \begin_layout Standard
1092 Toggle paused/unpaused
1095 \begin_layout Subsubsection
1096 +advance-frame (implemented for wxwidgets)
1099 \begin_layout Standard
1101 If the button is still held after configurable timeout expires, game unpauses
1102 for the duration frame advance is held.
1105 \begin_layout Subsubsection
1106 +advance-poll (implemented for wxwidgets)
1109 \begin_layout Standard
1111 If the button is still held after configurable timeout expires, game unpauses
1112 for the duration frame advance is held.
1115 \begin_layout Subsubsection
1116 advance-skiplag (implemented for wxwidgets)
1119 \begin_layout Standard
1120 Skip to first poll in frame after current.
1123 \begin_layout Subsubsection
1124 reset (implemented for wxwidgets)
1127 \begin_layout Standard
1128 Reset the SNES after this frame.
1131 \begin_layout Subsubsection
1132 load <filename> (implemented for wxwidgets)
1135 \begin_layout Standard
1136 Load savestate <filename> in current mode.
1139 \begin_layout Subsubsection
1140 load-state <filename> (implemented for wxwidgets)
1143 \begin_layout Standard
1144 Load savestate <filename> in readwrite mode.
1147 \begin_layout Subsubsection
1148 load-readonly <filename> (implemented for wxwidgets)
1151 \begin_layout Standard
1152 Load savestate <filename> in readonly mode.
1155 \begin_layout Subsubsection
1156 load-preserve <filename> (implemented for wxwidgets)
1159 \begin_layout Standard
1160 Load savestate <filename> in readonly mode, preserving current events.
1163 \begin_layout Subsubsection
1164 load-movie <filename> (implemented for wxwidgets)
1167 \begin_layout Standard
1168 Load savestate <filename>, ignoring save part in readonly mode.
1171 \begin_layout Subsubsection
1172 save-state <filename> (implemented for wxwidgets)
1175 \begin_layout Standard
1176 Save system state to <filename> as soon as possible.
1179 \begin_layout Subsubsection
1180 save-movie <filename> (implemented for wxwidgets)
1183 \begin_layout Standard
1184 Save movie to <filename>.
1187 \begin_layout Subsubsection
1188 set-rwmode (implemented for wxwidgets)
1191 \begin_layout Standard
1192 Set read-write mode.
1195 \begin_layout Subsubsection
1196 set-romode (implemented for wxwidgets)
1199 \begin_layout Standard
1203 \begin_layout Subsubsection
1204 toggle-rwmode (implemented for wxwidgets)
1207 \begin_layout Standard
1208 Toggle between read-only and read-write modes.
1211 \begin_layout Subsubsection
1212 set-gamename <name> (implemented for wxwidgets)
1215 \begin_layout Standard
1216 Set name of the game to <name>
1219 \begin_layout Subsubsection
1220 get-gamename (implemented for wxwidgets)
1223 \begin_layout Standard
1224 Print the name of the game.
1227 \begin_layout Subsubsection
1228 add-author <author> (implemented for wxwidgets)
1231 \begin_layout Standard
1232 Adds new author <author>.
1233 If <author> does not contain '|' it is full name.
1234 If it contains '|', '|' splits the full name and nickname.
1237 \begin_layout Subsubsection
1238 edit-author <num> <author> (implemented for wxwidgets)
1241 \begin_layout Standard
1242 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1246 \begin_layout Subsubsection
1247 remove-author <num> (implemented for wxwidgets)
1250 \begin_layout Standard
1251 Remove author in slot <num>
1254 \begin_layout Subsubsection
1255 print-authors (implemented for wxwidgets)
1258 \begin_layout Standard
1262 \begin_layout Subsubsection
1263 test-1, test-2, test-3 (N/A for wxwidgets)
1266 \begin_layout Standard
1267 Internal test commands.
1271 \begin_layout Subsubsection
1272 take-screenshot <filename> (implemented for wxwidgets)
1275 \begin_layout Standard
1276 Save screenshot to <filename>.
1279 \begin_layout Subsubsection
1280 +controller<num><button> (N/A for wxwidgets)
1283 \begin_layout Standard
1284 Press button <button> on controller <num> (1-8).
1285 The following button names are known:
1288 \begin_layout Itemize
1292 \begin_layout Itemize
1296 \begin_layout Itemize
1300 \begin_layout Itemize
1304 \begin_layout Itemize
1308 \begin_layout Itemize
1312 \begin_layout Itemize
1316 \begin_layout Itemize
1320 \begin_layout Itemize
1324 \begin_layout Itemize
1328 \begin_layout Itemize
1332 \begin_layout Itemize
1336 \begin_layout Itemize
1340 \begin_layout Itemize
1344 \begin_layout Itemize
1348 \begin_layout Itemize
1352 \begin_layout Subsubsection
1353 controllerh<num><button>
1356 \begin_layout Standard
1357 Hold/unhold button <button> on controller <num> (1-8).
1358 See +controller for button names.
1361 \begin_layout Subsubsection
1362 autofire (<pattern>|-)...
1366 \begin_layout Standard
1367 Set autofire pattern.
1368 Each parameter is comma-separated list of button names (in form of 1start,
1369 1A, 2B, etc..) to hold on that frame.
1370 After reaching the end of pattern, the pattern restarts from the beginning.
1373 \begin_layout Subsubsection
1374 repaint (N/A for wxwidgets)
1377 \begin_layout Standard
1381 \begin_layout Subsection
1382 Save jukebox (implemented for wxwidgets)
1385 \begin_layout Subsubsection
1386 cycle-jukebox-backward (N/A for wxwidgets)
1389 \begin_layout Standard
1390 Cycle save jukebox backwards.
1393 \begin_layout Subsubsection
1394 cycle-jukebox-forward (N/A for wxwidgets)
1397 \begin_layout Standard
1398 Cycle save jukebox forwards
1401 \begin_layout Subsubsection
1402 add-jukebox-save <filename> (N/A for wxwidgets)
1405 \begin_layout Standard
1406 Add <filename> to jukebox saves.
1409 \begin_layout Subsubsection
1410 load-jukebox (N/A for wxwidgets)
1413 \begin_layout Standard
1414 Do load from jukebox (current mode).
1417 \begin_layout Subsubsection
1418 save-jukebox (N/A for wxwidgets)
1421 \begin_layout Standard
1422 Do state save to jukebox.
1425 \begin_layout Subsection
1426 Lua (implemented for wxwidgets)
1429 \begin_layout Standard
1430 Only available if lua support is compiled in.
1433 \begin_layout Subsubsection
1434 <<<<<<< HEADevaluate-lua <luacode>=======eval-lua <luacode> (implemented
1435 for wxwidgets)>>>>>>> Wxwidgets Graphics plugin WIP
1438 \begin_layout Standard
1439 Run Lua code <luacode> using built-in Lua interpretter.
1442 \begin_layout Subsubsection
1443 run-lua <script> (implemented for wxwidgets)
1446 \begin_layout Standard
1447 Run specified lua file using built-in Lua interpretter.
1450 \begin_layout Subsection
1454 \begin_layout Subsubsection
1455 add-watch <name> <expression>
1458 \begin_layout Standard
1459 Adds new watch (or modifies old one).
1462 \begin_layout Subsubsection
1466 \begin_layout Standard
1470 \begin_layout Subsection
1471 Sound (implemented for wxwidgets)
1474 \begin_layout Subsubsection
1475 enable-sound <on/off> (implemented for wxwidgets)
1478 \begin_layout Standard
1479 Enable/Disable sound.
1482 \begin_layout Subsubsection
1483 set-sound-device <device> (implemented for wxwidgets)
1486 \begin_layout Standard
1487 Set sound device to <device>
1490 \begin_layout Subsubsection
1491 show-sound-status (implemented for wxwidgets)
1494 \begin_layout Standard
1495 Show status of sound system.
1498 \begin_layout Subsubsection
1499 show-sound-devices (N/A for wxwidgets)
1502 \begin_layout Standard
1503 Show all available devices.
1506 \begin_layout Subsection
1507 SDL Platform commands (implemented for wxwidgets)
1510 \begin_layout Standard
1511 The following are valid on SDL platform.
1514 \begin_layout Subsubsection
1515 identify-key (N/A for wxwidgets)
1518 \begin_layout Standard
1519 Asks to press a key and then identifies that (pseudo-)key.
1522 \begin_layout Subsubsection
1523 toggle-console (N/A for wxwidgets)
1526 \begin_layout Standard
1527 Toggle between windowed/fullscreen console.
1530 \begin_layout Subsubsection
1531 scroll-fullup (N/A for wxwidgets)
1534 \begin_layout Standard
1535 Scroll messages window as far back as it goes.
1538 \begin_layout Subsubsection
1539 scroll-fulldown (N/A for wxwidgets)
1542 \begin_layout Standard
1543 Scroll messages window as far forward as it goes.
1546 \begin_layout Subsubsection
1547 scroll-up (N/A for wxwidgets)
1550 \begin_layout Standard
1551 Scroll messages window back one screenful.
1554 \begin_layout Subsubsection
1555 scroll-down (N/A for wxwidgets)
1558 \begin_layout Standard
1559 Scroll messages window forward one screenful.
1562 \begin_layout Section
1566 \begin_layout Subsection
1570 \begin_layout Subsubsection
1574 \begin_layout Standard
1575 Set where bsnes looks for firmware files.
1577 \begin_inset Quotes eld
1581 \begin_inset Quotes erd
1587 \begin_layout Subsubsection
1591 \begin_layout Standard
1593 Numeric, range is 0.001 to
1594 \begin_inset Quotes eld
1598 \begin_inset Quotes erd
1602 Default is native framerate.
1605 \begin_layout Subsubsection
1609 \begin_layout Standard
1610 Set save compression level (integer 0-9).
1611 Default is 7 (0 is no compression).
1614 \begin_layout Subsubsection
1618 \begin_layout Standard
1619 Set the frame advance timeout in milliseconds.
1620 Numeric integer, range is 0-999999999.
1624 \begin_layout Subsection
1628 \begin_layout Subsubsection
1632 \begin_layout Standard
1633 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1637 \begin_layout Subsubsection
1641 \begin_layout Standard
1642 AVI dumper: Set the default left border thickness (unless lua overrides)
1648 \begin_layout Subsubsection
1652 \begin_layout Standard
1653 AVI dumper: Set the default right border thickness (unless lua overrides)
1659 \begin_layout Subsubsection
1663 \begin_layout Standard
1664 AVI dumper: Set the default top border thickness (unless lua overrides)
1670 \begin_layout Subsubsection
1674 \begin_layout Standard
1675 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1681 \begin_layout Subsubsection
1685 \begin_layout Standard
1686 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1691 \begin_layout Subsection
1692 SDL platform settings
1695 \begin_layout Subsubsection
1696 autorepeat-first-delay
1699 \begin_layout Standard
1700 Sets the delay for first character in typematic autorepeat.
1703 \begin_layout Subsubsection
1704 autorepeat-subsequent-delay
1707 \begin_layout Standard
1708 Sets the delay for subsequent characters in typematic autorepeat.
1711 \begin_layout Section
1715 \begin_layout Subsection
1716 Core (in main table)
1719 \begin_layout Subsubsection
1723 \begin_layout Standard
1724 Print line to message console.
1727 \begin_layout Subsubsection
1728 exec(string command)
1731 \begin_layout Standard
1732 Run command as it was entered on the command line
1735 \begin_layout Subsection
1739 \begin_layout Standard
1740 Bitwise logical functions and related.
1743 \begin_layout Subsubsection
1744 bit.none(number...) / bit.bnot(number...)
1747 \begin_layout Standard
1748 48-bit bitwise NOT / NONE function (set bits that are set in none of the
1752 \begin_layout Subsubsection
1753 bit.any(number...) / bit.bor(number...)
1756 \begin_layout Standard
1757 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
1760 \begin_layout Subsubsection
1761 bit.all(number...) / bit.band(number...)
1764 \begin_layout Standard
1765 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
1769 \begin_layout Subsubsection
1770 bit.parity(number...) / bit.bxor(number...)
1773 \begin_layout Standard
1774 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
1778 \begin_layout Subsubsection
1779 bit.lrotate(number base[, number amount[, number bits]])
1782 \begin_layout Standard
1783 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
1786 \begin_layout Subsubsection
1787 bit.rrotate(number base[, number amount[, number bits]])
1790 \begin_layout Standard
1791 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
1795 \begin_layout Subsubsection
1796 bit.lshift(number base[, number amount[, number bits]])
1799 \begin_layout Standard
1800 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
1801 The new bits are filled with zeroes.
1804 \begin_layout Subsubsection
1805 bit.lrshift(number base[, number amount[, number bits]])
1808 \begin_layout Standard
1809 Shift bits-bit (max 48, default 48) number logically right by amount (default
1811 The new bits are filled with zeroes.
1814 \begin_layout Subsubsection
1815 bit.arshift(number base[, number amount[, number bits]])
1818 \begin_layout Standard
1819 Shift bits-bit (max 48, default 48) number arithmetically right by amount
1821 The new bits are shifted in with copy of the high bit.
1824 \begin_layout Subsection
1828 \begin_layout Standard
1829 Most of these functions can only be called in on_paint and on_video callbacks.
1830 Exceptions are noted.
1833 \begin_layout Standard
1835 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
1836 16-23 are the red component, bits 24-31 are alpha component (0 is fully
1837 opaque, 255 is almost transparent).
1838 -1 is the fully transparent color.
1839 Alpha values greater than 127 do work.
1842 \begin_layout Standard
1843 Origin of coordinates is at top left corner of game display area.
1844 Left and top gaps correspond to negative coordinates.
1847 \begin_layout Subsubsection
1851 \begin_layout Standard
1852 Returns 2-tuple (hresolution, vresolution).
1855 \begin_layout Subsubsection
1856 gui.<class>_gap(number gap)
1859 \begin_layout Standard
1860 Set the <class> (left, right, top, bottom) gap to specified value (max gap
1864 \begin_layout Subsubsection
1865 gui.text(number x, number y, string text[, number fgc[, number bgc]])
1868 \begin_layout Standard
1869 Draw specified text on the GUI (each character cell is 8 or 16 wide and
1874 \begin_layout Itemize
1875 x: X-coordinate to start the drawing from (and x-coordinate at begining
1879 \begin_layout Itemize
1880 y: Y-coordinate to start the drawing from.
1883 \begin_layout Itemize
1884 text: The text to draw.
1887 \begin_layout Itemize
1888 fgc: Text color (default is 0xFFFFFF (white))
1891 \begin_layout Itemize
1892 bgc: Background color (default is -1 (transparent))
1895 \begin_layout Subsubsection
1896 gui.rectangle(number x, number y, number width, number height[, number thickness[
1897 , number outline[, number fill]]])
1900 \begin_layout Standard
1901 Draw rectangle on the GUI.
1905 \begin_layout Itemize
1906 x: X-coordinate of left edge.
1909 \begin_layout Itemize
1910 y: Y-coordinate of upper edge.
1913 \begin_layout Itemize
1914 width: Width of rectangle.
1917 \begin_layout Itemize
1918 height: Height of rectangle.
1921 \begin_layout Itemize
1922 thickness: Thickness of outline (default is 1).
1925 \begin_layout Itemize
1926 outline: Color of outline (default is 0xFFFFFF (white))
1929 \begin_layout Itemize
1930 fill: Color of fil (default is -1 (transparent))
1933 \begin_layout Subsubsection
1934 gui.pixel(number x, number y[, number color])
1937 \begin_layout Standard
1938 Draw one pixel on the GUI.
1942 \begin_layout Itemize
1943 x: X-coordinate of the pixel
1946 \begin_layout Itemize
1947 y: Y-coordinate of the pixel
1950 \begin_layout Itemize
1951 color: Color of the pixel (default is 0xFFFFFF (white))
1954 \begin_layout Subsubsection
1955 gui.crosshair(number x, number y[, number length[, number color]])
1958 \begin_layout Standard
1963 \begin_layout Itemize
1964 x: X-coordinate of the crosshair
1967 \begin_layout Itemize
1968 y: Y-coordinate of the crosshair
1971 \begin_layout Itemize
1972 length: Length of the crosshair lines (default 10).
1975 \begin_layout Itemize
1976 color: Color of the crosshair (default is 0xFFFFFF (white))
1979 \begin_layout Subsubsection
1980 gui.line(number x1, number y1, number x2, number y2[, number color])
1983 \begin_layout Standard
1988 \begin_layout Itemize
1989 x1: X-coordinate of one end.
1992 \begin_layout Itemize
1993 y1: Y-coordinate of one end.
1996 \begin_layout Itemize
1997 x2: X-coordinate of the other end.
2000 \begin_layout Itemize
2001 y2: Y-coordinate of the other end.
2004 \begin_layout Itemize
2005 color: Color of the line (default is 0xFFFFFF (white)).
2008 \begin_layout Subsubsection
2009 gui.circle(number x, number y, number r[, number thick[, number border[,
2013 \begin_layout Standard
2018 \begin_layout Itemize
2019 x: X-coordinate of the center
2022 \begin_layout Itemize
2023 y: Y-coordinate of the center
2026 \begin_layout Itemize
2027 r: The radius of the circle
2030 \begin_layout Itemize
2031 thick: Border thickness
2034 \begin_layout Itemize
2035 border: Border color (default is 0xFFFFFF (white))
2038 \begin_layout Itemize
2039 fill: Fill color (default is -1 (transparent)).
2042 \begin_layout Subsubsection
2046 \begin_layout Standard
2047 Request on_repaint() to happen as soon as possible.
2048 Can be used anywhere.
2051 \begin_layout Subsubsection
2052 gui.subframe_update(boolean on)
2055 \begin_layout Standard
2056 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2057 or not happen (on=false).
2058 Can be used anywhere.
2061 \begin_layout Subsubsection
2062 gui.screenshot(string filename)
2065 \begin_layout Standard
2066 Write PNG screenshot of the current frame (no drawings) to specified file.
2067 Can be used anywhere.
2070 \begin_layout Subsubsection
2071 gui.color(number r, number g, number b[, number a])
2074 \begin_layout Standard
2075 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2076 each component in scale 0-255.
2077 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2079 The default alpha is 256.
2082 \begin_layout Subsubsection
2083 gui.status(string name, string value)
2086 \begin_layout Standard
2088 \begin_inset Quotes eld
2092 \begin_inset Quotes erd
2095 to <value> in status area.
2096 Can be used anywhere.
2099 \begin_layout Subsection
2103 \begin_layout Standard
2105 Only available in on_input callback.
2108 \begin_layout Subsubsection
2109 input.get(number controller, number index)
2112 \begin_layout Standard
2113 Read the specified index (0-11) from specified controller (0-7).
2117 \begin_layout Itemize
2118 Uses physical controller numbering.
2119 Gamepad in port 2 is controller 4, not 1!
2122 \begin_layout Subsubsection
2123 input.set(number controller, number index, number value)
2126 \begin_layout Standard
2127 Write the specified index (0-11) from specified controller (0-7), storing
2132 \begin_layout Itemize
2133 Uses physical controller numbering.
2134 Gamepad in port 2 is controller 4, not 1!
2137 \begin_layout Subsubsection
2138 input.reset([number cycles])
2141 \begin_layout Standard
2143 If cycles is greater than zero, do delayed reset.
2144 0 (or no value) causes immediate reset.
2147 \begin_layout Itemize
2148 Only available with subframe flag false.
2151 \begin_layout Subsection
2155 \begin_layout Standard
2156 Host memory handling (extra memory saved to savestates).
2157 Host memory starts empty.
2160 \begin_layout Subsubsection
2161 hostmemory.read(number address)
2164 \begin_layout Standard
2165 Reads hostmemory slot address.
2166 Slot numbers out of range return false instead of numeric.
2169 \begin_layout Subsubsection
2170 hostmemory.write(number address, number value)
2173 \begin_layout Standard
2174 Writes hostmemory slot with 0-255.
2175 Slot numbers out of range cause extension of host memory slot space.
2178 \begin_layout Subsubsection
2179 hostmemory.readbyte(number address)
2182 \begin_layout Standard
2183 Read unsigned byte (1 element) from given address.
2184 Slots out of range return false.
2187 \begin_layout Subsubsection
2188 hostmemory.writebyte(number address, number value)
2191 \begin_layout Standard
2192 Write unsigned byte (1 element) to given slot.
2193 Slot numbers out of range cause extension.
2196 \begin_layout Subsubsection
2197 hostmemory.readsbyte(number address)
2200 \begin_layout Standard
2201 Read signed byte (1 element) from given address.
2202 Slots out of range return false.
2205 \begin_layout Subsubsection
2206 hostmemory.writesbyte(number address, number value)
2209 \begin_layout Standard
2210 Write signed byte (1 element) to given slot.
2211 Slot numbers out of range cause extension.
2214 \begin_layout Subsubsection
2215 hostmemory.readword(number address)
2218 \begin_layout Standard
2219 Read unsigned word (2 elements) from given address.
2220 Slots out of range return false.
2223 \begin_layout Subsubsection
2224 hostmemory.writeword(number address, number value)
2227 \begin_layout Standard
2228 Write unsigned word (2 elements) to given slot.
2229 Slot numbers out of range cause extension.
2232 \begin_layout Subsubsection
2233 hostmemory.readsword(number address)
2236 \begin_layout Standard
2237 Read signed word (2 elements) from given address.
2238 Slots out of range return false.
2241 \begin_layout Subsubsection
2242 hostmemory.writesword(number address, number value)
2245 \begin_layout Standard
2246 Write signed word (2 elements) to given slot.
2247 Slot numbers out of range cause extension.
2250 \begin_layout Subsubsection
2251 hostmemory.readdword(number address)
2254 \begin_layout Standard
2255 Read unsigned doubleword (4 elements) from given address.
2256 Slots out of range return false.
2259 \begin_layout Subsubsection
2260 hostmemory.writedword(number address, number value)
2263 \begin_layout Standard
2264 Write unsigned doubleword (4 elements) to given slot.
2265 Slot numbers out of range cause extension.
2268 \begin_layout Subsubsection
2269 hostmemory.readsdword(number address)
2272 \begin_layout Standard
2273 Read signed doubleword (4 elements) from given address.
2274 Slots out of range return false.
2277 \begin_layout Subsubsection
2278 hostmemory.writesdword(number address, number value)
2281 \begin_layout Standard
2282 Write signed doubleword (4 elements) to given slot.
2283 Slot numbers out of range cause extension.
2286 \begin_layout Subsubsection
2287 hostmemory.readqword(number address)
2290 \begin_layout Standard
2291 Read unsigned quadword (8 elements) from given address.
2292 Slots out of range return false.
2295 \begin_layout Subsubsection
2296 hostmemory.writeqword(number address, number value)
2299 \begin_layout Standard
2300 Write unsigned quadword (4 elements) to given slot.
2301 Slot numbers out of range cause extension.
2304 \begin_layout Subsubsection
2305 hostmemory.readsqword(number address)
2308 \begin_layout Standard
2309 Read signed quadword (8 elements) from given address.
2310 Slots out of range return false.
2313 \begin_layout Subsubsection
2314 hostmemory.writesqword(number address, number value)
2317 \begin_layout Standard
2318 Write signed quadword (8 elements) to given slot.
2319 Slot numbers out of range cause extension.
2322 \begin_layout Subsection
2326 \begin_layout Standard
2330 \begin_layout Subsubsection
2331 movie.currentframe()
2334 \begin_layout Standard
2335 Return number of current frame.
2338 \begin_layout Subsubsection
2342 \begin_layout Standard
2343 Return number of frames in movie.
2346 \begin_layout Subsubsection
2350 \begin_layout Standard
2351 Return true if in readonly mode, false if in readwrite.
2354 \begin_layout Subsubsection
2355 movie.set_readwrite()
2358 \begin_layout Standard
2359 Set readwrite mode (does not cause on_readwrite callback).
2362 \begin_layout Subsubsection
2363 movie.frame_subframes(number frame)
2366 \begin_layout Standard
2367 Count number of subframes in specified frame (frame numbers are 1-based)
2371 \begin_layout Subsubsection
2372 movie.read_subframe(number frame, number subframe)
2375 \begin_layout Standard
2376 Read specifed subframe in specified frame and return data as array (100
2377 elements, numbered 0-99 currently).
2380 \begin_layout Subsection
2384 \begin_layout Standard
2385 Routines for settings manipulation
2388 \begin_layout Subsubsection
2389 settings.get(string name)
2392 \begin_layout Standard
2393 Get value of setting.
2394 If setting is blank, returns false.
2395 If setting value can't be obtained, returns (nil, error message).
2398 \begin_layout Subsubsection
2399 settings.set(string name, string value)
2402 \begin_layout Standard
2403 Set value of setting.
2404 If setting can't be set, returns (nil, error message).
2407 \begin_layout Subsubsection
2408 settings.is_set(string name)
2411 \begin_layout Standard
2412 Returns if setting is set.
2413 If setting does not exist, returns (nil, error message).
2416 \begin_layout Subsubsection
2417 settings.blank(string name)
2420 \begin_layout Standard
2421 Blanks a setting and returns true.
2422 If setting can't be blanked, returns (nil, error message).
2425 \begin_layout Subsection
2429 \begin_layout Standard
2430 Contains various functions for managing memory
2433 \begin_layout Subsubsection
2437 \begin_layout Standard
2438 Returns the number of VMAs
2441 \begin_layout Subsubsection
2442 memory.read_vma(number index)
2445 \begin_layout Standard
2446 Reads the specified VMA (indices start from zero).
2447 Trying to read invalid VMA gives nil.
2448 The read VMA is table with the following fields:
2451 \begin_layout Itemize
2452 region_name (string): The readable name of the VMA
2455 \begin_layout Itemize
2456 baseaddr (number): Base address of the VMA
2459 \begin_layout Itemize
2460 lastaddr (number): Last address in the VMA.
2463 \begin_layout Itemize
2464 size (number): The size of VMA in bytes.
2467 \begin_layout Itemize
2468 readonly (boolean): True of the VMA corresponds to ROM.
2471 \begin_layout Itemize
2472 native_endian (boolean): True if the VMA has native endian as opposed to
2476 \begin_layout Subsubsection
2477 memory.find_vma(number address)
2480 \begin_layout Standard
2481 Finds the VMA containing specified address.
2482 Returns table in the same format as read_vma or nil if not found.
2485 \begin_layout Subsubsection
2486 memory.readbyte(number address)
2489 \begin_layout Standard
2490 Reads the specified address as unsigned byte and returns the result.
2493 \begin_layout Subsubsection
2494 memory.readsbyte(number address)
2497 \begin_layout Standard
2498 Reads the specified address as signed byte and returns the result.
2501 \begin_layout Subsubsection
2502 memory.writebyte(number address, number value)
2505 \begin_layout Standard
2506 Writes the specified value (negative values undergo 2's complement) to specified
2507 address (as a byte).
2510 \begin_layout Subsubsection
2511 memory.readword(number address)
2514 \begin_layout Standard
2515 Reads the specified address as unsigned word and returns the result.
2518 \begin_layout Subsubsection
2519 memory.readsword(number address)
2522 \begin_layout Standard
2523 Reads the specified address as signed word and returns the result.
2526 \begin_layout Subsubsection
2527 memory.writeword(number address, number value)
2530 \begin_layout Standard
2531 Writes the specified value (negative values undergo 2's complement) to specified
2532 address (as a word).
2535 \begin_layout Subsubsection
2536 memory.readdword(number address)
2539 \begin_layout Standard
2540 Reads the specified address as unsigned doubleword and returns the result.
2543 \begin_layout Subsubsection
2544 memory.readsdword(number address)
2547 \begin_layout Standard
2548 Reads the specified address as signed doubleword and returns the result.
2551 \begin_layout Subsubsection
2552 memory.writedword(number address, number value)
2555 \begin_layout Standard
2556 Writes the specified value (negative values undergo 2's complement) to specified
2557 address (as a doubleword).
2560 \begin_layout Subsubsection
2561 memory.readqword(number address)
2564 \begin_layout Standard
2565 Reads the specified address as unsigned quadword and returns the result.
2568 \begin_layout Subsubsection
2569 memory.readsqword(number address)
2572 \begin_layout Standard
2573 Reads the specified address as signed quadword and returns the result.
2576 \begin_layout Subsubsection
2577 memory.writeqword(number address, number value)
2580 \begin_layout Standard
2581 Writes the specified value (negative values undergo 2's complement) to specified
2582 address (as a quadword).
2585 \begin_layout Subsection
2589 \begin_layout Standard
2590 Various callbacks to Lua that can occur.
2593 \begin_layout Subsubsection
2594 Callback: on_paint()
2597 \begin_layout Standard
2598 Called when screen is being painted.
2599 Any gui.* calls requiring graphic context draw on the screen.
2602 \begin_layout Subsubsection
2603 Callback: on_video()
2606 \begin_layout Standard
2607 Called when video dump frame is being painted.
2608 Any gui.* calls requiring graphic context draw on the video.
2611 \begin_layout Subsubsection
2612 Callback: on_startup()
2615 \begin_layout Standard
2616 Called when the emulator is starting (lsnes.rc and --run files has been run).
2619 \begin_layout Subsubsection
2620 Callback: on_pre_load(string name)
2623 \begin_layout Standard
2624 Called just before savestate/movie load occurs (note: loads are always delayed,
2625 so this occurs even when load was initiated by lua).
2628 \begin_layout Subsubsection
2629 Callback: on_err_load(string name)
2632 \begin_layout Standard
2633 Called if loadstate goes wrong.
2636 \begin_layout Subsubsection
2637 Callback: on_post_load(string name, boolean was_savestate)
2640 \begin_layout Standard
2641 Called on successful loadstate.
2642 was_savestate gives if this was a savestate or a movie.
2645 \begin_layout Subsubsection
2646 Callback: on_pre_save(string name, boolean is_savestate)
2649 \begin_layout Standard
2650 Called just before savestate save occurs (note: movie saves are synchronous
2651 and won't trigger these callbacks if called from Lua).
2654 \begin_layout Subsubsection
2655 Callback: on_err_save(string name)
2658 \begin_layout Standard
2659 Called if savestate goes wrong.
2662 \begin_layout Subsubsection
2663 Callback: on_post_save(string name, boolean is_savestate)
2666 \begin_layout Standard
2667 Called on successful savaestate.
2668 is_savestate gives if this was a savestate or a movie.
2671 \begin_layout Subsubsection
2675 \begin_layout Standard
2676 Called when emulator is shutting down.
2679 \begin_layout Subsubsection
2680 Callback: on_input(boolean subframe)
2683 \begin_layout Standard
2684 Called when emulator is just sending input to bsnes core.
2685 Warning: This is called even in readonly mode, but the results are ignored.
2688 \begin_layout Subsubsection
2689 Callback: on_reset()
2692 \begin_layout Standard
2693 Called when SNES is reset.
2696 \begin_layout Subsubsection
2697 Callback: on_readwrite()
2700 \begin_layout Standard
2701 Called when moving into readwrite mode as result of
2702 \begin_inset Quotes eld
2706 \begin_inset Quotes erd
2709 command (note: moving to rwmode by Lua won't trigger this, as per recursive
2713 \begin_layout Subsubsection
2714 Callback: on_snoop(number port, number controller, number index, number
2718 \begin_layout Standard
2719 Called each time bsnes asks for input.
2720 The value is the final value to be sent to bsnes core (readonly mode, autohold
2721 and autofire have been taken into account).
2722 Might be useful when translating movies to format suitable for console
2724 Note: There is no way to modify the value to be sent.
2727 \begin_layout Section
2728 Modifier and key names:
2731 \begin_layout Subsection
2735 \begin_layout Subsubsection
2739 \begin_layout Standard
2740 Following modifier names are known:
2743 \begin_layout Itemize
2744 ctrl, lctrl, rctrl: Control keys
2747 \begin_layout Itemize
2748 alt, lalt, ralt: ALT keys.
2751 \begin_layout Itemize
2752 shift, lshift, rshift: Shift keys.
2755 \begin_layout Itemize
2756 meta, lmeta, rmeta: Meta keys.
2759 \begin_layout Itemize
2760 num, caps: Numlock/Capslock (these are sticky!)
2763 \begin_layout Itemize
2767 \begin_layout Subsubsection
2771 \begin_layout Standard
2772 Following key names are known:
2775 \begin_layout Itemize
2776 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
2777 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
2778 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
2779 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
2780 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
2781 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
2782 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
2783 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
2784 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
2785 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
2786 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
2787 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
2788 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
2789 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
2790 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
2791 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
2792 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
2793 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
2794 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
2795 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
2796 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
2797 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
2798 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
2799 break, menu, power, euro, undo
2802 \begin_layout Itemize
2803 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
2804 hardware-dependent scan code of <n> (useful to bind those keys that don't
2805 have symbolic names).
2808 \begin_layout Standard
2809 In addition, following pseudo-keys are known (note: these do not work in
2810 conjunction with modifers):
2813 \begin_layout Itemize
2814 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
2817 \begin_layout Itemize
2818 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
2821 \begin_layout Itemize
2822 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
2825 \begin_layout Itemize
2826 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
2829 \begin_layout Itemize
2830 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
2833 \begin_layout Itemize
2834 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
2835 position (axis modes axis and axis_inverse).
2838 \begin_layout Itemize
2839 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
2840 position (axis modes axis and axis_inverse).
2843 \begin_layout Itemize
2844 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
2848 \begin_layout Subsubsection
2852 \begin_layout Itemize
2853 Escape: Enter/Exit Command mode, cancel modal dialogs.
2856 \begin_layout Itemize
2857 Return (also KPEnter): Execute command, ok modal dialog.
2860 \begin_layout Itemize
2861 Pgup/Up (also KP8/9 if no num lock; command mode): Previous command in command
2865 \begin_layout Itemize
2866 Pgdn/Down(also KP2/3 if no num lock; command mode): Next command in command
2870 \begin_layout Itemize
2871 Home (also KP7 if no num lock; command mode): Beginning of command.
2874 \begin_layout Itemize
2875 End (also KP1 if no num lock; command mode): End of command.
2878 \begin_layout Itemize
2879 Left (also KP4 if no num lock; command mode): Move cursor left.
2882 \begin_layout Itemize
2883 Right (also KP6 if no num lock; command mode): Move cursor right.
2886 \begin_layout Itemize
2888 if no num lock; command mode): Delete character to right of cursor.
2891 \begin_layout Itemize
2892 Insert (also KP0 if no num lock; command mode): Toggle between insert /
2896 \begin_layout Itemize
2897 Backspace (command mode): Delete character to left of cursor.
2900 \begin_layout Itemize
2901 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
2904 \begin_layout Subsubsection
2908 \begin_layout Standard
2909 If emulator does not reach internal polling loop in 15 seconds after leaving
2910 it or 15 seconds after starting, the emulator instantly bombs out.
2913 \begin_layout Section
2917 \begin_layout Standard
2918 Movie file is .zip archive in itself, normal ZIP archive tools work on it
2919 (note: If you recompress it, do not use compression methods other than
2920 store and deflate and especially do not use encryption of any kind).
2923 \begin_layout Subsection
2924 Detecting clean start/SRAM/Savestate
2927 \begin_layout Itemize
2929 \begin_inset Quotes eld
2933 \begin_inset Quotes erd
2936 it is savestate, otherwise:
2939 \begin_layout Itemize
2940 If file has members with names starting
2941 \begin_inset Quotes eld
2945 \begin_inset Quotes erd
2948 it is movie starting from SRAM, otherwise:
2951 \begin_layout Itemize
2952 It is movie starting from clear state.
2955 \begin_layout Subsection
2959 \begin_layout Standard
2960 Type of game ROM and region (as one line).
2964 \begin_layout Standard
2965 \begin_inset Tabular
2966 <lyxtabular version="3" rows="8" columns="3">
2967 <features tabularvalignment="middle">
2968 <column alignment="center" valignment="top" width="0">
2969 <column alignment="center" valignment="top" width="0">
2970 <column alignment="center" valignment="top" width="0">
2972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2975 \begin_layout Plain Layout
2981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2984 \begin_layout Plain Layout
2990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2993 \begin_layout Plain Layout
3001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3004 \begin_layout Plain Layout
3010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3013 \begin_layout Plain Layout
3019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3022 \begin_layout Plain Layout
3030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3033 \begin_layout Plain Layout
3039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3042 \begin_layout Plain Layout
3048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3051 \begin_layout Plain Layout
3059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3062 \begin_layout Plain Layout
3068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3071 \begin_layout Plain Layout
3077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3080 \begin_layout Plain Layout
3088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3091 \begin_layout Plain Layout
3097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3100 \begin_layout Plain Layout
3106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3109 \begin_layout Plain Layout
3117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3120 \begin_layout Plain Layout
3126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3129 \begin_layout Plain Layout
3135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3138 \begin_layout Plain Layout
3146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3149 \begin_layout Plain Layout
3155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3158 \begin_layout Plain Layout
3164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3167 \begin_layout Plain Layout
3175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3178 \begin_layout Plain Layout
3184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3187 \begin_layout Plain Layout
3193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3196 \begin_layout Plain Layout
3210 \begin_layout Standard
3214 \begin_layout Standard
3215 \begin_inset Tabular
3216 <lyxtabular version="3" rows="3" columns="2">
3217 <features tabularvalignment="middle">
3218 <column alignment="center" valignment="top" width="0">
3219 <column alignment="center" valignment="top" width="0">
3221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3224 \begin_layout Plain Layout
3230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3233 \begin_layout Plain Layout
3241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3244 \begin_layout Plain Layout
3250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3253 \begin_layout Plain Layout
3261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3264 \begin_layout Plain Layout
3270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3273 \begin_layout Plain Layout
3287 \begin_layout Subsection
3291 \begin_layout Standard
3292 Contains type of port #1 (as one line).
3293 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
3294 If not present, defaults to 'gamepad'.
3297 \begin_layout Subsection
3301 \begin_layout Standard
3302 Contains type of port #2 (as one line).
3303 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
3304 'justifier' and 'justifiers'.
3305 If not present, defaults to 'none'.
3308 \begin_layout Subsection
3312 \begin_layout Standard
3313 Contains name of the game (as one line).
3316 \begin_layout Subsection
3320 \begin_layout Standard
3321 Contains authors, one per line.
3322 Part before '|' is the full name, part after is the nickname.
3325 \begin_layout Subsection
3329 \begin_layout Standard
3331 \begin_inset Quotes eld
3335 \begin_inset Quotes erd
3339 Used to reject other saves.
3342 \begin_layout Subsection
3343 Member: controlsversion
3346 \begin_layout Standard
3348 \begin_inset Quotes eld
3352 \begin_inset Quotes erd
3356 Used to identify what controls are there.
3359 \begin_layout Subsection
3361 \begin_inset Quotes eld
3365 \begin_inset Quotes erd
3371 \begin_layout Standard
3372 Contains bsnes core version number (as one line).
3375 \begin_layout Subsection
3379 \begin_layout Standard
3380 Contains project ID (as one line).
3381 Used to identify if two movies are part of the same project.
3384 \begin_layout Subsection
3385 Member: {rom,slota,slotb}{,xml}.sha256
3388 \begin_layout Standard
3389 Contains SHA-256 of said ROM or ROM mapping file (as one line).
3390 Absent if corresponding file is absent.
3393 \begin_layout Subsection
3394 Member: moviesram.<name>
3397 \begin_layout Standard
3398 Raw binary startup SRAM of kind <name>.
3399 Only present in savestates and movies starting from SRAM.
3402 \begin_layout Subsection
3406 \begin_layout Standard
3407 Raw binary movie state data.
3408 Only present in savestates.
3411 \begin_layout Standard
3415 \begin_layout Itemize
3416 32 bytes: SHA-256 of project ID.
3419 \begin_layout Itemize
3420 8 bytes: Big-endian current frame.
3423 \begin_layout Itemize
3424 100x4 bytes: Poll counters for each control (bit31 of each is
3425 \begin_inset Quotes eld
3429 \begin_inset Quotes erd
3435 \begin_layout Itemize
3436 8 bytes: Big-endian lag frame count.
3439 \begin_layout Itemize
3440 32 bytes: SHA-256 of past input
3443 \begin_layout Itemize
3444 32 bytes: SHA-256 of previous.
3447 \begin_layout Itemize
3448 (total of 512 bytes)
3451 \begin_layout Subsection
3455 \begin_layout Standard
3456 Raw binary dump of host memory.
3457 Only present in savestates.
3460 \begin_layout Subsection
3464 \begin_layout Standard
3465 The raw binary savestate itself.
3466 Savestate detection uses this file, only present in savestates.
3469 \begin_layout Subsection
3473 \begin_layout Standard
3474 Screenshot of current frame.
3475 Only present in savestates.
3476 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
3478 Height of image is inferred from the width and size of data.
3481 \begin_layout Subsection
3485 \begin_layout Standard
3486 Raw binary SRAM of kind <name> at time of savestate.
3487 Only present in savestates.
3490 \begin_layout Subsection
3494 \begin_layout Standard
3495 The actual input track, one line per subframe (blank lines are skipped).
3498 \begin_layout Itemize
3499 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
3500 part of same frame as previous, otherwise it starts a new frame.
3503 \begin_layout Itemize
3504 First subframe must start a new frame.
3507 \begin_layout Standard
3508 Length of movie in frames is number of lines in input file that start a
3512 \begin_layout Subsection
3516 \begin_layout Standard
3517 Contains textual base-10 rerecord count (as one line; emulator just writes
3518 this, it doesn't read it) + 1.
3521 \begin_layout Subsection
3525 \begin_layout Standard
3526 This member stores set of load IDs.
3527 There is one load ID per rerecord (plus one corresponding to start of project).
3530 \begin_layout Itemize
3531 This member constists of concatenation of records
3534 \begin_layout Itemize
3535 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
3539 \begin_layout Itemize
3540 IDs are interpretted as 256-bit big-endian integers with warparound.
3543 \begin_layout Itemize
3544 Initial predicted ID is all zeroes.
3547 \begin_layout Standard
3548 Format of each record is:
3551 \begin_layout Itemize
3552 1 byte: Opcode byte.
3553 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
3557 \begin_layout Itemize
3558 32-prefixlen bytes of ID.
3561 \begin_layout Itemize
3562 countlen bytes of big-endian count (count).
3565 \begin_layout Standard
3566 Records are processed as follows:
3569 \begin_layout Itemize
3570 To form the first ID encoded by record, take the first prefixlen bytes predicted
3571 ID and append the read ID value to it.
3572 The result is the first ID encoded.
3575 \begin_layout Itemize
3576 If countlen is 0, record encodes 1 ID.
3579 \begin_layout Itemize
3580 If countlen is 1, record encodes 2+count IDs.
3583 \begin_layout Itemize
3584 If countlen is 2, record encodes 258+count IDs.
3587 \begin_layout Itemize
3588 If countlen is 3, record encodes 65794+count IDs.
3591 \begin_layout Itemize
3592 The new predicted ID is the next ID after last one encoded by the record.
3595 \begin_layout Standard
3596 The number of rerecords + 1 is equal to the sum of number of IDs encoded
3600 \begin_layout Subsection
3601 Member: starttime.second
3604 \begin_layout Standard
3605 Movie starting time, second part.
3606 Epoch is Unix epoch.
3607 Default is 1,000,000,000.
3610 \begin_layout Subsection
3611 Member: starttime.subsecond
3614 \begin_layout Standard
3615 Movie starting time, subsecond part.
3620 \begin_layout Subsection
3621 Member: savetime.second
3624 \begin_layout Standard
3625 Movie saving time, second part.
3626 Default is starttime.second.
3627 Only present in savestates.
3630 \begin_layout Subsection
3631 Member: savetime.subsecond
3634 \begin_layout Standard
3635 Movie saving time, subsecond part.
3636 Default is starttime.subsecond.
3637 Only present in savestates.
3640 \begin_layout Section
3644 \begin_layout Subsection
3648 \begin_layout Standard
3649 make ui=ui-libsnes profile=accuracy
3652 \begin_layout Standard
3653 For Bsnes v084 You need to apply the four patches in bsnes-patches/.
3654 These fix the following:
3657 \begin_layout Enumerate
3658 Make libsnes actually compile
3661 \begin_layout Enumerate
3662 Bump the version number to be correct
3665 \begin_layout Enumerate
3666 Make RTC emulation time cleanly overridable
3669 \begin_layout Enumerate
3670 Save/Load controller state on savestate/loadstate.
3673 \begin_layout Subsection
3674 Prerequisite libraries:
3677 \begin_layout Itemize
3681 \begin_layout Itemize
3685 \begin_layout Itemize
3686 SDLmain (Windows/Mac OS X only; Note you may have to extract the object
3690 \begin_layout Itemize
3694 \begin_layout Itemize
3698 \begin_layout Itemize
3699 boost conversion (header only)
3702 \begin_layout Subsection
3703 Compile options to make:
3706 \begin_layout Subsubsection
3710 \begin_layout Standard
3711 Set path to BSNES bsnes directory to <path>.
3714 \begin_layout Subsubsection
3718 \begin_layout Standard
3719 Don't use threads on Linux.
3722 \begin_layout Subsubsection
3726 \begin_layout Standard
3727 Try to use threads even on non-Linux systems.
3730 \begin_layout Subsubsection
3731 CROSS_PREFIX=<prefix>
3734 \begin_layout Standard
3735 Prepend this to all commands refering to cross-compiling environment with
3739 \begin_layout Subsubsection
3743 \begin_layout Standard
3744 Target C++ compiler to use.
3748 \begin_layout Standard
3749 Note: If crosscompiling, this has to be crosscompiler, and CROSS_PREFIX
3753 \begin_layout Subsubsection
3757 \begin_layout Standard
3758 Assume BSNES uses compatiblity core instead of accuracy core.
3761 \begin_layout Subsubsection
3765 \begin_layout Standard
3766 Compile lua support, using package <package>
3769 \begin_layout Subsubsection
3773 \begin_layout Standard
3774 Set graphics platform.
3775 Currently available choices are
3776 \begin_inset Quotes eld
3780 \begin_inset Quotes erd
3784 \begin_inset Quotes eld
3788 \begin_inset Quotes erd
3794 \begin_layout Subsubsection
3798 \begin_layout Standard
3800 Currently available choices are
3801 \begin_inset Quotes eld
3805 \begin_inset Quotes erd
3808 (requires SDL graphics),
3809 \begin_inset Quotes eld
3813 \begin_inset Quotes erd
3817 \begin_inset Quotes eld
3821 \begin_inset Quotes erd
3827 \begin_layout Subsubsection
3831 \begin_layout Standard
3832 Set joystick platform.
3833 Currently available choices are
3834 \begin_inset Quotes eld
3838 \begin_inset Quotes erd
3841 (requires SDL graphics),
3842 \begin_inset Quotes eld
3846 \begin_inset Quotes erd
3850 \begin_inset Quotes eld
3854 \begin_inset Quotes erd
3860 \begin_layout Section
3861 Quick'n'dirty encode guide
3864 \begin_layout Enumerate
3865 Start the emulator and load the movie file.
3868 \begin_layout Enumerate
3869 Set large AVI option 'set-setting avi-large on'
3872 \begin_layout Enumerate
3873 If dumping PAL, set bottom border to 2 'set-setting avi-bottom-border 2'
3876 \begin_layout Enumerate
3877 Enable dumping 'dump-avi 12 tmpdump' (note: Normally 10 and above are
3878 \begin_inset Quotes eld
3881 use only if you know what you are doing.
3882 \begin_inset Quotes erd
3886 In this case, these can be safely used because of how x264 internally works.
3889 \begin_layout Enumerate
3890 Unpause and let it run until you want to end dumping.
3893 \begin_layout Enumerate
3894 Close the emulator (closing the window is the easiest way)
3897 \begin_layout Enumerate
3898 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
3899 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
3902 \begin_layout Enumerate
3903 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
3906 \begin_layout Enumerate
3907 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
3908 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
3911 \begin_layout Enumerate
3912 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
3913 Now final.mkv contains quick'n'dirty encode.
3916 \begin_layout Section
3917 Axis configurations for some gamepad types:
3920 \begin_layout Subsection
3924 \begin_layout Standard
3925 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
3928 \begin_layout LyX-Code
3929 set-axis joystick0axis2 pressure-+
3932 \begin_layout LyX-Code
3933 set-axis joystick0axis5 pressure-+
3936 \begin_layout Subsection
3938 \begin_inset Quotes eld
3942 \begin_inset Quotes erd
3948 \begin_layout Standard
3949 Axes 8-19 should be disabled.
3952 \begin_layout LyX-Code
3953 set-axis joystick0axis8 disabled
3956 \begin_layout LyX-Code
3957 set-axis joystick0axis9 disabled
3960 \begin_layout LyX-Code
3961 set-axis joystick0axis10 disabled
3964 \begin_layout LyX-Code
3965 set-axis joystick0axis11 disabled
3968 \begin_layout LyX-Code
3969 set-axis joystick0axis12 disabled
3972 \begin_layout LyX-Code
3973 set-axis joystick0axis13 disabled
3976 \begin_layout LyX-Code
3977 set-axis joystick0axis14 disabled
3980 \begin_layout LyX-Code
3981 set-axis joystick0axis15 disabled
3984 \begin_layout LyX-Code
3985 set-axis joystick0axis16 disabled
3988 \begin_layout LyX-Code
3989 set-axis joystick0axis17 disabled
3992 \begin_layout LyX-Code
3993 set-axis joystick0axis18 disabled
3996 \begin_layout LyX-Code
3997 set-axis joystick0axis19 disabled
4000 \begin_layout Section
4004 \begin_layout Subsection
4005 Problems from BSNES core:
4008 \begin_layout Itemize
4009 The whole pending save stuff.
4012 \begin_layout Itemize
4013 Delay resets are slow.
4016 \begin_layout Itemize
4017 RTC is not emulated in sync-stable manner.
4020 \begin_layout Itemize
4021 Lack of layer hiding.
4024 \begin_layout Itemize
4028 \begin_layout Itemize
4029 Firmwares can't be loaded from ZIP archives.
4032 \begin_layout Itemize
4033 Manual polls can be corrupted if savestate occurs during those.
4036 \begin_layout Subsection
4040 \begin_layout Itemize
4041 Modifiers don't work with pseudo-keys (SDL).
4044 \begin_layout Itemize
4045 Audio for last dumped frame is not itself dumped.
4048 \begin_layout Itemize
4049 Audio in UI is pretty bad in quality.
4052 \begin_layout Itemize
4053 UI itself is 30fps max.
4056 \begin_layout Itemize
4057 AVI compression levels 10-18 are not compatible with AVISynth AVISource.
4060 \begin_layout Itemize
4061 No menus, command based interface (SDL).
4064 \begin_layout Itemize
4065 Long commands don't scroll.
4068 \begin_layout Itemize
4069 The SDL screen drawing is slow.
4072 \begin_layout Section
4076 \begin_layout Subsection
4080 \begin_layout Itemize
4084 \begin_layout Itemize
4085 Fix dumper video corruption with levels 10-18.
4088 \begin_layout Subsection
4092 \begin_layout Itemize
4096 \begin_layout Itemize
4097 Lots of code cleanups
4100 \begin_layout Itemize
4101 Lua interface to settings
4104 \begin_layout Itemize
4105 Allow specifying AVI borders without Lua
4108 \begin_layout Itemize
4109 Fix scaling if vscale > 1 and originx > 0 (left border exists)
4112 \begin_layout Itemize
4113 on_snoop lua callback
4116 \begin_layout Itemize
4117 Faster movie loading and saving.
4120 \begin_layout Subsection
4124 \begin_layout Itemize
4128 \begin_layout Subsection
4132 \begin_layout Itemize
4136 \begin_layout Itemize
4137 Save jukebox functionality.
4140 \begin_layout Subsection
4144 \begin_layout Itemize
4145 Try to fix some nasty failing movie load edge cases
4148 \begin_layout Itemize
4149 Allow specifying scripts to run on command line.
4152 \begin_layout Subsection
4156 \begin_layout Itemize
4157 Major source code reorganization.
4160 \begin_layout Itemize
4161 Backup savestates before overwriting.
4164 \begin_layout Itemize
4165 Don't crash if loading initial state fails.
4168 \begin_layout Subsection
4172 \begin_layout Itemize
4176 \begin_layout Itemize
4177 Fix author name parsing
4180 \begin_layout Itemize
4181 Fix rerecord counting
4184 \begin_layout Itemize
4185 (SDL) Print messages to console if SDL is uninitialized
4188 \begin_layout Itemize
4189 Add movieinfo program
4192 \begin_layout Itemize
4193 Fix loading movies starting from SRAM.
4196 \begin_layout Subsection
4200 \begin_layout Itemize
4201 Add support for unattended dumping
4204 \begin_layout Itemize
4205 Fix compiling for Win32
4208 \begin_layout Itemize
4209 Don't lock up if sound can't be initialized
4212 \begin_layout Itemize
4213 Strip trailing CR from commands
4216 \begin_layout Itemize
4217 Don't try to do dubious things in global ctors (fix crash on startup)
4220 \begin_layout Subsection
4224 \begin_layout Itemize
4225 Small documentation tweaking
4228 \begin_layout Itemize
4232 \begin_layout Itemize
4233 Fix major bug in modifier matching
4236 \begin_layout Subsection
4240 \begin_layout Itemize
4241 Lots of documentation fixes
4244 \begin_layout Itemize
4245 Use dedicated callbacks for event backcomm., not commands.
4248 \begin_layout Itemize
4249 Ensure that the watchdog is not hit when executing delayed reset.
4252 \begin_layout Itemize
4253 Remove errant tab from joystick message.
4256 \begin_layout Subsection
4260 \begin_layout Itemize
4261 Make autofire operate in absolute time, not linear time
4264 \begin_layout Itemize
4265 Reinitialize controls when resuming from loadstate
4268 \begin_layout Itemize
4269 Some more code cleanups
4272 \begin_layout Itemize
4273 If Lua allocator fails, call OOM_panic()
4276 \begin_layout Itemize
4277 Byte/word/dword/qword sized host memory write/read functions.
4280 \begin_layout Itemize
4281 Dump at correct framerate if dumping interlaced NTSC (height=448).
4284 \begin_layout Subsection
4288 \begin_layout Itemize
4289 Actually include the complete source code
4292 \begin_layout Itemize
4296 \begin_layout Subsection
4300 \begin_layout Itemize
4301 Document {save,start}time.{,sub}second.
4304 \begin_layout Itemize
4305 Intercept time() from bsnes core.
4308 \begin_layout Subsection
4312 \begin_layout Itemize
4313 Allow disabling time() interception (allow build on Mac OS X)
4316 \begin_layout Itemize
4317 Use SDLMain on Mac OS X (make SDL not crash)
4320 \begin_layout Itemize
4321 Disable delayed resets (just plain too buggy for now).
4324 \begin_layout Itemize
4328 \begin_layout Itemize
4329 Use 16-bit for graphics/video instead of 32-bit.
4332 \begin_layout Itemize
4333 gui.rectangle/gui.pixel
4336 \begin_layout Itemize
4340 \begin_layout Itemize
4341 New CSCD writer implementation.
4344 \begin_layout Subsection
4348 \begin_layout Itemize
4349 Fix interaction of * and +.
4352 \begin_layout Itemize
4356 \begin_layout Itemize
4357 Use gettimeofday()/usleep(), these seem portable enough.
4360 \begin_layout Itemize
4361 Move joystick axis manipulation to keymapper code.
4364 \begin_layout Itemize
4365 Changes to how read-only works.
4368 \begin_layout Itemize
4369 Refactor controller input code.
4372 \begin_layout Subsection
4376 \begin_layout Itemize
4377 Fix mouseclick scale compensation.
4380 \begin_layout Itemize
4381 Draw area boundaries correctly in SDL code.
4384 \begin_layout Itemize
4388 \begin_layout Itemize
4389 Fix CSCD output (buffer overrun and race condition).
4392 \begin_layout Subsection
4396 \begin_layout Itemize
4397 JMD dumping support.
4400 \begin_layout Itemize
4401 Allow unattended dumping to JMD.
4404 \begin_layout Itemize
4408 \begin_layout Itemize
4409 Switch back to 32-bit colors.
4412 \begin_layout Itemize
4413 Add Lua function gui.color.
4416 \begin_layout Itemize
4417 Use some new C++11 features in GCC 4.6.
4420 \begin_layout Itemize
4421 Be prepared for core frequency changes.
4424 \begin_layout Itemize
4425 Pass colors in one chunk from Lua.
4428 \begin_layout Subsection
4432 \begin_layout Itemize
4433 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
4434 memory.read_vma() and memory.find_vma().
4437 \begin_layout Itemize
4438 Numerious documentation fixups
4441 \begin_layout Itemize
4442 RTC time format changed
4445 \begin_layout Itemize
4446 Reformat flags display
4449 \begin_layout Itemize
4450 Allow lua package name to be overridden
4453 \begin_layout Itemize
4454 SDUMP (high-quality dumping).
4457 \begin_layout Itemize
4458 Split platform support to plugins.
4461 \begin_layout Itemize
4462 Make all sound plugins support basic sound commands
4465 \begin_layout Itemize
4466 Support portaudio for sound.
4469 \begin_layout Itemize
4470 Allow disable Lua/SDL searching.
4473 \begin_layout Itemize
4474 Upconvert colors when copying lcscreen to screen.
4477 \begin_layout Itemize
4478 Reorganize source tree.
4481 \begin_layout Itemize
4482 Evdev joystick support.
4485 \begin_layout Itemize
4486 Refactor more code into generic window code.
4489 \begin_layout Subsection
4493 \begin_layout Itemize
4494 Refactor message handling.
4497 \begin_layout Itemize
4501 \begin_layout Itemize
4505 \begin_layout Itemize
4506 Finish pending saves before load/quit.
4509 \begin_layout Itemize
4510 Wxwidgets graphics plugin.
4513 \begin_layout Subsection
4517 \begin_layout Itemize
4518 Get rid of win32-crap.[ch]pp.
4521 \begin_layout Itemize
4522 Move files around a lot.
4525 \begin_layout Itemize
4526 Get rid of need for host C++ compiler.
4529 \begin_layout Itemize
4533 \begin_layout Itemize
4534 Refactor inter-component communication.
4537 \begin_layout Itemize
4541 \begin_layout Itemize
4542 Fix crash on multiline aliases.
4545 \begin_layout Itemize
4546 Load/Save settings in wxwidgets gui.