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
79 \begin_layout Enumerate
83 \begin_layout Enumerate
84 accuracy or compatiblity core.
87 \begin_layout Enumerate
88 Patched version (using included 6 patches)
92 \begin_layout Enumerate
96 \begin_layout Enumerate
100 \begin_layout Enumerate
104 \begin_layout Enumerate
108 \begin_layout Enumerate
112 \begin_layout Enumerate
113 sdlmain (SDL only, part of SDL)
116 \begin_layout Enumerate
117 boost_conversion (this is header-only library)
120 \begin_layout Enumerate
121 libswscale (wxwidgets graphics only)
124 \begin_layout Enumerate
125 Portaudio (portaudio sound only)
128 \begin_layout Enumerate
129 std::thread and co (for threaded dumper only, not needed if std::thread
133 \begin_layout Enumerate
134 Lua (if Lua support is needed).
137 \begin_layout Itemize
138 Version 5.1.X or 5.2X.
141 \begin_layout Section
145 \begin_layout Standard
146 Building is via makefile, the following options are available:
149 \begin_layout Itemize
150 CROSS_PREFIX=<prefix>
154 \begin_layout Itemize
155 Prefix to apply to commands when building executables / object files for
156 the target architecture.
160 \begin_layout Itemize
165 \begin_layout Itemize
170 \begin_layout Itemize
171 Name of C++ compiler.
174 \begin_layout Itemize
175 CROSS_PREFIX is prepended if compiling for target architecture.
178 \begin_layout Itemize
179 This needs to be at least GCC 4.6.
182 \begin_layout Itemize
183 Set to 'g++-mp-4.6' if compiling on Mac OS X using GCC 4.6 from Macports.
186 \begin_layout Itemize
191 \begin_layout Itemize
196 \begin_layout Itemize
197 Name of host C++ compiler.
200 \begin_layout Itemize
201 Default is value of 'CC' option.
205 \begin_layout Itemize
206 USER_HOSTCCFLAGS=<flags>:
210 \begin_layout Itemize
211 Compiler flags to pass when compiling/linking for host architecture.
214 \begin_layout Itemize
219 \begin_layout Itemize
224 \begin_layout Itemize
225 Extra flags to pass when compiling for target architecture
228 \begin_layout Itemize
233 \begin_layout Itemize
234 USER_LDFLAGS=<flags>:
238 \begin_layout Itemize
239 Extra flags to pass when linking for target architecture.
242 \begin_layout Itemize
247 \begin_layout Itemize
248 USER_PLATFORM_CFLAGS=<flags>
252 \begin_layout Itemize
253 Extra flags to pass when compiling files using platform-dependent code for
257 \begin_layout Itemize
262 \begin_layout Itemize
263 USER_PLATFORM_LDFLAGS=<flags>
267 \begin_layout Itemize
268 Extra flags to pass when linking files using platform-dependent code for
272 \begin_layout Itemize
277 \begin_layout Itemize
282 \begin_layout Itemize
283 Set the font file to use.
286 \begin_layout Itemize
287 Currently the valid values are:
291 \begin_layout Itemize
292 cp437.hex: Standard VGA font (256 characters).
295 \begin_layout Itemize
296 unifontfull-5.1.20080820.hex: GNU unifont (covers most of Unicode BMP)
300 \begin_layout Itemize
301 Default is 'unifontfull-5.1.20080820.hex'
305 \begin_layout Itemize
310 \begin_layout Itemize
311 Package to use for Lua support.
314 \begin_layout Itemize
315 Usually valid value is 'lua' or 'lua5.1'.
318 \begin_layout Itemize
319 Default is not to build Lua support.
323 \begin_layout Itemize
328 \begin_layout Itemize
329 Override platform default for dumper threading support.
332 \begin_layout Itemize
333 Threading is default on Linux.
336 \begin_layout Itemize
337 'YES' tries to use threading (std::thread).
340 \begin_layout Itemize
341 'BOOST' tries to use threading (boost::thread).
344 \begin_layout Itemize
345 'NO' disables threading.
348 \begin_layout Itemize
349 Note: This has absolutely nothing to do with platform threading.
353 \begin_layout Itemize
354 BSNES_IS_COMPAT=<anything>
358 \begin_layout Itemize
359 Signals that BSNES core used is compatiblity core, not accuracy core.
362 \begin_layout Itemize
363 Default is to assume accuracy core.
367 \begin_layout Itemize
368 JOYSTICK=<implementation>
372 \begin_layout Itemize
373 Set joystick implementation.
378 \begin_layout Itemize
379 SDL: Use SDL for joystick (requires SDL graphics)
382 \begin_layout Itemize
383 EVDEV: Use EVDEV for joystick (Linux only).
386 \begin_layout Itemize
387 DUMMY: Disable joystick support.
391 \begin_layout Itemize
396 \begin_layout Itemize
397 SOUND=<implementation>
401 \begin_layout Itemize
402 Set sound implementation.
407 \begin_layout Itemize
408 SDL: Use SDL for sound (requires SDL graphics)
411 \begin_layout Itemize
412 PORTAUDIO: Use Portaudio for sound.
415 \begin_layout Itemize
416 DUMMY: Disable sound support
420 \begin_layout Itemize
425 \begin_layout Itemize
426 GRAPHICS=<implementation>
430 \begin_layout Itemize
431 Set windowing library to use.
436 \begin_layout Itemize
437 SDL: Use SDL for graphics
440 \begin_layout Itemize
441 WXWIDGETS: Use wxWidgets for graphics.
445 \begin_layout Itemize
450 \begin_layout Section
454 \begin_layout Subsection
458 \begin_layout Standard
459 <kind> in the following can be one of:
462 \begin_layout Itemize
463 rom: Cartridge ROM (BIOS for special carts).
467 \begin_layout Itemize
468 bsx: BS-X (non-slotted) Game flash ROM.
471 \begin_layout Itemize
472 bsxslotted: BS-X (slotted) Game flash ROM.
475 \begin_layout Itemize
479 \begin_layout Itemize
480 slot-a: Sufami Turbo Slot A ROM
483 \begin_layout Itemize
484 slot-b: Sufami Turbo Slot B ROM
487 \begin_layout Subsubsection
488 --<kind>=<file> (lsnes/SDL, lsnes-avidump)
491 \begin_layout Standard
492 Load <file> as specified ROM (SFC/BS/DMG/ST file format).
495 \begin_layout Subsubsection
496 --<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
499 \begin_layout Standard
500 Override hardware detection for ROM, reading the values from <file> (BSNES
504 \begin_layout Subsubsection
505 --ips-<kind>=<file> (lsnes/SDL, lsnes-avidump)
508 \begin_layout Standard
509 Apply BPS/IPS patch <file> to ROM <kind>.
510 If specified multiple times, the patches are applied in order.
513 \begin_layout Subsubsection
514 --ips-<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
517 \begin_layout Standard
518 Apply BPS/IPS patch <file> to XML of ROM <kind>.
519 If specified multiple times, the patches are applied in order.
522 \begin_layout Subsubsection
523 --ips-offset=<offset> (lsnes/SDL, lsnes-avidump)
526 \begin_layout Standard
527 Set offset to apply to IPS patches.
529 Handy for applying headered IPS patches (use offset of -512 for this).
530 The offset must be 0 for BPS patches.
533 \begin_layout Subsubsection
537 \begin_layout Standard
538 Force ROM to be considered PAL-only.
541 \begin_layout Itemize
542 Only works on SNES and SGB ROMs (not BS-X or Sufami Turbo).
545 \begin_layout Itemize
546 Attempting to load NTSC movie file will error out.
549 \begin_layout Subsubsection
553 \begin_layout Standard
554 Force ROM to be considered NTSC-only.
557 \begin_layout Itemize
558 Attempting to load PAL movie file will error out.
561 \begin_layout Subsection
565 \begin_layout Subsubsection
566 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
569 \begin_layout Standard
570 Load <filename> as movie or savestate file.
571 All other session options are ignored.
574 \begin_layout Subsubsection
575 --port1=<device> (lsnes/SDL)
578 \begin_layout Standard
583 \begin_layout Itemize
584 none: No device connected
587 \begin_layout Itemize
588 gamepad: One gamepad (the default)
591 \begin_layout Itemize
592 multitap: Four gamepads (warning: makes most games refuse to start)
595 \begin_layout Itemize
599 \begin_layout Subsubsection
600 --port2=<type> (lsnes/SDL)
603 \begin_layout Standard
608 \begin_layout Itemize
609 none: No device connected (the default)
612 \begin_layout Itemize
616 \begin_layout Itemize
617 multitap: Four gamepads.
620 \begin_layout Itemize
624 \begin_layout Itemize
625 superscope: Super Scope
628 \begin_layout Itemize
629 justifier: One justifier
632 \begin_layout Itemize
633 justifiers: Two justifiers
636 \begin_layout Subsubsection
637 --gamename=<name> (lsnes/SDL)
640 \begin_layout Standard
641 Set the name of game to <name>.
645 \begin_layout Subsubsection
646 --author=<name> (lsnes/SDL)
649 \begin_layout Standard
650 Add author with full name of <name> (no nickname).
653 \begin_layout Subsubsection
654 --author=|<name> (lsnes/SDL)
657 \begin_layout Standard
658 Add author with nickname of <name> (no full name).
661 \begin_layout Subsubsection
662 --author=<fullname>|<nickname> (lsnes/SDL)
665 \begin_layout Standard
666 Add author with full name of <fullname> and nickname of <nickname>.
669 \begin_layout Subsubsection
670 --rtc-second=<value> (lsnes/SDL)
673 \begin_layout Standard
674 Set RTC second (0 is 1st January 1970 00:00:00Z).
675 Default is 1,000,000,000.
678 \begin_layout Subsubsection
679 --rtc-subsecond=<value> (lsnes/SDL)
682 \begin_layout Standard
689 \begin_layout Subsection
694 \begin_layout Subsubsection
695 --run=<file> (lsnes/SDL)
698 \begin_layout Standard
699 After running main RC file, run this file.
700 If multiple are specified, these execute in order specified.
703 \begin_layout Subsection
704 dump options (lsnes-dumpavi only)
707 \begin_layout Subsubsection
711 \begin_layout Standard
712 Set the dumper to use (required).
713 Use 'list' for listing of known dumpers.
716 \begin_layout Subsubsection
720 \begin_layout Standard
721 Set the mode to use (required for dumpers with multiple modes, forbidden
723 Use 'list' for known modes.
726 \begin_layout Subsubsection
730 \begin_layout Standard
733 \begin_inset Quotes eld
737 \begin_inset Quotes erd
743 \begin_layout Subsubsection
744 --option=<name>=<value>
747 \begin_layout Standard
748 Set option <name> to value <value>.
751 \begin_layout Subsubsection
755 \begin_layout Standard
756 Set number of frames to dump.
760 \begin_layout Subsubsection
764 \begin_layout Standard
765 Run specified lua script (lsnes-dumpavi does not have initialization files).
768 \begin_layout Subsubsection
769 --load-library=<library>
772 \begin_layout Standard
773 Load the specified shared object / dynamic library / dynamic link library.
776 \begin_layout Section
777 Startup file lsnes.rc
780 \begin_layout Standard
781 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
782 This file is located in:
785 \begin_layout Itemize
790 lsnes.rc (if %APPDATA% exists)
793 \begin_layout Itemize
794 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
797 \begin_layout Itemize
798 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
801 \begin_layout Itemize
802 All: ./lsnes.rc (fallback default).
805 \begin_layout Standard
806 If leading directories do not exist, attempt to create them is made.
809 \begin_layout Section
813 \begin_layout Itemize
814 Commands beginning with '*' invoke the corresponding command without alias
818 \begin_layout Itemize
819 If command starts with '+' (after possible '*'), the command is executed
820 as-is when button is pressed, and when button is released, it is executed
821 with '+' replaced by '-'.
824 \begin_layout Itemize
825 Commands without '+' execute only on negative edge (release).
828 \begin_layout Subsection
832 \begin_layout Standard
833 Settings control various aspects of emulator behaviour.
836 \begin_layout Subsubsection
837 set-setting <setting> <value>
840 \begin_layout Standard
841 Sets setting <setting> to value <value> (may be empty).
844 \begin_layout Subsubsection
845 unset-setting <setting>
848 \begin_layout Standard
849 Try to unset setting <setting> (not all settings can be unset).
852 \begin_layout Subsubsection
853 get-setting <setting>
856 \begin_layout Standard
857 Read value of setting <setting>
860 \begin_layout Subsubsection
864 \begin_layout Standard
865 Print names and values of all settings.
868 \begin_layout Subsection
872 \begin_layout Standard
873 Keybindings bind commands or aliases to keys (or pseudo-keys).
877 \begin_layout Standard
881 \begin_layout Itemize
882 Do not bind edge active (+/-) commands to keys with modifiers, that won't
886 \begin_layout Itemize
887 Names of keys and modifiers are platform-dependent.
890 \begin_layout Itemize
891 Be careful before binding pseudo-keys (such as joystick axes, buttons or
892 hats) with modifiers.
893 That may or may not work right.
896 \begin_layout Subsubsection
897 bind-key [<mod>/<modmask>] <key> <command>
900 \begin_layout Standard
901 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
902 ed list) are set as <mod> (comma-seperated list).
905 \begin_layout Standard
906 The names of keys and modifiers are platform-dependent.
909 \begin_layout Subsubsection
910 unbind-key [<mod>/<modmask>] <key>
913 \begin_layout Standard
914 Unbind command from <key> (with specified <mod> and <modmask>).
917 \begin_layout Subsubsection
918 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
919 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
920 [plus=<val>] [tolerance=<val>]
923 \begin_layout Standard
924 Set axis parameters for axis <axis>.
927 \begin_layout Itemize
928 disabled: Disable axis
931 \begin_layout Itemize
935 \begin_layout Itemize
936 axis-inverse: Inverse axis
939 \begin_layout Itemize
940 pressure0-: Pressure sensitive.
941 Released at 0, pressed at -.
944 \begin_layout Itemize
945 pressure0+: Pressure sensitive.
946 Released at 0, pressed at +.
949 \begin_layout Itemize
950 pressure-0: Pressure sensitive.
951 Released at -, pressed at 0.
954 \begin_layout Itemize
955 pressure-+: Pressure sensitive.
956 Released at -, pressed at +.
959 \begin_layout Itemize
960 pressure+0: Pressure sensitive.
961 Released at +, pressed at 0.
964 \begin_layout Itemize
965 pressure+-: Pressure sensitive.
966 Released at +, pressed at -.
969 \begin_layout Itemize
970 minus=<val>: Calibration at extreme minus position (-32768-32767)
973 \begin_layout Itemize
974 zero=<val>: Calibration at neutral position (-32768-32767)
977 \begin_layout Itemize
978 plus=<val>: Calibration at extreme plus position (-32768-32767)
981 \begin_layout Itemize
982 tolerance=<value>: Center band tolerance (0<x<1).
983 The smaller the value, the more sensitive the control is.
986 \begin_layout Subsubsection
990 \begin_layout Standard
991 Print all key bindings in effect.
994 \begin_layout Subsection
998 \begin_layout Standard
999 Aliases bind command to sequence of commands.
1000 After alias has been defined, it replaces the command it shadows.
1003 \begin_layout Standard
1007 \begin_layout Itemize
1008 You can't alias command to itself.
1011 \begin_layout Itemize
1012 Aliases starting with +/- are edge active just like ordinary commands starting
1016 \begin_layout Itemize
1017 One command can be aliased to multiple commands.
1020 \begin_layout Subsubsection
1021 alias-command <command> <expansion>
1024 \begin_layout Standard
1025 Append <expansion> to alias <command>.
1026 If alias does not already exist, it is created.
1029 \begin_layout Subsubsection
1030 unalias-command <command>
1033 \begin_layout Standard
1034 Clear alias expansion for <command>.
1037 \begin_layout Subsubsection
1041 \begin_layout Standard
1042 Print all aliases and their expansions in effect.
1045 \begin_layout Subsection
1049 \begin_layout Standard
1050 Run <script> as if commands were entered on the command line.
1053 \begin_layout Subsection
1057 \begin_layout Standard
1058 Following commands control video dumping:
1061 \begin_layout Subsubsection
1062 start-dump <dumper> [<mode>] <prefix/filename>
1065 \begin_layout Standard
1066 Start dumping using dumper <dumper>.
1067 If mode is present or not and if prefix or filename is present depends
1068 on the dumper and dumper mode.
1071 \begin_layout Standard
1072 The following dumpers are available:
1075 \begin_layout Itemize
1076 INTERNAL-AVI-CSCD: Internal CSCD in .avi dumper.
1080 \begin_layout Itemize
1081 Mode: uncompressed/pcm: Uncompressed video, PCM audio.
1085 \begin_layout Itemize
1086 Mode: cscd/pcm: CSCD video, PCM audio.
1091 \begin_layout Itemize
1092 INTERNAL-JMD: Internal .jmd dumper.
1096 \begin_layout Itemize
1100 \begin_layout Itemize
1105 \begin_layout Itemize
1106 INTERNAL-RAW: Internal RAW dumper.
1110 \begin_layout Itemize
1114 \begin_layout Itemize
1118 \begin_layout Itemize
1119 Sound is big-endian signed 16-bit, usually at 32040.5Hz.
1122 \begin_layout Itemize
1123 Video is always upscaled to double resolution (512x448 / 512 x 478).
1126 \begin_layout Itemize
1127 Video framerate is usually 322445/6448 fps for PAL and 10738636/178683 fps
1132 \begin_layout Itemize
1133 INTERNAL-SDMP: Internal SDMP dumper.
1137 \begin_layout Itemize
1138 Mode 'ms': Multi-segment.
1142 \begin_layout Itemize
1143 Mode 'ss': Single-segment.
1148 \begin_layout Subsubsection
1152 \begin_layout Standard
1153 End dumping using <dumper>
1156 \begin_layout Subsubsection
1157 show-dumpers [<dumper>]
1160 \begin_layout Standard
1161 Show the list of dumpers or list of modes for <dumper>
1164 \begin_layout Subsection
1168 \begin_layout Standard
1169 <address> may be decimal or hexadecimal (prefixed with '0x').
1170 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
1174 \begin_layout Standard
1175 The available element <sizes> are:
1178 \begin_layout Itemize
1182 \begin_layout Itemize
1186 \begin_layout Itemize
1190 \begin_layout Itemize
1194 \begin_layout Standard
1195 When reading RAM and ROM, multi-byte reads/writes are big-endian.
1196 When dealing with DSP memory, multi-byte reads/writes are native-endian
1197 (do not use operand sizes exceeding DSP bitness, except dword is OK for
1201 \begin_layout Subsubsection
1202 read-<size> <address>
1205 \begin_layout Standard
1206 Read the value of byte in <address>.
1209 \begin_layout Subsubsection
1210 read-s<size> <address>
1213 \begin_layout Standard
1214 Read the value of signed byte in <address>.
1217 \begin_layout Subsubsection
1218 write-<size> <address> <value>
1221 \begin_layout Standard
1222 Write <value> to byte in address <address>.
1225 \begin_layout Subsubsection
1229 \begin_layout Standard
1230 Reset the memory search
1233 \begin_layout Subsubsection
1237 \begin_layout Standard
1238 Print number of candidates remaining
1241 \begin_layout Subsubsection
1245 \begin_layout Standard
1246 Print all candidates remaining
1249 \begin_layout Subsubsection
1250 search-memory <usflag><sizeflag><op>
1253 \begin_layout Standard
1254 Searches memory for addresses satisfying criteria.
1257 \begin_layout Standard
1261 \begin_layout Itemize
1265 \begin_layout Itemize
1269 \begin_layout Standard
1273 \begin_layout Itemize
1277 \begin_layout Itemize
1281 \begin_layout Itemize
1285 \begin_layout Itemize
1289 \begin_layout Standard
1293 \begin_layout Itemize
1294 lt: < previous value.
1297 \begin_layout Itemize
1298 le: <= previous value.
1301 \begin_layout Itemize
1302 eq: = previous value.
1305 \begin_layout Itemize
1306 ne: != previous value.
1309 \begin_layout Itemize
1310 ge: >= previous value.
1313 \begin_layout Itemize
1314 gt: > previous value.
1317 \begin_layout Subsubsection
1318 search-memory <sizeflag> <value>
1321 \begin_layout Standard
1322 Searches for addresses that currently have value <value>.
1323 <sizeflag> is as in previous command.
1326 \begin_layout Subsection
1330 \begin_layout Standard
1331 These commands are not available in lsnesrc, but are available after ROM
1335 \begin_layout Subsubsection
1339 \begin_layout Standard
1340 Quits the emulator (asking for confirmation).
1341 If /y is given, no confirmation is asked.
1344 \begin_layout Subsubsection
1348 \begin_layout Standard
1349 Toggle paused/unpaused
1352 \begin_layout Subsubsection
1356 \begin_layout Standard
1358 If the button is still held after configurable timeout expires, game unpauses
1359 for the duration frame advance is held.
1362 \begin_layout Subsubsection
1366 \begin_layout Standard
1368 If the button is still held after configurable timeout expires, game unpauses
1369 for the duration frame advance is held.
1372 \begin_layout Subsubsection
1376 \begin_layout Standard
1377 Skip to first poll in frame after current.
1380 \begin_layout Subsubsection
1384 \begin_layout Standard
1385 Reset the SNES after this frame.
1388 \begin_layout Subsubsection
1392 \begin_layout Standard
1393 Load savestate <filename> in current mode.
1396 \begin_layout Subsubsection
1397 load-state <filename>
1400 \begin_layout Standard
1401 Load savestate <filename> in readwrite mode.
1404 \begin_layout Subsubsection
1405 load-readonly <filename>
1408 \begin_layout Standard
1409 Load savestate <filename> in readonly mode.
1412 \begin_layout Subsubsection
1413 load-preserve <filename>
1416 \begin_layout Standard
1417 Load savestate <filename> in readonly mode, preserving current events.
1420 \begin_layout Subsubsection
1421 load-movie <filename>
1424 \begin_layout Standard
1425 Load savestate <filename>, ignoring save part in readonly mode.
1428 \begin_layout Subsubsection
1429 save-state <filename>
1432 \begin_layout Standard
1433 Save system state to <filename> as soon as possible.
1436 \begin_layout Subsubsection
1437 save-movie <filename>
1440 \begin_layout Standard
1441 Save movie to <filename>.
1444 \begin_layout Subsubsection
1448 \begin_layout Standard
1449 Set read-write mode.
1452 \begin_layout Subsubsection
1456 \begin_layout Standard
1460 \begin_layout Subsubsection
1464 \begin_layout Standard
1465 Toggle between read-only and read-write modes.
1468 \begin_layout Subsubsection
1472 \begin_layout Standard
1473 Set name of the game to <name>
1476 \begin_layout Subsubsection
1480 \begin_layout Standard
1481 Print the name of the game.
1484 \begin_layout Subsubsection
1488 \begin_layout Standard
1489 Adds new author <author>.
1490 If <author> does not contain '|' it is full name.
1491 If it contains '|', '|' splits the full name and nickname.
1494 \begin_layout Subsubsection
1495 edit-author <num> <author>
1498 \begin_layout Standard
1499 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1503 \begin_layout Subsubsection
1507 \begin_layout Standard
1508 Remove author in slot <num>
1511 \begin_layout Subsubsection
1515 \begin_layout Standard
1519 \begin_layout Subsubsection
1520 test-1, test-2, test-3
1523 \begin_layout Standard
1524 Internal test commands.
1528 \begin_layout Subsubsection
1529 take-screenshot <filename>
1532 \begin_layout Standard
1533 Save screenshot to <filename>.
1536 \begin_layout Subsubsection
1537 +controller<num><button>
1540 \begin_layout Standard
1541 Press button <button> on controller <num> (1-8).
1542 The following button names are known:
1545 \begin_layout Itemize
1549 \begin_layout Itemize
1553 \begin_layout Itemize
1557 \begin_layout Itemize
1561 \begin_layout Itemize
1565 \begin_layout Itemize
1569 \begin_layout Itemize
1573 \begin_layout Itemize
1577 \begin_layout Itemize
1581 \begin_layout Itemize
1585 \begin_layout Itemize
1589 \begin_layout Itemize
1593 \begin_layout Itemize
1597 \begin_layout Itemize
1601 \begin_layout Itemize
1605 \begin_layout Itemize
1609 \begin_layout Subsubsection
1610 controllerh<num><button>
1613 \begin_layout Standard
1614 Hold/unhold button <button> on controller <num> (1-8).
1615 See +controller for button names.
1618 \begin_layout Subsubsection
1619 autofire (<pattern>|-)...
1622 \begin_layout Standard
1623 Set autofire pattern.
1624 Each parameter is comma-separated list of button names (in form of 1start,
1625 1A, 2B, etc..) to hold on that frame.
1626 After reaching the end of pattern, the pattern restarts from the beginning.
1629 \begin_layout Subsubsection
1633 \begin_layout Standard
1637 \begin_layout Subsection
1641 \begin_layout Subsubsection
1642 cycle-jukebox-backward
1645 \begin_layout Standard
1646 Cycle save jukebox backwards.
1649 \begin_layout Subsubsection
1650 cycle-jukebox-forward
1653 \begin_layout Standard
1654 Cycle save jukebox forwards
1657 \begin_layout Subsubsection
1658 add-jukebox-save <filename>
1661 \begin_layout Standard
1662 Add <filename> to jukebox saves.
1665 \begin_layout Subsubsection
1669 \begin_layout Standard
1670 Do load from jukebox (current mode).
1673 \begin_layout Subsubsection
1677 \begin_layout Standard
1678 Do state save to jukebox.
1681 \begin_layout Subsection
1685 \begin_layout Standard
1686 Only available if lua support is compiled in.
1689 \begin_layout Subsubsection
1690 evaluate-lua <luacode>
1693 \begin_layout Standard
1694 Run Lua code <luacode> using built-in Lua interpretter.
1697 \begin_layout Subsubsection
1701 \begin_layout Standard
1702 Run specified lua file using built-in Lua interpretter.
1705 \begin_layout Subsection
1709 \begin_layout Subsubsection
1710 add-watch <name> <expression>
1713 \begin_layout Standard
1714 Adds new watch (or modifies old one).
1717 \begin_layout Subsubsection
1721 \begin_layout Standard
1725 \begin_layout Subsection
1729 \begin_layout Subsubsection
1730 enable-sound <on/off>
1733 \begin_layout Standard
1734 Enable/Disable sound.
1737 \begin_layout Subsubsection
1738 set-sound-device <device>
1741 \begin_layout Standard
1742 Set sound device to <device>
1745 \begin_layout Subsubsection
1749 \begin_layout Standard
1750 Show status of sound system.
1753 \begin_layout Subsubsection
1757 \begin_layout Standard
1758 Show all available devices.
1761 \begin_layout Subsection
1762 SDL Platform commands
1765 \begin_layout Standard
1766 The following are valid on SDL platform.
1769 \begin_layout Subsubsection
1773 \begin_layout Standard
1774 Asks to press a key and then identifies that (pseudo-)key.
1777 \begin_layout Subsubsection
1781 \begin_layout Standard
1782 Toggle between windowed/fullscreen console.
1785 \begin_layout Subsubsection
1789 \begin_layout Standard
1790 Scroll messages window as far back as it goes.
1793 \begin_layout Subsubsection
1797 \begin_layout Standard
1798 Scroll messages window as far forward as it goes.
1801 \begin_layout Subsubsection
1805 \begin_layout Standard
1806 Scroll messages window back one screenful.
1809 \begin_layout Subsubsection
1813 \begin_layout Standard
1814 Scroll messages window forward one screenful.
1817 \begin_layout Section
1821 \begin_layout Subsection
1825 \begin_layout Subsubsection
1829 \begin_layout Standard
1830 Set where bsnes looks for firmware files.
1832 \begin_inset Quotes eld
1836 \begin_inset Quotes erd
1842 \begin_layout Subsubsection
1846 \begin_layout Standard
1848 Numeric, range is 0.001 to
1849 \begin_inset Quotes eld
1853 \begin_inset Quotes erd
1857 Default is native framerate.
1860 \begin_layout Subsubsection
1864 \begin_layout Standard
1865 Set save compression level (integer 0-9).
1866 Default is 7 (0 is no compression).
1869 \begin_layout Subsubsection
1873 \begin_layout Standard
1874 Set the frame advance timeout in milliseconds.
1875 Numeric integer, range is 0-999999999.
1879 \begin_layout Subsection
1883 \begin_layout Subsubsection
1887 \begin_layout Standard
1888 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1892 \begin_layout Subsubsection
1896 \begin_layout Standard
1897 AVI dumper: Set the default left border thickness (unless lua overrides)
1903 \begin_layout Subsubsection
1907 \begin_layout Standard
1908 AVI dumper: Set the default right border thickness (unless lua overrides)
1914 \begin_layout Subsubsection
1918 \begin_layout Standard
1919 AVI dumper: Set the default top border thickness (unless lua overrides)
1925 \begin_layout Subsubsection
1929 \begin_layout Standard
1930 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1936 \begin_layout Subsubsection
1940 \begin_layout Standard
1941 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1946 \begin_layout Subsubsection
1950 \begin_layout Standard
1951 AVI dumper: Compression level (0-18).
1954 \begin_layout Itemize
1955 Compression levels 10 and above are not compatible with stock CSCD codec.
1958 \begin_layout Itemize
1959 Recomended level is 7.
1962 \begin_layout Subsubsection
1966 \begin_layout Standard
1967 AVI dumper: Set method of determining the sound rate.
1970 \begin_layout Itemize
1971 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
1972 128, 176.4 and 192 kHz.
1975 \begin_layout Itemize
1976 1: Round down to nearest integer.
1979 \begin_layout Itemize
1980 2: Round up to nearest ingeter.
1983 \begin_layout Subsection
1987 \begin_layout Subsubsection
1991 \begin_layout Standard
1992 JMD dumper: Compression level (0-9).
1995 \begin_layout Subsection
1996 SDL platform settings
1999 \begin_layout Subsubsection
2000 autorepeat-first-delay
2003 \begin_layout Standard
2004 Sets the delay for first character in typematic autorepeat.
2007 \begin_layout Subsubsection
2008 autorepeat-subsequent-delay
2011 \begin_layout Standard
2012 Sets the delay for subsequent characters in typematic autorepeat.
2015 \begin_layout Section
2019 \begin_layout Subsection
2020 Core (in main table)
2023 \begin_layout Subsubsection
2027 \begin_layout Standard
2028 Print line to message console.
2031 \begin_layout Subsubsection
2032 exec(string command)
2035 \begin_layout Standard
2036 Run command as it was entered on the command line
2039 \begin_layout Subsection
2043 \begin_layout Standard
2044 Bitwise logical functions and related.
2047 \begin_layout Subsubsection
2048 bit.none(number...) / bit.bnot(number...)
2051 \begin_layout Standard
2052 48-bit bitwise NOT / NONE function (set bits that are set in none of the
2056 \begin_layout Subsubsection
2057 bit.any(number...) / bit.bor(number...)
2060 \begin_layout Standard
2061 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
2064 \begin_layout Subsubsection
2065 bit.all(number...) / bit.band(number...)
2068 \begin_layout Standard
2069 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
2073 \begin_layout Subsubsection
2074 bit.parity(number...) / bit.bxor(number...)
2077 \begin_layout Standard
2078 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
2082 \begin_layout Subsubsection
2083 bit.lrotate(number base[, number amount[, number bits]])
2086 \begin_layout Standard
2087 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
2090 \begin_layout Subsubsection
2091 bit.rrotate(number base[, number amount[, number bits]])
2094 \begin_layout Standard
2095 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
2099 \begin_layout Subsubsection
2100 bit.lshift(number base[, number amount[, number bits]])
2103 \begin_layout Standard
2104 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
2105 The new bits are filled with zeroes.
2108 \begin_layout Subsubsection
2109 bit.lrshift(number base[, number amount[, number bits]])
2112 \begin_layout Standard
2113 Shift bits-bit (max 48, default 48) number logically right by amount (default
2115 The new bits are filled with zeroes.
2118 \begin_layout Subsubsection
2119 bit.arshift(number base[, number amount[, number bits]])
2122 \begin_layout Standard
2123 Shift bits-bit (max 48, default 48) number arithmetically right by amount
2125 The new bits are shifted in with copy of the high bit.
2128 \begin_layout Subsection
2132 \begin_layout Standard
2133 Most of these functions can only be called in on_paint and on_video callbacks.
2134 Exceptions are noted.
2137 \begin_layout Standard
2139 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
2140 16-23 are the red component, bits 24-31 are alpha component (0 is fully
2141 opaque, 255 is almost transparent).
2142 -1 is the fully transparent color.
2143 Alpha values greater than 127 do work.
2146 \begin_layout Standard
2147 Origin of coordinates is at top left corner of game display area.
2148 Left and top gaps correspond to negative coordinates.
2151 \begin_layout Subsubsection
2155 \begin_layout Standard
2156 Returns 2-tuple (hresolution, vresolution).
2159 \begin_layout Subsubsection
2160 gui.<class>_gap(number gap)
2163 \begin_layout Standard
2164 Set the <class> (left, right, top, bottom) gap to specified value (max gap
2168 \begin_layout Subsubsection
2169 gui.text(number x, number y, string text[, number fgc[, number bgc]])
2172 \begin_layout Standard
2173 Draw specified text on the GUI (each character cell is 8 or 16 wide and
2178 \begin_layout Itemize
2179 x: X-coordinate to start the drawing from (and x-coordinate at begining
2183 \begin_layout Itemize
2184 y: Y-coordinate to start the drawing from.
2187 \begin_layout Itemize
2188 text: The text to draw.
2191 \begin_layout Itemize
2192 fgc: Text color (default is 0xFFFFFF (white))
2195 \begin_layout Itemize
2196 bgc: Background color (default is -1 (transparent))
2199 \begin_layout Subsubsection
2200 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
2203 \begin_layout Standard
2204 Like gui.text, but draw using double-width.
2207 \begin_layout Subsubsection
2208 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
2211 \begin_layout Standard
2212 Like gui.text, but draw using double-height.
2215 \begin_layout Subsubsection
2216 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
2219 \begin_layout Standard
2220 Like gui.text, but draw using double-width/double-height.
2223 \begin_layout Subsubsection
2224 gui.rectangle(number x, number y, number width, number height[, number thickness[
2225 , number outline[, number fill]]])
2228 \begin_layout Standard
2229 Draw rectangle on the GUI.
2233 \begin_layout Itemize
2234 x: X-coordinate of left edge.
2237 \begin_layout Itemize
2238 y: Y-coordinate of upper edge.
2241 \begin_layout Itemize
2242 width: Width of rectangle.
2245 \begin_layout Itemize
2246 height: Height of rectangle.
2249 \begin_layout Itemize
2250 thickness: Thickness of outline (default is 1).
2253 \begin_layout Itemize
2254 outline: Color of outline (default is 0xFFFFFF (white))
2257 \begin_layout Itemize
2258 fill: Color of fil (default is -1 (transparent))
2261 \begin_layout Subsubsection
2262 gui.pixel(number x, number y[, number color])
2265 \begin_layout Standard
2266 Draw one pixel on the GUI.
2270 \begin_layout Itemize
2271 x: X-coordinate of the pixel
2274 \begin_layout Itemize
2275 y: Y-coordinate of the pixel
2278 \begin_layout Itemize
2279 color: Color of the pixel (default is 0xFFFFFF (white))
2282 \begin_layout Subsubsection
2283 gui.crosshair(number x, number y[, number length[, number color]])
2286 \begin_layout Standard
2291 \begin_layout Itemize
2292 x: X-coordinate of the crosshair
2295 \begin_layout Itemize
2296 y: Y-coordinate of the crosshair
2299 \begin_layout Itemize
2300 length: Length of the crosshair lines (default 10).
2303 \begin_layout Itemize
2304 color: Color of the crosshair (default is 0xFFFFFF (white))
2307 \begin_layout Subsubsection
2308 gui.line(number x1, number y1, number x2, number y2[, number color])
2311 \begin_layout Standard
2316 \begin_layout Itemize
2317 x1: X-coordinate of one end.
2320 \begin_layout Itemize
2321 y1: Y-coordinate of one end.
2324 \begin_layout Itemize
2325 x2: X-coordinate of the other end.
2328 \begin_layout Itemize
2329 y2: Y-coordinate of the other end.
2332 \begin_layout Itemize
2333 color: Color of the line (default is 0xFFFFFF (white)).
2336 \begin_layout Subsubsection
2337 gui.circle(number x, number y, number r[, number thick[, number border[,
2341 \begin_layout Standard
2346 \begin_layout Itemize
2347 x: X-coordinate of the center
2350 \begin_layout Itemize
2351 y: Y-coordinate of the center
2354 \begin_layout Itemize
2355 r: The radius of the circle
2358 \begin_layout Itemize
2359 thick: Border thickness
2362 \begin_layout Itemize
2363 border: Border color (default is 0xFFFFFF (white))
2366 \begin_layout Itemize
2367 fill: Fill color (default is -1 (transparent)).
2370 \begin_layout Subsubsection
2374 \begin_layout Standard
2375 Request on_repaint() to happen as soon as possible.
2376 Can be used anywhere.
2379 \begin_layout Subsubsection
2380 gui.subframe_update(boolean on)
2383 \begin_layout Standard
2384 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2385 or not happen (on=false).
2386 Can be used anywhere.
2389 \begin_layout Subsubsection
2390 gui.screenshot(string filename)
2393 \begin_layout Standard
2394 Write PNG screenshot of the current frame (no drawings) to specified file.
2395 Can be used anywhere.
2398 \begin_layout Subsubsection
2399 gui.color(number r, number g, number b[, number a])
2402 \begin_layout Standard
2403 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2404 each component in scale 0-255.
2405 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2407 The default alpha is 256.
2410 \begin_layout Subsubsection
2411 gui.status(string name, string value)
2414 \begin_layout Standard
2416 \begin_inset Quotes eld
2420 \begin_inset Quotes erd
2423 to <value> in status area.
2424 Can be used anywhere.
2427 \begin_layout Subsection
2431 \begin_layout Standard
2433 Only available in on_input callback.
2436 \begin_layout Subsubsection
2437 input.get(number controller, number index)
2440 \begin_layout Standard
2441 Read the specified index (0-11) from specified controller (0-7).
2445 \begin_layout Itemize
2446 Uses physical controller numbering.
2447 Gamepad in port 2 is controller 4, not 1!
2450 \begin_layout Subsubsection
2451 input.set(number controller, number index, number value)
2454 \begin_layout Standard
2455 Write the specified index (0-11) from specified controller (0-7), storing
2460 \begin_layout Itemize
2461 Uses physical controller numbering.
2462 Gamepad in port 2 is controller 4, not 1!
2465 \begin_layout Subsubsection
2466 input.reset([number cycles])
2469 \begin_layout Standard
2471 If cycles is greater than zero, do delayed reset.
2472 0 (or no value) causes immediate reset.
2475 \begin_layout Itemize
2476 Only available with subframe flag false.
2479 \begin_layout Subsubsection
2483 \begin_layout Standard
2484 Returns table of tables of all available keys and axes.
2485 The first table is indexed by key name (platform-dependent!), and the inner
2486 table has the following fields:
2489 \begin_layout Itemize
2490 last_rawval: Last reported raw value for control.
2493 \begin_layout Itemize
2494 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2495 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2498 \begin_layout Itemize
2499 cal_left: Minimum calibration value.
2500 Only meaningful with axis and pressure types.
2503 \begin_layout Itemize
2504 cal_center: Center calibration value.
2505 Only meaningful with axis and pressure types.
2508 \begin_layout Itemize
2509 cal_right: Maximum calibration value.
2510 Only meaningful with axis and pressure types.
2513 \begin_layout Itemize
2514 cal_tolerance: Dead zone tolerance.
2515 Only meaningful with axis and pressure types.
2518 \begin_layout Subsubsection
2519 input.keyhook(key, state)
2522 \begin_layout Standard
2523 Requests that keyhook events to be sent for key (state=true) or not sent
2527 \begin_layout Subsection
2531 \begin_layout Standard
2532 Host memory handling (extra memory saved to savestates).
2533 Host memory starts empty.
2536 \begin_layout Subsubsection
2537 hostmemory.read(number address)
2540 \begin_layout Standard
2541 Reads hostmemory slot address.
2542 Slot numbers out of range return false instead of numeric.
2545 \begin_layout Subsubsection
2546 hostmemory.write(number address, number value)
2549 \begin_layout Standard
2550 Writes hostmemory slot with 0-255.
2551 Slot numbers out of range cause extension of host memory slot space.
2554 \begin_layout Subsubsection
2555 hostmemory.readbyte(number address)
2558 \begin_layout Standard
2559 Read unsigned byte (1 element) from given address.
2560 Slots out of range return false.
2563 \begin_layout Subsubsection
2564 hostmemory.writebyte(number address, number value)
2567 \begin_layout Standard
2568 Write unsigned byte (1 element) to given slot.
2569 Slot numbers out of range cause extension.
2572 \begin_layout Subsubsection
2573 hostmemory.readsbyte(number address)
2576 \begin_layout Standard
2577 Read signed byte (1 element) from given address.
2578 Slots out of range return false.
2581 \begin_layout Subsubsection
2582 hostmemory.writesbyte(number address, number value)
2585 \begin_layout Standard
2586 Write signed byte (1 element) to given slot.
2587 Slot numbers out of range cause extension.
2590 \begin_layout Subsubsection
2591 hostmemory.readword(number address)
2594 \begin_layout Standard
2595 Read unsigned word (2 elements) from given address.
2596 Slots out of range return false.
2599 \begin_layout Subsubsection
2600 hostmemory.writeword(number address, number value)
2603 \begin_layout Standard
2604 Write unsigned word (2 elements) to given slot.
2605 Slot numbers out of range cause extension.
2608 \begin_layout Subsubsection
2609 hostmemory.readsword(number address)
2612 \begin_layout Standard
2613 Read signed word (2 elements) from given address.
2614 Slots out of range return false.
2617 \begin_layout Subsubsection
2618 hostmemory.writesword(number address, number value)
2621 \begin_layout Standard
2622 Write signed word (2 elements) to given slot.
2623 Slot numbers out of range cause extension.
2626 \begin_layout Subsubsection
2627 hostmemory.readdword(number address)
2630 \begin_layout Standard
2631 Read unsigned doubleword (4 elements) from given address.
2632 Slots out of range return false.
2635 \begin_layout Subsubsection
2636 hostmemory.writedword(number address, number value)
2639 \begin_layout Standard
2640 Write unsigned doubleword (4 elements) to given slot.
2641 Slot numbers out of range cause extension.
2644 \begin_layout Subsubsection
2645 hostmemory.readsdword(number address)
2648 \begin_layout Standard
2649 Read signed doubleword (4 elements) from given address.
2650 Slots out of range return false.
2653 \begin_layout Subsubsection
2654 hostmemory.writesdword(number address, number value)
2657 \begin_layout Standard
2658 Write signed doubleword (4 elements) to given slot.
2659 Slot numbers out of range cause extension.
2662 \begin_layout Subsubsection
2663 hostmemory.readqword(number address)
2666 \begin_layout Standard
2667 Read unsigned quadword (8 elements) from given address.
2668 Slots out of range return false.
2671 \begin_layout Subsubsection
2672 hostmemory.writeqword(number address, number value)
2675 \begin_layout Standard
2676 Write unsigned quadword (4 elements) to given slot.
2677 Slot numbers out of range cause extension.
2680 \begin_layout Subsubsection
2681 hostmemory.readsqword(number address)
2684 \begin_layout Standard
2685 Read signed quadword (8 elements) from given address.
2686 Slots out of range return false.
2689 \begin_layout Subsubsection
2690 hostmemory.writesqword(number address, number value)
2693 \begin_layout Standard
2694 Write signed quadword (8 elements) to given slot.
2695 Slot numbers out of range cause extension.
2698 \begin_layout Subsection
2702 \begin_layout Standard
2706 \begin_layout Subsubsection
2707 movie.currentframe()
2710 \begin_layout Standard
2711 Return number of current frame.
2714 \begin_layout Subsubsection
2718 \begin_layout Standard
2719 Return number of frames in movie.
2722 \begin_layout Subsubsection
2726 \begin_layout Standard
2727 Return true if in readonly mode, false if in readwrite.
2730 \begin_layout Subsubsection
2731 movie.set_readwrite()
2734 \begin_layout Standard
2735 Set readwrite mode (does not cause on_readwrite callback).
2738 \begin_layout Subsubsection
2739 movie.frame_subframes(number frame)
2742 \begin_layout Standard
2743 Count number of subframes in specified frame (frame numbers are 1-based)
2747 \begin_layout Subsubsection
2748 movie.read_subframe(number frame, number subframe)
2751 \begin_layout Standard
2752 Read specifed subframe in specified frame and return data as array (100
2753 elements, numbered 0-99 currently).
2756 \begin_layout Subsection
2760 \begin_layout Standard
2761 Routines for settings manipulation
2764 \begin_layout Subsubsection
2765 settings.get(string name)
2768 \begin_layout Standard
2769 Get value of setting.
2770 If setting is blank, returns false.
2771 If setting value can't be obtained, returns (nil, error message).
2774 \begin_layout Subsubsection
2775 settings.set(string name, string value)
2778 \begin_layout Standard
2779 Set value of setting.
2780 If setting can't be set, returns (nil, error message).
2783 \begin_layout Subsubsection
2784 settings.is_set(string name)
2787 \begin_layout Standard
2788 Returns if setting is set.
2789 If setting does not exist, returns (nil, error message).
2792 \begin_layout Subsubsection
2793 settings.blank(string name)
2796 \begin_layout Standard
2797 Blanks a setting and returns true.
2798 If setting can't be blanked, returns (nil, error message).
2801 \begin_layout Subsection
2805 \begin_layout Standard
2806 Contains various functions for managing memory
2809 \begin_layout Subsubsection
2813 \begin_layout Standard
2814 Returns the number of VMAs
2817 \begin_layout Subsubsection
2818 memory.read_vma(number index)
2821 \begin_layout Standard
2822 Reads the specified VMA (indices start from zero).
2823 Trying to read invalid VMA gives nil.
2824 The read VMA is table with the following fields:
2827 \begin_layout Itemize
2828 region_name (string): The readable name of the VMA
2831 \begin_layout Itemize
2832 baseaddr (number): Base address of the VMA
2835 \begin_layout Itemize
2836 lastaddr (number): Last address in the VMA.
2839 \begin_layout Itemize
2840 size (number): The size of VMA in bytes.
2843 \begin_layout Itemize
2844 readonly (boolean): True of the VMA corresponds to ROM.
2847 \begin_layout Itemize
2848 native_endian (boolean): True if the VMA has native endian as opposed to
2852 \begin_layout Subsubsection
2853 memory.find_vma(number address)
2856 \begin_layout Standard
2857 Finds the VMA containing specified address.
2858 Returns table in the same format as read_vma or nil if not found.
2861 \begin_layout Subsubsection
2862 memory.readbyte(number address)
2865 \begin_layout Standard
2866 Reads the specified address as unsigned byte and returns the result.
2869 \begin_layout Subsubsection
2870 memory.readsbyte(number address)
2873 \begin_layout Standard
2874 Reads the specified address as signed byte and returns the result.
2877 \begin_layout Subsubsection
2878 memory.writebyte(number address, number value)
2881 \begin_layout Standard
2882 Writes the specified value (negative values undergo 2's complement) to specified
2883 address (as a byte).
2886 \begin_layout Subsubsection
2887 memory.readword(number address)
2890 \begin_layout Standard
2891 Reads the specified address as unsigned word and returns the result.
2894 \begin_layout Subsubsection
2895 memory.readsword(number address)
2898 \begin_layout Standard
2899 Reads the specified address as signed word and returns the result.
2902 \begin_layout Subsubsection
2903 memory.writeword(number address, number value)
2906 \begin_layout Standard
2907 Writes the specified value (negative values undergo 2's complement) to specified
2908 address (as a word).
2911 \begin_layout Subsubsection
2912 memory.readdword(number address)
2915 \begin_layout Standard
2916 Reads the specified address as unsigned doubleword and returns the result.
2919 \begin_layout Subsubsection
2920 memory.readsdword(number address)
2923 \begin_layout Standard
2924 Reads the specified address as signed doubleword and returns the result.
2927 \begin_layout Subsubsection
2928 memory.writedword(number address, number value)
2931 \begin_layout Standard
2932 Writes the specified value (negative values undergo 2's complement) to specified
2933 address (as a doubleword).
2936 \begin_layout Subsubsection
2937 memory.readqword(number address)
2940 \begin_layout Standard
2941 Reads the specified address as unsigned quadword and returns the result.
2944 \begin_layout Subsubsection
2945 memory.readsqword(number address)
2948 \begin_layout Standard
2949 Reads the specified address as signed quadword and returns the result.
2952 \begin_layout Subsubsection
2953 memory.writeqword(number address, number value)
2956 \begin_layout Standard
2957 Writes the specified value (negative values undergo 2's complement) to specified
2958 address (as a quadword).
2961 \begin_layout Subsection
2965 \begin_layout Standard
2966 Contains copy of global variables from time of Lua initialization.
2970 \begin_layout Subsection
2974 \begin_layout Standard
2975 Various callbacks to Lua that can occur.
2978 \begin_layout Subsubsection
2979 Callback: on_paint()
2982 \begin_layout Standard
2983 Called when screen is being painted.
2984 Any gui.* calls requiring graphic context draw on the screen.
2987 \begin_layout Subsubsection
2988 Callback: on_video()
2991 \begin_layout Standard
2992 Called when video dump frame is being painted.
2993 Any gui.* calls requiring graphic context draw on the video.
2996 \begin_layout Subsubsection
2997 Callback: on_frame()
3000 \begin_layout Standard
3001 Called on each starting whole frame.
3004 \begin_layout Subsubsection
3005 Callback: on_startup()
3008 \begin_layout Standard
3009 Called when the emulator is starting (lsnes.rc and --run files has been run).
3012 \begin_layout Subsubsection
3013 Callback: on_pre_load(string name)
3016 \begin_layout Standard
3017 Called just before savestate/movie load occurs (note: loads are always delayed,
3018 so this occurs even when load was initiated by lua).
3021 \begin_layout Subsubsection
3022 Callback: on_err_load(string name)
3025 \begin_layout Standard
3026 Called if loadstate goes wrong.
3029 \begin_layout Subsubsection
3030 Callback: on_post_load(string name, boolean was_savestate)
3033 \begin_layout Standard
3034 Called on successful loadstate.
3035 was_savestate gives if this was a savestate or a movie.
3038 \begin_layout Subsubsection
3039 Callback: on_pre_save(string name, boolean is_savestate)
3042 \begin_layout Standard
3043 Called just before savestate save occurs (note: movie saves are synchronous
3044 and won't trigger these callbacks if called from Lua).
3047 \begin_layout Subsubsection
3048 Callback: on_err_save(string name)
3051 \begin_layout Standard
3052 Called if savestate goes wrong.
3055 \begin_layout Subsubsection
3056 Callback: on_post_save(string name, boolean is_savestate)
3059 \begin_layout Standard
3060 Called on successful savaestate.
3061 is_savestate gives if this was a savestate or a movie.
3064 \begin_layout Subsubsection
3068 \begin_layout Standard
3069 Called when emulator is shutting down.
3072 \begin_layout Subsubsection
3073 Callback: on_input(boolean subframe)
3076 \begin_layout Standard
3077 Called when emulator is just sending input to bsnes core.
3078 Warning: This is called even in readonly mode, but the results are ignored.
3081 \begin_layout Subsubsection
3082 Callback: on_reset()
3085 \begin_layout Standard
3086 Called when SNES is reset.
3089 \begin_layout Subsubsection
3090 Callback: on_readwrite()
3093 \begin_layout Standard
3094 Called when moving into readwrite mode as result of
3095 \begin_inset Quotes eld
3099 \begin_inset Quotes erd
3102 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3106 \begin_layout Subsubsection
3107 Callback: on_snoop(number port, number controller, number index, number
3111 \begin_layout Standard
3112 Called each time bsnes asks for input.
3113 The value is the final value to be sent to bsnes core (readonly mode, autohold
3114 and autofire have been taken into account).
3115 Might be useful when translating movies to format suitable for console
3117 Note: There is no way to modify the value to be sent.
3120 \begin_layout Subsubsection
3121 Callback: on_keyhook(string keyname, table state)
3124 \begin_layout Standard
3125 Sent when key that has keyhook events requested changes state.
3126 Keyname is name of the key (group) and state is the state (same kind as
3127 table values in input.raw).
3130 \begin_layout Section
3131 Memory watch expression syntax
3134 \begin_layout Standard
3135 Memory watch expressions are in RPN (Reverse Polish Notation).
3136 At the end of expression, the top entry on stack is taken as the final
3140 \begin_layout Standard
3144 \begin_layout Itemize
3145 Evaluation order is strictly left to right.
3148 \begin_layout Itemize
3149 a is the entry on top of stack
3152 \begin_layout Itemize
3153 b is the entry immediately below top of stack
3156 \begin_layout Itemize
3157 ; separates values to be pushed (no intermediate pop).
3160 \begin_layout Itemize
3161 After end of element, all used stack slots are popped and all results are
3165 \begin_layout Itemize
3166 When pushing multiple values, the pushes occur in order shown.
3169 \begin_layout Standard
3170 The following operators are available:
3173 \begin_layout Itemize
3177 \begin_layout Itemize
3181 \begin_layout Itemize
3185 \begin_layout Itemize
3189 \begin_layout Itemize
3193 \begin_layout Itemize
3197 \begin_layout Itemize
3198 b : read_signed_byte(a)
3201 \begin_layout Itemize
3205 \begin_layout Itemize
3206 d : read_signed_dword(a)
3209 \begin_layout Itemize
3213 \begin_layout Itemize
3215 \begin_inset Formula $\pi$
3221 \begin_layout Itemize
3222 q : read_signed_qword(a)
3225 \begin_layout Itemize
3229 \begin_layout Itemize
3233 \begin_layout Itemize
3237 \begin_layout Itemize
3241 \begin_layout Itemize
3242 w : read_signed_word(a)
3245 \begin_layout Itemize
3249 \begin_layout Itemize
3250 B : read_unsigned_byte(a)
3253 \begin_layout Itemize
3254 C<number>z : Push number <number> to stack.
3257 \begin_layout Itemize
3258 D : read_unsigned_dword(a)
3261 \begin_layout Itemize
3262 C0x<number>z : Push number <number> (hexadecimal) to stack.
3265 \begin_layout Itemize
3266 Q : read_unsigned_qword(a)
3269 \begin_layout Itemize
3270 R<digit> : round a to <digit> digits.
3273 \begin_layout Itemize
3274 W : read_unsigned_word(a)
3277 \begin_layout Subsection
3281 \begin_layout Standard
3282 C0x007e0878zWC0x007e002czW-
3285 \begin_layout Enumerate
3286 Push value 0x7e0878 on top of stack (C0x007e0878z).
3289 \begin_layout Enumerate
3290 Pop the value on top of stack (0x7e0878), read word value at that address
3291 and push the result,call it x1 (W).
3294 \begin_layout Enumerate
3295 Push value 0x7e002c on top of stack (C0x007e002cz).
3298 \begin_layout Enumerate
3299 Pop the value on top of stack (0x7e002c), read word value at that address
3300 and push the result,call it x2 (W).
3303 \begin_layout Enumerate
3304 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3308 \begin_layout Enumerate
3309 Since the expression ends, the final memory watch result is the top one
3310 on stack, which is x2 - x1.
3313 \begin_layout Section
3314 Modifier and key names:
3317 \begin_layout Subsection
3321 \begin_layout Subsubsection
3325 \begin_layout Standard
3326 Following modifier names are known:
3329 \begin_layout Itemize
3330 ctrl, lctrl, rctrl: Control keys
3333 \begin_layout Itemize
3334 alt, lalt, ralt: ALT keys.
3337 \begin_layout Itemize
3338 shift, lshift, rshift: Shift keys.
3341 \begin_layout Itemize
3342 meta, lmeta, rmeta: Meta keys.
3345 \begin_layout Itemize
3346 num, caps: Numlock/Capslock (these are sticky!)
3349 \begin_layout Itemize
3353 \begin_layout Subsubsection
3357 \begin_layout Standard
3358 Following key names are known:
3361 \begin_layout Itemize
3362 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
3363 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
3364 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
3365 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
3366 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
3367 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
3368 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
3369 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
3370 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
3371 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
3372 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
3373 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
3374 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
3375 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
3376 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
3377 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
3378 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
3379 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
3380 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
3381 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
3382 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
3383 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
3384 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
3385 break, menu, power, euro, undo
3388 \begin_layout Itemize
3389 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
3390 hardware-dependent scan code of <n> (useful to bind those keys that don't
3391 have symbolic names).
3394 \begin_layout Subsubsection
3395 Joystick pseudo-keys:
3398 \begin_layout Itemize
3399 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
3402 \begin_layout Itemize
3403 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
3406 \begin_layout Itemize
3407 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
3410 \begin_layout Itemize
3411 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
3414 \begin_layout Itemize
3415 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
3418 \begin_layout Itemize
3419 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
3420 position (axis modes axis and axis_inverse).
3423 \begin_layout Itemize
3424 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
3425 position (axis modes axis and axis_inverse).
3428 \begin_layout Itemize
3429 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
3433 \begin_layout Subsubsection
3437 \begin_layout Itemize
3438 Escape: Enter/Exit Command mode, cancel modal dialogs.
3441 \begin_layout Itemize
3442 Return (also KPEnter): Execute command, ok modal dialog.
3445 \begin_layout Itemize
3446 Pgup/Up (also KP8/9 if no num lock; command mode): Previous command in command
3450 \begin_layout Itemize
3451 Pgdn/Down(also KP2/3 if no num lock; command mode): Next command in command
3455 \begin_layout Itemize
3456 Home (also KP7 if no num lock; command mode): Beginning of command.
3459 \begin_layout Itemize
3460 End (also KP1 if no num lock; command mode): End of command.
3463 \begin_layout Itemize
3464 Left (also KP4 if no num lock; command mode): Move cursor left.
3467 \begin_layout Itemize
3468 Right (also KP6 if no num lock; command mode): Move cursor right.
3471 \begin_layout Itemize
3473 if no num lock; command mode): Delete character to right of cursor.
3476 \begin_layout Itemize
3477 Insert (also KP0 if no num lock; command mode): Toggle between insert /
3481 \begin_layout Itemize
3482 Backspace (command mode): Delete character to left of cursor.
3485 \begin_layout Itemize
3486 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
3489 \begin_layout Subsection
3493 \begin_layout Subsubsection
3497 \begin_layout Standard
3498 Following modifier names are known:
3501 \begin_layout Itemize
3505 \begin_layout Itemize
3509 \begin_layout Itemize
3513 \begin_layout Itemize
3517 \begin_layout Itemize
3521 \begin_layout Subsubsection
3525 \begin_layout Standard
3526 Following key names are known:
3529 \begin_layout Itemize
3530 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
3531 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
3532 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
3533 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3534 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
3535 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3536 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
3537 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
3538 pause, capital, end, home, lefT, up, right, down, select, print, execute,
3539 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
3540 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
3541 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
3542 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
3543 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
3544 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
3545 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
3546 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
3547 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
3548 windows_right, windows_menu, command, special1, special2, special3, special4,
3549 special5, special6, special7, special8, special9, special10, special11,
3550 special12, special13, special14, special15, special16, special17, special18,
3551 special19, special20
3554 \begin_layout Section
3558 \begin_layout Standard
3559 Movie file is .zip archive in itself, normal ZIP archive tools work on it
3560 (note: If you recompress it, do not use compression methods other than
3561 store and deflate and especially do not use encryption of any kind).
3564 \begin_layout Subsection
3565 Detecting clean start/SRAM/Savestate
3568 \begin_layout Itemize
3570 \begin_inset Quotes eld
3574 \begin_inset Quotes erd
3577 it is savestate, otherwise:
3580 \begin_layout Itemize
3581 If file has members with names starting
3582 \begin_inset Quotes eld
3586 \begin_inset Quotes erd
3589 it is movie starting from SRAM, otherwise:
3592 \begin_layout Itemize
3593 It is movie starting from clear state.
3596 \begin_layout Subsection
3600 \begin_layout Standard
3601 Type of game ROM and region (as one line).
3605 \begin_layout Standard
3606 \begin_inset Tabular
3607 <lyxtabular version="3" rows="8" columns="3">
3608 <features tabularvalignment="middle">
3609 <column alignment="center" valignment="top" width="0">
3610 <column alignment="center" valignment="top" width="0">
3611 <column alignment="center" valignment="top" width="0">
3613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3616 \begin_layout Plain Layout
3622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3625 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3634 \begin_layout Plain Layout
3642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3645 \begin_layout Plain Layout
3651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3654 \begin_layout Plain Layout
3660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3663 \begin_layout Plain Layout
3671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3674 \begin_layout Plain Layout
3680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3683 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3692 \begin_layout Plain Layout
3700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3703 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3721 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3732 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3741 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3750 \begin_layout Plain Layout
3758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3761 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3779 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3790 \begin_layout Plain Layout
3796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3799 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3819 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3851 \begin_layout Standard
3855 \begin_layout Standard
3856 \begin_inset Tabular
3857 <lyxtabular version="3" rows="3" columns="2">
3858 <features tabularvalignment="middle">
3859 <column alignment="center" valignment="top" width="0">
3860 <column alignment="center" valignment="top" width="0">
3862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3865 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3874 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3928 \begin_layout Subsection
3932 \begin_layout Standard
3933 Contains type of port #1 (as one line).
3934 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
3935 If not present, defaults to 'gamepad'.
3938 \begin_layout Subsection
3942 \begin_layout Standard
3943 Contains type of port #2 (as one line).
3944 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
3945 'justifier' and 'justifiers'.
3946 If not present, defaults to 'none'.
3949 \begin_layout Subsection
3953 \begin_layout Standard
3954 Contains name of the game (as one line).
3957 \begin_layout Subsection
3961 \begin_layout Standard
3962 Contains authors, one per line.
3963 Part before '|' is the full name, part after is the nickname.
3966 \begin_layout Subsection
3970 \begin_layout Standard
3972 \begin_inset Quotes eld
3976 \begin_inset Quotes erd
3980 Used to reject other saves.
3983 \begin_layout Subsection
3984 Member: controlsversion
3987 \begin_layout Standard
3989 \begin_inset Quotes eld
3993 \begin_inset Quotes erd
3997 Used to identify what controls are there.
4000 \begin_layout Subsection
4002 \begin_inset Quotes eld
4006 \begin_inset Quotes erd
4012 \begin_layout Standard
4013 Contains bsnes core version number (as one line).
4016 \begin_layout Subsection
4020 \begin_layout Standard
4021 Contains project ID (as one line).
4022 Used to identify if two movies are part of the same project.
4025 \begin_layout Subsection
4026 Member: {rom,slota,slotb}{,xml}.sha256
4029 \begin_layout Standard
4030 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4031 Absent if corresponding file is absent.
4034 \begin_layout Subsection
4035 Member: moviesram.<name>
4038 \begin_layout Standard
4039 Raw binary startup SRAM of kind <name>.
4040 Only present in savestates and movies starting from SRAM.
4043 \begin_layout Subsection
4047 \begin_layout Standard
4048 Contains frame number (as one line) of frame movie was saved on.
4049 Only present in savestates.
4052 \begin_layout Subsection
4056 \begin_layout Standard
4057 Current value of lag counter (as one line).
4058 Only present in savestates.
4061 \begin_layout Subsection
4062 Member: pollcounters
4065 \begin_layout Standard
4066 Contains poll counters (currently 100 of them), one per line.
4067 Each line is raw poll count if DRDY is set for it.
4068 Otherwise it is negative poll count minus one.
4069 Only present in savestates.
4072 \begin_layout Subsection
4076 \begin_layout Standard
4077 Raw binary dump of host memory.
4078 Only present in savestates.
4081 \begin_layout Subsection
4085 \begin_layout Standard
4086 The raw binary savestate itself.
4087 Savestate detection uses this file, only present in savestates.
4090 \begin_layout Subsection
4094 \begin_layout Standard
4095 Screenshot of current frame.
4096 Only present in savestates.
4097 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4099 Height of image is inferred from the width and size of data.
4102 \begin_layout Subsection
4106 \begin_layout Standard
4107 Raw binary SRAM of kind <name> at time of savestate.
4108 Only present in savestates.
4111 \begin_layout Subsection
4115 \begin_layout Standard
4116 The actual input track, one line per subframe (blank lines are skipped).
4119 \begin_layout Itemize
4120 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4121 part of same frame as previous, otherwise it starts a new frame.
4124 \begin_layout Itemize
4125 First subframe must start a new frame.
4128 \begin_layout Standard
4129 Length of movie in frames is number of lines in input file that start a
4133 \begin_layout Subsection
4137 \begin_layout Standard
4138 Contains textual base-10 rerecord count (as one line; emulator just writes
4139 this, it doesn't read it) + 1.
4142 \begin_layout Subsection
4146 \begin_layout Standard
4147 This member stores set of load IDs.
4148 There is one load ID per rerecord (plus one corresponding to start of project).
4151 \begin_layout Itemize
4152 This member constists of concatenation of records
4155 \begin_layout Itemize
4156 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4160 \begin_layout Itemize
4161 IDs are interpretted as 256-bit big-endian integers with warparound.
4164 \begin_layout Itemize
4165 Initial predicted ID is all zeroes.
4168 \begin_layout Standard
4169 Format of each record is:
4172 \begin_layout Itemize
4173 1 byte: Opcode byte.
4174 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4178 \begin_layout Itemize
4179 32-prefixlen bytes of ID.
4182 \begin_layout Itemize
4183 countlen bytes of big-endian count (count).
4186 \begin_layout Standard
4187 Records are processed as follows:
4190 \begin_layout Itemize
4191 To form the first ID encoded by record, take the first prefixlen bytes predicted
4192 ID and append the read ID value to it.
4193 The result is the first ID encoded.
4196 \begin_layout Itemize
4197 If countlen is 0, record encodes 1 ID.
4200 \begin_layout Itemize
4201 If countlen is 1, record encodes 2+count IDs.
4204 \begin_layout Itemize
4205 If countlen is 2, record encodes 258+count IDs.
4208 \begin_layout Itemize
4209 If countlen is 3, record encodes 65794+count IDs.
4212 \begin_layout Itemize
4213 The new predicted ID is the next ID after last one encoded by the record.
4216 \begin_layout Standard
4217 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4221 \begin_layout Subsection
4222 Member: starttime.second
4225 \begin_layout Standard
4226 Movie starting time, second part.
4227 Epoch is Unix epoch.
4228 Default is 1,000,000,000.
4231 \begin_layout Subsection
4232 Member: starttime.subsecond
4235 \begin_layout Standard
4236 Movie starting time, subsecond part.
4241 \begin_layout Subsection
4242 Member: savetime.second
4245 \begin_layout Standard
4246 Movie saving time, second part.
4247 Default is starttime.second.
4248 Only present in savestates.
4251 \begin_layout Subsection
4252 Member: savetime.subsecond
4255 \begin_layout Standard
4256 Movie saving time, subsecond part.
4257 Default is starttime.subsecond.
4258 Only present in savestates.
4261 \begin_layout Section
4262 Quick'n'dirty encode guide
4265 \begin_layout Enumerate
4266 Start the emulator and load the movie file.
4269 \begin_layout Enumerate
4270 Set large AVI option 'set-setting avi-large on'
4273 \begin_layout Enumerate
4274 Enable dumping 'dump-avi tmpdump'
4277 \begin_layout Enumerate
4278 Unpause and let it run until you want to end dumping.
4281 \begin_layout Enumerate
4282 Close the emulator (closing the window is the easiest way).
4286 \begin_layout Enumerate
4287 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
4288 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
4291 \begin_layout Enumerate
4292 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
4295 \begin_layout Enumerate
4296 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
4297 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
4300 \begin_layout Enumerate
4301 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
4302 Now final.mkv contains quick'n'dirty encode.
4305 \begin_layout Section
4306 Axis configurations for some gamepad types:
4309 \begin_layout Subsection
4313 \begin_layout Standard
4314 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
4317 \begin_layout LyX-Code
4318 set-axis joystick0axis2 pressure-+
4321 \begin_layout LyX-Code
4322 set-axis joystick0axis5 pressure-+
4325 \begin_layout Itemize
4326 This is needed for SDL only.
4327 EVDEV sets those types correctly.
4330 \begin_layout Subsection
4332 \begin_inset Quotes eld
4336 \begin_inset Quotes erd
4342 \begin_layout Standard
4343 Axes 8-19 should be disabled.
4346 \begin_layout LyX-Code
4347 set-axis joystick0axis8 disabled
4350 \begin_layout LyX-Code
4351 set-axis joystick0axis9 disabled
4354 \begin_layout LyX-Code
4355 set-axis joystick0axis10 disabled
4358 \begin_layout LyX-Code
4359 set-axis joystick0axis11 disabled
4362 \begin_layout LyX-Code
4363 set-axis joystick0axis12 disabled
4366 \begin_layout LyX-Code
4367 set-axis joystick0axis13 disabled
4370 \begin_layout LyX-Code
4371 set-axis joystick0axis14 disabled
4374 \begin_layout LyX-Code
4375 set-axis joystick0axis15 disabled
4378 \begin_layout LyX-Code
4379 set-axis joystick0axis16 disabled
4382 \begin_layout LyX-Code
4383 set-axis joystick0axis17 disabled
4386 \begin_layout LyX-Code
4387 set-axis joystick0axis18 disabled
4390 \begin_layout LyX-Code
4391 set-axis joystick0axis19 disabled
4394 \begin_layout Section
4398 \begin_layout Subsection
4399 Problems from BSNES core:
4402 \begin_layout Itemize
4403 The whole pending save stuff.
4406 \begin_layout Itemize
4407 Lack of layer hiding.
4410 \begin_layout Itemize
4411 It is slow (especially accuracy).
4414 \begin_layout Itemize
4415 Firmwares can't be loaded from ZIP archives.
4418 \begin_layout Subsection
4422 \begin_layout Itemize
4423 Modifiers don't work with pseudo-keys (SDL, EVDEV).
4426 \begin_layout Itemize
4427 Audio for last dumped frame is not itself dumped.
4430 \begin_layout Itemize
4431 Audio in UI is pretty bad in quality if game doesn't run at full speed.
4434 \begin_layout Itemize
4435 AVI compression levels 10-18 are not compatible with AVISynth AVISource.
4438 \begin_layout Itemize
4439 No menus, command based interface (SDL).
4442 \begin_layout Itemize
4443 Long commands don't scroll.
4446 \begin_layout Itemize
4447 Wxwidgets UI is still buggy.
4450 \begin_layout Section
4454 \begin_layout Subsection
4458 \begin_layout Itemize
4462 \begin_layout Itemize
4463 Fix dumper video corruption with levels 10-18.
4466 \begin_layout Subsection
4470 \begin_layout Itemize
4474 \begin_layout Itemize
4475 Lots of code cleanups
4478 \begin_layout Itemize
4479 Lua interface to settings
4482 \begin_layout Itemize
4483 Allow specifying AVI borders without Lua
4486 \begin_layout Itemize
4487 Fix scaling if vscale > 1 and originx > 0 (left border exists)
4490 \begin_layout Itemize
4491 on_snoop lua callback
4494 \begin_layout Itemize
4495 Faster movie loading and saving.
4498 \begin_layout Subsection
4502 \begin_layout Itemize
4506 \begin_layout Subsection
4510 \begin_layout Itemize
4514 \begin_layout Itemize
4515 Save jukebox functionality.
4518 \begin_layout Subsection
4522 \begin_layout Itemize
4523 Try to fix some nasty failing movie load edge cases
4526 \begin_layout Itemize
4527 Allow specifying scripts to run on command line.
4530 \begin_layout Subsection
4534 \begin_layout Itemize
4535 Major source code reorganization.
4538 \begin_layout Itemize
4539 Backup savestates before overwriting.
4542 \begin_layout Itemize
4543 Don't crash if loading initial state fails.
4546 \begin_layout Subsection
4550 \begin_layout Itemize
4554 \begin_layout Itemize
4555 Fix author name parsing
4558 \begin_layout Itemize
4559 Fix rerecord counting
4562 \begin_layout Itemize
4563 (SDL) Print messages to console if SDL is uninitialized
4566 \begin_layout Itemize
4567 Add movieinfo program
4570 \begin_layout Itemize
4571 Fix loading movies starting from SRAM.
4574 \begin_layout Subsection
4578 \begin_layout Itemize
4579 Add support for unattended dumping
4582 \begin_layout Itemize
4583 Fix compiling for Win32
4586 \begin_layout Itemize
4587 Don't lock up if sound can't be initialized
4590 \begin_layout Itemize
4591 Strip trailing CR from commands
4594 \begin_layout Itemize
4595 Don't try to do dubious things in global ctors (fix crash on startup)
4598 \begin_layout Subsection
4602 \begin_layout Itemize
4603 Small documentation tweaking
4606 \begin_layout Itemize
4610 \begin_layout Itemize
4611 Fix major bug in modifier matching
4614 \begin_layout Subsection
4618 \begin_layout Itemize
4619 Lots of documentation fixes
4622 \begin_layout Itemize
4623 Use dedicated callbacks for event backcomm., not commands.
4626 \begin_layout Itemize
4627 Ensure that the watchdog is not hit when executing delayed reset.
4630 \begin_layout Itemize
4631 Remove errant tab from joystick message.
4634 \begin_layout Subsection
4638 \begin_layout Itemize
4639 Make autofire operate in absolute time, not linear time
4642 \begin_layout Itemize
4643 Reinitialize controls when resuming from loadstate
4646 \begin_layout Itemize
4647 Some more code cleanups
4650 \begin_layout Itemize
4651 If Lua allocator fails, call OOM_panic()
4654 \begin_layout Itemize
4655 Byte/word/dword/qword sized host memory write/read functions.
4658 \begin_layout Itemize
4659 Dump at correct framerate if dumping interlaced NTSC (height=448).
4662 \begin_layout Subsection
4666 \begin_layout Itemize
4667 Actually include the complete source code
4670 \begin_layout Itemize
4674 \begin_layout Subsection
4678 \begin_layout Itemize
4679 Document {save,start}time.{,sub}second.
4682 \begin_layout Itemize
4683 Intercept time() from bsnes core.
4686 \begin_layout Subsection
4690 \begin_layout Itemize
4691 Allow disabling time() interception (allow build on Mac OS X)
4694 \begin_layout Itemize
4695 Use SDLMain on Mac OS X (make SDL not crash)
4698 \begin_layout Itemize
4699 Disable delayed resets (just plain too buggy for now).
4702 \begin_layout Itemize
4706 \begin_layout Itemize
4707 Use 16-bit for graphics/video instead of 32-bit.
4710 \begin_layout Itemize
4711 gui.rectangle/gui.pixel
4714 \begin_layout Itemize
4718 \begin_layout Itemize
4719 New CSCD writer implementation.
4722 \begin_layout Subsection
4726 \begin_layout Itemize
4727 Fix interaction of * and +.
4730 \begin_layout Itemize
4734 \begin_layout Itemize
4735 Use gettimeofday()/usleep(), these seem portable enough.
4738 \begin_layout Itemize
4739 Move joystick axis manipulation to keymapper code.
4742 \begin_layout Itemize
4743 Changes to how read-only works.
4746 \begin_layout Itemize
4747 Refactor controller input code.
4750 \begin_layout Subsection
4754 \begin_layout Itemize
4755 Fix mouseclick scale compensation.
4758 \begin_layout Itemize
4759 Draw area boundaries correctly in SDL code.
4762 \begin_layout Itemize
4766 \begin_layout Itemize
4767 Fix CSCD output (buffer overrun and race condition).
4770 \begin_layout Subsection
4774 \begin_layout Itemize
4775 JMD dumping support.
4778 \begin_layout Itemize
4779 Allow unattended dumping to JMD.
4782 \begin_layout Itemize
4786 \begin_layout Itemize
4787 Switch back to 32-bit colors.
4790 \begin_layout Itemize
4791 Add Lua function gui.color.
4794 \begin_layout Itemize
4795 Use some new C++11 features in GCC 4.6.
4798 \begin_layout Itemize
4799 Be prepared for core frequency changes.
4802 \begin_layout Itemize
4803 Pass colors in one chunk from Lua.
4806 \begin_layout Subsection
4810 \begin_layout Itemize
4811 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
4812 memory.read_vma() and memory.find_vma().
4815 \begin_layout Itemize
4816 Numerious documentation fixups
4819 \begin_layout Itemize
4820 RTC time format changed
4823 \begin_layout Itemize
4824 Reformat flags display
4827 \begin_layout Itemize
4828 Allow lua package name to be overridden
4831 \begin_layout Itemize
4832 SDUMP (high-quality dumping).
4835 \begin_layout Itemize
4836 Split platform support to plugins.
4839 \begin_layout Itemize
4840 Make all sound plugins support basic sound commands
4843 \begin_layout Itemize
4844 Support portaudio for sound.
4847 \begin_layout Itemize
4848 Allow disable Lua/SDL searching.
4851 \begin_layout Itemize
4852 Upconvert colors when copying lcscreen to screen.
4855 \begin_layout Itemize
4856 Reorganize source tree.
4859 \begin_layout Itemize
4860 Evdev joystick support.
4863 \begin_layout Itemize
4864 Refactor more code into generic window code.
4867 \begin_layout Subsection
4871 \begin_layout Itemize
4872 Refactor message handling.
4875 \begin_layout Itemize
4879 \begin_layout Itemize
4883 \begin_layout Itemize
4884 Finish pending saves before load/quit.
4887 \begin_layout Itemize
4888 Wxwidgets graphics plugin.
4891 \begin_layout Subsection
4895 \begin_layout Itemize
4896 Get rid of win32-crap.[ch]pp.
4899 \begin_layout Itemize
4900 Move files around a lot.
4903 \begin_layout Itemize
4904 Get rid of need for host C++ compiler.
4907 \begin_layout Itemize
4911 \begin_layout Itemize
4912 Refactor inter-component communication.
4915 \begin_layout Itemize
4919 \begin_layout Itemize
4920 Fix crash on multiline aliases.
4923 \begin_layout Itemize
4924 Load/Save settings in wxwidgets gui.
4927 \begin_layout Subsection
4931 \begin_layout Itemize
4932 Patch problems in bsnes core
4935 \begin_layout Itemize
4936 SNES is little-endian, not big-endian!
4939 \begin_layout Itemize
4940 Fix memory corruption in lcscreen::load()
4943 \begin_layout Subsection
4947 \begin_layout Itemize
4948 Fix interpretting repeat counts in rrdata loading.
4951 \begin_layout Itemize
4952 New lua callback: on_frame()
4955 \begin_layout Itemize
4956 Remove calls to runtosave() that aren't supposed to be there
4959 \begin_layout Itemize
4960 Lua function: movie.read_rtc()
4963 \begin_layout Itemize
4964 Ignore src/fonts/font.cpp
4967 \begin_layout Itemize
4968 Fix more bsnes core problems
4971 \begin_layout Itemize
4972 Control bsnes random seeding
4975 \begin_layout Itemize
4979 \begin_layout Itemize
4980 Some bsnes core debugging features (state dump and state hash)
4983 \begin_layout Itemize
4984 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
4985 it was 'lsnes rr0-beta21').
4988 \begin_layout Subsection
4992 \begin_layout Itemize
4993 Fix memory corruption due to macro/field mixup
4996 \begin_layout Itemize
4997 search-memory update
5000 \begin_layout Itemize
5001 Allow direct-mapped framebuffer
5004 \begin_layout Itemize
5005 SDL: Use SDL_ANYFORMAT if possible
5008 \begin_layout Itemize
5009 SDMP2SOX: 2s delay modes.
5012 \begin_layout Itemize
5016 \begin_layout Itemize
5017 Use sed -E, not sed -r.
5018 Fixes building on Mac OS X.
5021 \begin_layout Itemize
5022 Wxwidgets: Save jukebox on exit
5025 \begin_layout Itemize
5026 Fix RTC if using load-movie on savestate.
5029 \begin_layout Itemize
5030 Fix crash related to full console mode.
5033 \begin_layout Subsection
5037 \begin_layout Itemize
5038 Wxwidgets: Allow bringing application to foreground on Mac OS X.
5041 \begin_layout Itemize
5042 Wxwidgets: Allow compiling on Mac OS X.
5045 \begin_layout Itemize
5046 Use movie compare instead of movie hashing (faster save/load).
5049 \begin_layout Itemize
5053 \begin_layout Subsection
5057 \begin_layout Itemize
5058 sdmp2sox: Pad soundtrack if using -l or -L.
5061 \begin_layout Itemize
5062 sdmp2sox: Fix NTSC overscan.
5065 \begin_layout Itemize
5066 sdmp2sox: Add AR correction mode.
5069 \begin_layout Itemize
5070 call lua_close() when exiting.
5073 \begin_layout Itemize
5074 Fix zip_writer bug causing warnings from info-zip and error from advzip.
5077 \begin_layout Subsection
5081 \begin_layout Itemize
5082 Fix IPS patching code (use bsnes core IPS patcher).
5085 \begin_layout Itemize
5086 Implement BPS patching (using bsnes core IPS patcher).
5089 \begin_layout Itemize
5090 Add feature to load headered ROMs.
5093 \begin_layout Subsection
5097 \begin_layout Itemize
5098 Show command names when showing keybindings
5101 \begin_layout Subsection
5105 \begin_layout Itemize
5106 Fix pause-on-end to be actually controllable
5109 \begin_layout Itemize
5110 SDL: Poll all events in queue, not just first one (fixes slowness in command
5114 \begin_layout Itemize
5115 Wxwidgets: Fix ROM loading.
5118 \begin_layout Subsection
5122 \begin_layout Itemize
5123 Lua: Add gui.textH, gui.textV, gui.textHV
5126 \begin_layout Itemize
5127 Fix text colors on SDL on Mac OS X
5130 \begin_layout Itemize
5131 Mode 'F' for finished in readonly mode.
5134 \begin_layout Itemize
5138 \begin_layout Itemize
5139 Reliably pause after skip poll
5142 \begin_layout Itemize
5143 Split UI and core into their own threads
5146 \begin_layout Subsection
5150 \begin_layout Itemize
5151 Remove leftover dummy SRAM slot
5154 \begin_layout Itemize
5155 Fix controller numbers.
5158 \begin_layout Subsection
5162 \begin_layout Itemize
5163 Fix lsnes-dumpavi after interface change.
5166 \begin_layout Itemize
5167 Also give BSNES patches for v085.
5170 \begin_layout Itemize
5171 Pack movie data in memory.
5174 \begin_layout Subsection
5178 \begin_layout Itemize
5179 Fix framecount/length given when loading movies.
5182 \begin_layout Itemize
5183 Controller command memory leak fixes.
5186 \begin_layout Itemize
5187 Don't leak palette if freeing screen object.
5190 \begin_layout Subsection
5194 \begin_layout Itemize
5198 \begin_layout Itemize
5199 Wxwidgets: Allow controlling dumper from the menu.
5202 \begin_layout Subsection
5206 \begin_layout Itemize
5207 Rewrite parts of manual
5210 \begin_layout Itemize
5211 Lua: Make it work with Lua 5.2.
5214 \begin_layout Subsection
5218 \begin_layout Itemize
5219 Win32: Fix compile errors.
5222 \begin_layout Subsection
5226 \begin_layout Itemize
5227 Refactor controller input code.
5230 \begin_layout Itemize
5231 Fix crash when using command line on SDL / Mac OS X.
5234 \begin_layout Subsection
5238 \begin_layout Itemize
5239 Delete core/coroutine (obsolete)
5242 \begin_layout Itemize
5243 Lag input display by one frame.
5246 \begin_layout Itemize
5247 Rewind movie to beginning function.
5250 \begin_layout Itemize
5251 Fix wrong frame number reported to Lua when repainting after loadstate
5254 \begin_layout Itemize
5255 Support UI editing of jukebox
5258 \begin_layout Itemize
5259 Wxwidgets: Save settings on exit.
5262 \begin_layout Itemize
5263 Support ${project} for filenames
5266 \begin_layout Itemize
5267 SDL: Fix command history
5270 \begin_layout Subsection
5274 \begin_layout Itemize
5275 Fix some order-of-global-ctor bugs.
5278 \begin_layout Subsection
5282 \begin_layout Itemize
5283 Fix crashes when quitting on Win32.
5286 \begin_layout Subsection
5290 \begin_layout Itemize
5291 EVDEV: Queue keypresses from joystick, don't send directly
5294 \begin_layout Itemize
5295 Wxwidgets: Load-Preserve that actually works.
5298 \begin_layout Subsection
5302 \begin_layout Itemize
5303 Wxwidgets: GUI for memory search.
5306 \begin_layout Itemize
5307 Warn about using synchronous queue in UI callback.
5310 \begin_layout Subsection
5314 \begin_layout Itemize
5315 Remember last saved file for each ROM
5318 \begin_layout Itemize
5319 Support MT dumping via boost.
5322 \begin_layout Itemize
5326 \begin_layout Itemize
5330 \begin_layout Itemize
5331 Make mouse be ordinary input instead of special-casing
5334 \begin_layout Itemize
5335 SDL: Don't screw up commands with NUL codepoints.
5338 \begin_layout Subsection
5342 \begin_layout Itemize
5343 Merge status panel and main window
5346 \begin_layout Itemize
5347 True movie slot support (the rest of it)
5350 \begin_layout Itemize
5351 SDL: Fix compilation error
5354 \begin_layout Itemize
5355 Elminate cross calls in dump menu code.
5358 \begin_layout Subsection
5362 \begin_layout Itemize
5363 Cancel pending saves command
5366 \begin_layout Itemize
5367 Wxwidgets: Code refactoring
5370 \begin_layout Itemize
5371 Wxwidgets: Fix system -> reset
5374 \begin_layout Itemize
5375 Wxwidgets: Read watch expressions in the right thread
5378 \begin_layout Subsection
5382 \begin_layout Itemize
5383 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
5387 \begin_layout Itemize
5388 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
5391 \begin_layout Itemize
5392 Don't append trailing '-' to prefix when saving movie.
5395 \begin_layout Itemize
5396 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
5399 \begin_layout Subsection
5403 \begin_layout Itemize
5404 Document memory watch syntax.
5407 \begin_layout Subsection
5411 \begin_layout Itemize
5412 Fix unattended dumping (lsnes-dumpavi)
5415 \begin_layout Itemize
5419 \begin_layout Itemize
5420 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
5423 \begin_layout Itemize
5424 Add option to control sample rate preturbation in AVI dumper
5427 \begin_layout Subsection
5431 \begin_layout Itemize
5432 Wxwidgets: Fix dumper submodes
5435 \begin_layout Itemize
5436 Set core controller types before loadstate
5439 \begin_layout Subsection
5443 \begin_layout Itemize
5444 Fix compiling with bsnes v086.
5447 \begin_layout Subsection
5451 \begin_layout Itemize
5452 Don't prompt before quitting
5455 \begin_layout Itemize
5456 Start unpaused, preserve pause/unpause over load.
5459 \begin_layout Itemize
5460 Try to autodetect if ROM is headered.
5463 \begin_layout Itemize
5464 Wxwidgets: Only bring up ROM patching screen if specifically requested.
5467 \begin_layout Itemize
5468 Allow configuring some hotkeys.