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 SECRET_RABBIT_CODE=<anything>
372 \begin_layout Itemize
373 Signals that SRC (a.k.a.
374 libsamplerate) should be used for high-quality samplerate conversions.
378 \begin_layout Itemize
379 JOYSTICK=<implementation>
383 \begin_layout Itemize
384 Set joystick implementation.
389 \begin_layout Itemize
390 SDL: Use SDL for joystick (requires SDL graphics)
393 \begin_layout Itemize
394 EVDEV: Use EVDEV for joystick (Linux only).
397 \begin_layout Itemize
398 WIN32MM: Use Win32mm for joystick (Windows only).
401 \begin_layout Itemize
402 WXWIDGETS: Use Wxwidgets for joystick (requires WXWIDGETS graphics)
405 \begin_layout Itemize
406 DUMMY: Disable joystick support.
410 \begin_layout Itemize
415 \begin_layout Itemize
416 SOUND=<implementation>
420 \begin_layout Itemize
421 Set sound implementation.
426 \begin_layout Itemize
427 SDL: Use SDL for sound (requires SDL graphics)
430 \begin_layout Itemize
431 PORTAUDIO: Use Portaudio for sound.
434 \begin_layout Itemize
435 DUMMY: Disable sound support
439 \begin_layout Itemize
444 \begin_layout Itemize
445 GRAPHICS=<implementation>
449 \begin_layout Itemize
450 Set windowing library to use.
455 \begin_layout Itemize
456 SDL: Use SDL for graphics
459 \begin_layout Itemize
460 WXWIDGETS: Use wxWidgets for graphics.
464 \begin_layout Itemize
469 \begin_layout Section
473 \begin_layout Subsection
477 \begin_layout Standard
478 <kind> in the following can be one of:
481 \begin_layout Itemize
482 rom: Cartridge ROM (BIOS for special carts).
486 \begin_layout Itemize
487 bsx: BS-X (non-slotted) Game flash ROM.
490 \begin_layout Itemize
491 bsxslotted: BS-X (slotted) Game flash ROM.
494 \begin_layout Itemize
498 \begin_layout Itemize
499 slot-a: Sufami Turbo Slot A ROM
502 \begin_layout Itemize
503 slot-b: Sufami Turbo Slot B ROM
506 \begin_layout Subsubsection
507 --<kind>=<file> (lsnes/SDL, lsnes-avidump)
510 \begin_layout Standard
511 Load <file> as specified ROM (SFC/BS/DMG/ST file format).
514 \begin_layout Subsubsection
515 --<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
518 \begin_layout Standard
519 Override hardware detection for ROM, reading the values from <file> (BSNES
523 \begin_layout Subsubsection
524 --ips-<kind>=<file> (lsnes/SDL, lsnes-avidump)
527 \begin_layout Standard
528 Apply BPS/IPS patch <file> to ROM <kind>.
529 If specified multiple times, the patches are applied in order.
532 \begin_layout Subsubsection
533 --ips-<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
536 \begin_layout Standard
537 Apply BPS/IPS patch <file> to XML of ROM <kind>.
538 If specified multiple times, the patches are applied in order.
541 \begin_layout Subsubsection
542 --ips-offset=<offset> (lsnes/SDL, lsnes-avidump)
545 \begin_layout Standard
546 Set offset to apply to IPS patches.
548 Handy for applying headered IPS patches (use offset of -512 for this).
549 The offset must be 0 for BPS patches.
552 \begin_layout Subsubsection
556 \begin_layout Standard
557 Force ROM to be considered PAL-only.
560 \begin_layout Itemize
561 Only works on SNES and SGB ROMs (not BS-X or Sufami Turbo).
564 \begin_layout Itemize
565 Attempting to load NTSC movie file will error out.
568 \begin_layout Subsubsection
572 \begin_layout Standard
573 Force ROM to be considered NTSC-only.
576 \begin_layout Itemize
577 Attempting to load PAL movie file will error out.
580 \begin_layout Subsection
584 \begin_layout Subsubsection
588 \begin_layout Standard
592 \begin_layout Subsubsection
593 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
596 \begin_layout Standard
597 Load <filename> as movie or savestate file.
598 All other session options are ignored.
601 \begin_layout Subsubsection
602 --port1=<device> (lsnes/SDL)
605 \begin_layout Standard
610 \begin_layout Itemize
611 none: No device connected
614 \begin_layout Itemize
615 gamepad: One gamepad (the default)
618 \begin_layout Itemize
619 multitap: Four gamepads (warning: makes most games refuse to start)
622 \begin_layout Itemize
626 \begin_layout Subsubsection
627 --port2=<type> (lsnes/SDL)
630 \begin_layout Standard
635 \begin_layout Itemize
636 none: No device connected (the default)
639 \begin_layout Itemize
643 \begin_layout Itemize
644 multitap: Four gamepads.
647 \begin_layout Itemize
651 \begin_layout Itemize
652 superscope: Super Scope
655 \begin_layout Itemize
656 justifier: One justifier
659 \begin_layout Itemize
660 justifiers: Two justifiers
663 \begin_layout Subsubsection
664 --gamename=<name> (lsnes/SDL)
667 \begin_layout Standard
668 Set the name of game to <name>.
672 \begin_layout Subsubsection
673 --author=<name> (lsnes/SDL)
676 \begin_layout Standard
677 Add author with full name of <name> (no nickname).
680 \begin_layout Subsubsection
681 --author=|<name> (lsnes/SDL)
684 \begin_layout Standard
685 Add author with nickname of <name> (no full name).
688 \begin_layout Subsubsection
689 --author=<fullname>|<nickname> (lsnes/SDL)
692 \begin_layout Standard
693 Add author with full name of <fullname> and nickname of <nickname>.
696 \begin_layout Subsubsection
697 --rtc-second=<value> (lsnes/SDL)
700 \begin_layout Standard
701 Set RTC second (0 is 1st January 1970 00:00:00Z).
702 Default is 1,000,000,000.
705 \begin_layout Subsubsection
706 --rtc-subsecond=<value> (lsnes/SDL)
709 \begin_layout Standard
716 \begin_layout Subsection
721 \begin_layout Subsubsection
722 --run=<file> (lsnes/SDL)
725 \begin_layout Standard
726 After running main RC file, run this file.
727 If multiple are specified, these execute in order specified.
730 \begin_layout Subsection
731 dump options (lsnes-dumpavi only)
734 \begin_layout Subsubsection
738 \begin_layout Standard
739 Set the dumper to use (required).
740 Use 'list' for listing of known dumpers.
743 \begin_layout Subsubsection
747 \begin_layout Standard
748 Set the mode to use (required for dumpers with multiple modes, forbidden
750 Use 'list' for known modes.
753 \begin_layout Subsubsection
757 \begin_layout Standard
760 \begin_inset Quotes eld
764 \begin_inset Quotes erd
770 \begin_layout Subsubsection
771 --option=<name>=<value>
774 \begin_layout Standard
775 Set option <name> to value <value>.
778 \begin_layout Subsubsection
782 \begin_layout Standard
783 Set number of frames to dump.
787 \begin_layout Subsubsection
791 \begin_layout Standard
792 Run specified lua script (lsnes-dumpavi does not have initialization files).
795 \begin_layout Subsubsection
796 --load-library=<library>
799 \begin_layout Standard
800 Load the specified shared object / dynamic library / dynamic link library.
803 \begin_layout Section
804 Startup file lsnes.rc
807 \begin_layout Standard
808 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
809 This file is located in:
812 \begin_layout Itemize
817 lsnes.rc (if %APPDATA% exists)
820 \begin_layout Itemize
821 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
824 \begin_layout Itemize
825 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
828 \begin_layout Itemize
829 All: ./lsnes.rc (fallback default).
832 \begin_layout Standard
833 If leading directories do not exist, attempt to create them is made.
836 \begin_layout Section
840 \begin_layout Itemize
841 Commands beginning with '*' invoke the corresponding command without alias
845 \begin_layout Itemize
846 If command starts with '+' (after possible '*'), the command is executed
847 as-is when button is pressed, and when button is released, it is executed
848 with '+' replaced by '-'.
851 \begin_layout Itemize
852 Commands without '+' execute only on negative edge (release).
855 \begin_layout Subsection
859 \begin_layout Standard
860 Settings control various aspects of emulator behaviour.
863 \begin_layout Subsubsection
864 set-setting <setting> <value>
867 \begin_layout Standard
868 Sets setting <setting> to value <value> (may be empty).
871 \begin_layout Subsubsection
872 unset-setting <setting>
875 \begin_layout Standard
876 Try to unset setting <setting> (not all settings can be unset).
879 \begin_layout Subsubsection
880 get-setting <setting>
883 \begin_layout Standard
884 Read value of setting <setting>
887 \begin_layout Subsubsection
891 \begin_layout Standard
892 Print names and values of all settings.
895 \begin_layout Subsection
899 \begin_layout Standard
900 Keybindings bind commands or aliases to keys (or pseudo-keys).
904 \begin_layout Standard
908 \begin_layout Itemize
909 Do not bind edge active (+/-) commands to keys with modifiers, that won't
913 \begin_layout Itemize
914 Names of keys and modifiers are platform-dependent.
917 \begin_layout Itemize
918 Be careful before binding pseudo-keys (such as joystick axes, buttons or
919 hats) with modifiers.
920 That may or may not work right.
923 \begin_layout Subsubsection
924 bind-key [<mod>/<modmask>] <key> <command>
927 \begin_layout Standard
928 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
929 ed list) are set as <mod> (comma-seperated list).
932 \begin_layout Standard
933 The names of keys and modifiers are platform-dependent.
936 \begin_layout Subsubsection
937 unbind-key [<mod>/<modmask>] <key>
940 \begin_layout Standard
941 Unbind command from <key> (with specified <mod> and <modmask>).
944 \begin_layout Subsubsection
945 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
946 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
947 [plus=<val>] [tolerance=<val>]
950 \begin_layout Standard
951 Set axis parameters for axis <axis>.
954 \begin_layout Itemize
955 disabled: Disable axis
958 \begin_layout Itemize
962 \begin_layout Itemize
963 axis-inverse: Inverse axis
966 \begin_layout Itemize
967 pressure0-: Pressure sensitive.
968 Released at 0, pressed at -.
971 \begin_layout Itemize
972 pressure0+: Pressure sensitive.
973 Released at 0, pressed at +.
976 \begin_layout Itemize
977 pressure-0: Pressure sensitive.
978 Released at -, pressed at 0.
981 \begin_layout Itemize
982 pressure-+: Pressure sensitive.
983 Released at -, pressed at +.
986 \begin_layout Itemize
987 pressure+0: Pressure sensitive.
988 Released at +, pressed at 0.
991 \begin_layout Itemize
992 pressure+-: Pressure sensitive.
993 Released at +, pressed at -.
996 \begin_layout Itemize
997 minus=<val>: Calibration at extreme minus position (-32768-32767)
1000 \begin_layout Itemize
1001 zero=<val>: Calibration at neutral position (-32768-32767)
1004 \begin_layout Itemize
1005 plus=<val>: Calibration at extreme plus position (-32768-32767)
1008 \begin_layout Itemize
1009 tolerance=<value>: Center band tolerance (0<x<1).
1010 The smaller the value, the more sensitive the control is.
1013 \begin_layout Subsubsection
1017 \begin_layout Standard
1018 Print all key bindings in effect.
1021 \begin_layout Subsection
1025 \begin_layout Standard
1026 Aliases bind command to sequence of commands.
1027 After alias has been defined, it replaces the command it shadows.
1030 \begin_layout Standard
1034 \begin_layout Itemize
1035 You can't alias command to itself.
1038 \begin_layout Itemize
1039 Aliases starting with +/- are edge active just like ordinary commands starting
1043 \begin_layout Itemize
1044 One command can be aliased to multiple commands.
1047 \begin_layout Subsubsection
1048 alias-command <command> <expansion>
1051 \begin_layout Standard
1052 Append <expansion> to alias <command>.
1053 If alias does not already exist, it is created.
1056 \begin_layout Subsubsection
1057 unalias-command <command>
1060 \begin_layout Standard
1061 Clear alias expansion for <command>.
1064 \begin_layout Subsubsection
1068 \begin_layout Standard
1069 Print all aliases and their expansions in effect.
1072 \begin_layout Subsection
1076 \begin_layout Standard
1077 Run <script> as if commands were entered on the command line.
1080 \begin_layout Subsection
1084 \begin_layout Standard
1085 Following commands control video dumping:
1088 \begin_layout Subsubsection
1089 start-dump <dumper> [<mode>] <prefix/filename>
1092 \begin_layout Standard
1093 Start dumping using dumper <dumper>.
1094 If mode is present or not and if prefix or filename is present depends
1095 on the dumper and dumper mode.
1098 \begin_layout Standard
1099 The following dumpers are available:
1102 \begin_layout Itemize
1103 INTERNAL-AVI-CSCD: Internal CSCD in .avi dumper.
1107 \begin_layout Itemize
1108 Mode: uncompressed/pcm: Uncompressed video, PCM audio.
1112 \begin_layout Itemize
1113 Mode: cscd/pcm: CSCD video, PCM audio.
1118 \begin_layout Itemize
1119 INTERNAL-JMD: Internal .jmd dumper.
1123 \begin_layout Itemize
1127 \begin_layout Itemize
1132 \begin_layout Itemize
1133 INTERNAL-RAW: Internal RAW dumper.
1137 \begin_layout Itemize
1141 \begin_layout Itemize
1145 \begin_layout Itemize
1146 Sound is big-endian signed 16-bit, usually at 32040.5Hz.
1149 \begin_layout Itemize
1150 Video is always upscaled to double resolution (512x448 / 512 x 478).
1153 \begin_layout Itemize
1154 Video framerate is usually 322445/6448 fps for PAL and 10738636/178683 fps
1159 \begin_layout Itemize
1160 INTERNAL-SDMP: Internal SDMP dumper.
1164 \begin_layout Itemize
1165 Mode 'ms': Multi-segment.
1169 \begin_layout Itemize
1170 Mode 'ss': Single-segment.
1175 \begin_layout Subsubsection
1179 \begin_layout Standard
1180 End dumping using <dumper>
1183 \begin_layout Subsubsection
1184 show-dumpers [<dumper>]
1187 \begin_layout Standard
1188 Show the list of dumpers or list of modes for <dumper>
1191 \begin_layout Subsection
1195 \begin_layout Standard
1196 <address> may be decimal or hexadecimal (prefixed with '0x').
1197 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
1201 \begin_layout Standard
1202 The available element <sizes> are:
1205 \begin_layout Itemize
1209 \begin_layout Itemize
1213 \begin_layout Itemize
1217 \begin_layout Itemize
1221 \begin_layout Standard
1222 When reading RAM and ROM, multi-byte reads/writes are big-endian.
1223 When dealing with DSP memory, multi-byte reads/writes are native-endian
1224 (do not use operand sizes exceeding DSP bitness, except dword is OK for
1228 \begin_layout Subsubsection
1229 read-<size> <address>
1232 \begin_layout Standard
1233 Read the value of byte in <address>.
1236 \begin_layout Subsubsection
1237 read-s<size> <address>
1240 \begin_layout Standard
1241 Read the value of signed byte in <address>.
1244 \begin_layout Subsubsection
1245 write-<size> <address> <value>
1248 \begin_layout Standard
1249 Write <value> to byte in address <address>.
1252 \begin_layout Subsubsection
1256 \begin_layout Standard
1257 Reset the memory search
1260 \begin_layout Subsubsection
1264 \begin_layout Standard
1265 Print number of candidates remaining
1268 \begin_layout Subsubsection
1272 \begin_layout Standard
1273 Print all candidates remaining
1276 \begin_layout Subsubsection
1277 search-memory <usflag><sizeflag><op>
1280 \begin_layout Standard
1281 Searches memory for addresses satisfying criteria.
1284 \begin_layout Standard
1288 \begin_layout Itemize
1292 \begin_layout Itemize
1296 \begin_layout Standard
1300 \begin_layout Itemize
1304 \begin_layout Itemize
1308 \begin_layout Itemize
1312 \begin_layout Itemize
1316 \begin_layout Standard
1320 \begin_layout Itemize
1321 lt: < previous value.
1324 \begin_layout Itemize
1325 le: <= previous value.
1328 \begin_layout Itemize
1329 eq: = previous value.
1332 \begin_layout Itemize
1333 ne: != previous value.
1336 \begin_layout Itemize
1337 ge: >= previous value.
1340 \begin_layout Itemize
1341 gt: > previous value.
1344 \begin_layout Subsubsection
1345 search-memory <sizeflag> <value>
1348 \begin_layout Standard
1349 Searches for addresses that currently have value <value>.
1350 <sizeflag> is as in previous command.
1353 \begin_layout Subsection
1357 \begin_layout Standard
1358 These commands are not available in lsnesrc, but are available after ROM
1362 \begin_layout Subsubsection
1366 \begin_layout Standard
1367 Quits the emulator (asking for confirmation).
1368 If /y is given, no confirmation is asked.
1371 \begin_layout Subsubsection
1375 \begin_layout Standard
1376 Toggle paused/unpaused
1379 \begin_layout Subsubsection
1383 \begin_layout Standard
1385 If the button is still held after configurable timeout expires, game unpauses
1386 for the duration frame advance is held.
1389 \begin_layout Subsubsection
1393 \begin_layout Standard
1395 If the button is still held after configurable timeout expires, game unpauses
1396 for the duration frame advance is held.
1399 \begin_layout Subsubsection
1403 \begin_layout Standard
1404 Skip to first poll in frame after current.
1407 \begin_layout Subsubsection
1411 \begin_layout Standard
1412 Reset the SNES after this frame.
1415 \begin_layout Subsubsection
1419 \begin_layout Standard
1420 Load savestate <filename> in current mode.
1423 \begin_layout Subsubsection
1424 load-state <filename>
1427 \begin_layout Standard
1428 Load savestate <filename> in readwrite mode.
1431 \begin_layout Subsubsection
1432 load-readonly <filename>
1435 \begin_layout Standard
1436 Load savestate <filename> in readonly mode.
1439 \begin_layout Subsubsection
1440 load-preserve <filename>
1443 \begin_layout Standard
1444 Load savestate <filename> in readonly mode, preserving current events.
1447 \begin_layout Subsubsection
1448 load-movie <filename>
1451 \begin_layout Standard
1452 Load savestate <filename>, ignoring save part in readonly mode.
1455 \begin_layout Subsubsection
1456 save-state <filename>
1459 \begin_layout Standard
1460 Save system state to <filename> as soon as possible.
1463 \begin_layout Subsubsection
1464 save-movie <filename>
1467 \begin_layout Standard
1468 Save movie to <filename>.
1471 \begin_layout Subsubsection
1475 \begin_layout Standard
1476 Set read-write mode.
1479 \begin_layout Subsubsection
1483 \begin_layout Standard
1487 \begin_layout Subsubsection
1491 \begin_layout Standard
1492 Toggle between read-only and read-write modes.
1495 \begin_layout Subsubsection
1499 \begin_layout Standard
1500 Set name of the game to <name>
1503 \begin_layout Subsubsection
1507 \begin_layout Standard
1508 Print the name of the game.
1511 \begin_layout Subsubsection
1515 \begin_layout Standard
1516 Adds new author <author>.
1517 If <author> does not contain '|' it is full name.
1518 If it contains '|', '|' splits the full name and nickname.
1521 \begin_layout Subsubsection
1522 edit-author <num> <author>
1525 \begin_layout Standard
1526 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1530 \begin_layout Subsubsection
1534 \begin_layout Standard
1535 Remove author in slot <num>
1538 \begin_layout Subsubsection
1542 \begin_layout Standard
1546 \begin_layout Subsubsection
1547 test-1, test-2, test-3
1550 \begin_layout Standard
1551 Internal test commands.
1555 \begin_layout Subsubsection
1556 take-screenshot <filename>
1559 \begin_layout Standard
1560 Save screenshot to <filename>.
1563 \begin_layout Subsubsection
1564 +controller<num><button>
1567 \begin_layout Standard
1568 Press button <button> on controller <num> (1-8).
1569 The following button names are known:
1572 \begin_layout Itemize
1576 \begin_layout Itemize
1580 \begin_layout Itemize
1584 \begin_layout Itemize
1588 \begin_layout Itemize
1592 \begin_layout Itemize
1596 \begin_layout Itemize
1600 \begin_layout Itemize
1604 \begin_layout Itemize
1608 \begin_layout Itemize
1612 \begin_layout Itemize
1616 \begin_layout Itemize
1620 \begin_layout Itemize
1624 \begin_layout Itemize
1628 \begin_layout Itemize
1632 \begin_layout Itemize
1636 \begin_layout Subsubsection
1637 controllerh<num><button>
1640 \begin_layout Standard
1641 Hold/unhold button <button> on controller <num> (1-8).
1642 See +controller for button names.
1645 \begin_layout Subsubsection
1646 autofire (<pattern>|-)...
1649 \begin_layout Standard
1650 Set autofire pattern.
1651 Each parameter is comma-separated list of button names (in form of 1start,
1652 1A, 2B, etc..) to hold on that frame.
1653 After reaching the end of pattern, the pattern restarts from the beginning.
1656 \begin_layout Subsubsection
1660 \begin_layout Standard
1664 \begin_layout Subsection
1668 \begin_layout Subsubsection
1669 cycle-jukebox-backward
1672 \begin_layout Standard
1673 Cycle save jukebox backwards.
1676 \begin_layout Subsubsection
1677 cycle-jukebox-forward
1680 \begin_layout Standard
1681 Cycle save jukebox forwards
1684 \begin_layout Subsubsection
1688 \begin_layout Standard
1689 Do load from jukebox (current mode).
1692 \begin_layout Subsubsection
1696 \begin_layout Standard
1697 Do state save to jukebox.
1700 \begin_layout Subsection
1704 \begin_layout Standard
1705 Only available if lua support is compiled in.
1708 \begin_layout Subsubsection
1709 evaluate-lua <luacode>
1712 \begin_layout Standard
1713 Run Lua code <luacode> using built-in Lua interpretter.
1716 \begin_layout Subsubsection
1720 \begin_layout Standard
1721 Run specified lua file using built-in Lua interpretter.
1724 \begin_layout Subsection
1728 \begin_layout Subsubsection
1729 add-watch <name> <expression>
1732 \begin_layout Standard
1733 Adds new watch (or modifies old one).
1736 \begin_layout Subsubsection
1740 \begin_layout Standard
1744 \begin_layout Subsection
1748 \begin_layout Subsubsection
1749 enable-sound <on/off>
1752 \begin_layout Standard
1753 Enable/Disable sound.
1756 \begin_layout Subsubsection
1757 set-sound-device <device>
1760 \begin_layout Standard
1761 Set sound device to <device>
1764 \begin_layout Subsubsection
1768 \begin_layout Standard
1769 Show status of sound system.
1772 \begin_layout Subsubsection
1776 \begin_layout Standard
1777 Show all available devices.
1780 \begin_layout Subsubsection
1781 set-volume <multiplier>
1784 \begin_layout Standard
1785 Set the volume multiplier to <multiplier>.
1786 1 is normal volume, and higher numbers are louder.
1789 \begin_layout Subsubsection
1790 set-volume <multiplier>%
1793 \begin_layout Standard
1794 Set the volume multiplier to <multiplier> percent.
1795 100 is normal volume, and higher numbers are louder.
1798 \begin_layout Subsubsection
1799 set-volume <multiplier>dB
1802 \begin_layout Standard
1803 Set the volume multiplier to <multiplier> dB.
1804 0 is normal volume, and higher numbers are louder.
1805 The value may be negative.
1808 \begin_layout Subsection
1809 SDL Platform commands
1812 \begin_layout Standard
1813 The following are valid on SDL platform.
1816 \begin_layout Subsubsection
1820 \begin_layout Standard
1821 Asks to press a key and then identifies that (pseudo-)key.
1824 \begin_layout Subsubsection
1828 \begin_layout Standard
1829 Toggle between windowed/fullscreen console.
1832 \begin_layout Subsubsection
1836 \begin_layout Standard
1837 Scroll messages window as far back as it goes.
1840 \begin_layout Subsubsection
1844 \begin_layout Standard
1845 Scroll messages window as far forward as it goes.
1848 \begin_layout Subsubsection
1852 \begin_layout Standard
1853 Scroll messages window back one screenful.
1856 \begin_layout Subsubsection
1860 \begin_layout Standard
1861 Scroll messages window forward one screenful.
1864 \begin_layout Section
1868 \begin_layout Subsection
1872 \begin_layout Subsubsection
1876 \begin_layout Standard
1877 Set where bsnes looks for firmware files.
1879 \begin_inset Quotes eld
1883 \begin_inset Quotes erd
1889 \begin_layout Subsubsection
1893 \begin_layout Standard
1895 Numeric, range is 0.001 to
1896 \begin_inset Quotes eld
1900 \begin_inset Quotes erd
1904 Default is native framerate.
1907 \begin_layout Subsubsection
1911 \begin_layout Standard
1912 Set save compression level (integer 0-9).
1913 Default is 7 (0 is no compression).
1916 \begin_layout Subsubsection
1920 \begin_layout Standard
1921 Set the frame advance timeout in milliseconds.
1922 Numeric integer, range is 0-999999999.
1926 \begin_layout Subsection
1930 \begin_layout Subsubsection
1934 \begin_layout Standard
1935 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1939 \begin_layout Subsubsection
1943 \begin_layout Standard
1944 AVI dumper: Set the default left border thickness (unless lua overrides)
1950 \begin_layout Subsubsection
1954 \begin_layout Standard
1955 AVI dumper: Set the default right border thickness (unless lua overrides)
1961 \begin_layout Subsubsection
1965 \begin_layout Standard
1966 AVI dumper: Set the default top border thickness (unless lua overrides)
1972 \begin_layout Subsubsection
1976 \begin_layout Standard
1977 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1983 \begin_layout Subsubsection
1987 \begin_layout Standard
1988 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1993 \begin_layout Subsubsection
1997 \begin_layout Standard
1998 AVI dumper: Compression level (0-18).
2001 \begin_layout Itemize
2002 Compression levels 10 and above are not compatible with stock CSCD codec.
2005 \begin_layout Itemize
2006 Recomended level is 7.
2009 \begin_layout Subsubsection
2013 \begin_layout Standard
2014 AVI dumper: Set method of determining the sound rate.
2017 \begin_layout Itemize
2018 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
2019 128, 176.4 and 192 kHz.
2022 \begin_layout Itemize
2023 1: Round down to nearest integer.
2026 \begin_layout Itemize
2027 2: Round up to nearest ingeter.
2030 \begin_layout Subsection
2034 \begin_layout Subsubsection
2038 \begin_layout Standard
2039 JMD dumper: Compression level (0-9).
2042 \begin_layout Subsection
2043 SDL platform settings
2046 \begin_layout Subsubsection
2047 autorepeat-first-delay
2050 \begin_layout Standard
2051 Sets the delay for first character in typematic autorepeat.
2054 \begin_layout Subsubsection
2055 autorepeat-subsequent-delay
2058 \begin_layout Standard
2059 Sets the delay for subsequent characters in typematic autorepeat.
2062 \begin_layout Section
2066 \begin_layout Subsection
2067 Core (in main table)
2070 \begin_layout Subsubsection
2074 \begin_layout Standard
2075 Print line to message console.
2078 \begin_layout Subsubsection
2079 exec(string command)
2082 \begin_layout Standard
2083 Run command as it was entered on the command line
2086 \begin_layout Subsubsection
2090 \begin_layout Standard
2092 First is time since some epoch in seconds, the second is microseconds mod
2093 10^6 since that epoch.
2096 \begin_layout Subsubsection
2100 \begin_layout Standard
2101 Returns true if emulator has finished booting, false if not (on_startup()
2102 will be issued later).
2105 \begin_layout Subsubsection
2106 set_idle_timeout(number timeout)
2109 \begin_layout Standard
2110 Set number of microseconds to block idle for.
2111 After this timeout has expired, on_idle() will be called once.
2114 \begin_layout Subsubsection
2115 set_timer_timeout(number timeout)
2118 \begin_layout Standard
2119 Set number of microseconds to block timer for.
2120 After this timeout has expired, on_timer() will be called once.
2123 \begin_layout Subsection
2127 \begin_layout Standard
2128 Bitwise logical functions and related.
2131 \begin_layout Subsubsection
2132 bit.none(number...) / bit.bnot(number...)
2135 \begin_layout Standard
2136 48-bit bitwise NOT / NONE function (set bits that are set in none of the
2140 \begin_layout Subsubsection
2141 bit.any(number...) / bit.bor(number...)
2144 \begin_layout Standard
2145 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
2148 \begin_layout Subsubsection
2149 bit.all(number...) / bit.band(number...)
2152 \begin_layout Standard
2153 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
2157 \begin_layout Subsubsection
2158 bit.parity(number...) / bit.bxor(number...)
2161 \begin_layout Standard
2162 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
2166 \begin_layout Subsubsection
2167 bit.lrotate(number base[, number amount[, number bits]])
2170 \begin_layout Standard
2171 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
2174 \begin_layout Subsubsection
2175 bit.rrotate(number base[, number amount[, number bits]])
2178 \begin_layout Standard
2179 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
2183 \begin_layout Subsubsection
2184 bit.lshift(number base[, number amount[, number bits]])
2187 \begin_layout Standard
2188 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
2189 The new bits are filled with zeroes.
2192 \begin_layout Subsubsection
2193 bit.lrshift(number base[, number amount[, number bits]])
2196 \begin_layout Standard
2197 Shift bits-bit (max 48, default 48) number logically right by amount (default
2199 The new bits are filled with zeroes.
2202 \begin_layout Subsubsection
2203 bit.arshift(number base[, number amount[, number bits]])
2206 \begin_layout Standard
2207 Shift bits-bit (max 48, default 48) number arithmetically right by amount
2209 The new bits are shifted in with copy of the high bit.
2212 \begin_layout Subsubsection
2213 bit.extract(number base[, number bit0[, number bit1,...]])
2216 \begin_layout Standard
2217 Returns number that has bit0-th bit as bit 0, bit1-th bit as 1 and so on.
2220 \begin_layout Standard
2224 \begin_layout Itemize
2225 Bit numbers up to 51 should work reliably (then things start falling apart
2226 due to double precision issues).
2229 \begin_layout Itemize
2230 There are two special bit positions, true and false, standing for always
2231 set bit and always clear bit.
2234 \begin_layout Subsubsection
2235 bit.value([number bit1[, number bit2,...]])
2238 \begin_layout Standard
2239 Returns bitwise OR of 1 left shifted by bit1 places, 1 left shifted by bit2
2241 As special value, nil argument is no-op.
2244 \begin_layout Subsection
2248 \begin_layout Standard
2249 Most of these functions can only be called in on_paint and on_video callbacks.
2250 Exceptions are noted.
2253 \begin_layout Standard
2255 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
2256 16-23 are the red component, bits 24-31 are alpha component (0 is fully
2257 opaque, 255 is almost transparent).
2258 -1 is the fully transparent color.
2259 Alpha values greater than 127 do work.
2262 \begin_layout Standard
2263 Origin of coordinates is at top left corner of game display area.
2264 Left and top gaps correspond to negative coordinates.
2267 \begin_layout Subsubsection
2271 \begin_layout Standard
2272 Returns 2-tuple (hresolution, vresolution).
2275 \begin_layout Subsubsection
2276 gui.<class>_gap(number gap)
2279 \begin_layout Standard
2280 Set the <class> (left, right, top, bottom) gap to specified value (max gap
2284 \begin_layout Subsubsection
2285 gui.text(number x, number y, string text[, number fgc[, number bgc]])
2288 \begin_layout Standard
2289 Draw specified text on the GUI (each character cell is 8 or 16 wide and
2294 \begin_layout Itemize
2295 x: X-coordinate to start the drawing from (and x-coordinate at begining
2299 \begin_layout Itemize
2300 y: Y-coordinate to start the drawing from.
2303 \begin_layout Itemize
2304 text: The text to draw.
2307 \begin_layout Itemize
2308 fgc: Text color (default is 0xFFFFFF (white))
2311 \begin_layout Itemize
2312 bgc: Background color (default is -1 (transparent))
2315 \begin_layout Subsubsection
2316 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
2319 \begin_layout Standard
2320 Like gui.text, but draw using double-width.
2323 \begin_layout Subsubsection
2324 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
2327 \begin_layout Standard
2328 Like gui.text, but draw using double-height.
2331 \begin_layout Subsubsection
2332 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
2335 \begin_layout Standard
2336 Like gui.text, but draw using double-width/double-height.
2339 \begin_layout Subsubsection
2340 gui.rectangle(number x, number y, number width, number height[, number thickness[
2341 , number outline[, number fill]]])
2344 \begin_layout Standard
2345 Draw rectangle on the GUI.
2349 \begin_layout Itemize
2350 x: X-coordinate of left edge.
2353 \begin_layout Itemize
2354 y: Y-coordinate of upper edge.
2357 \begin_layout Itemize
2358 width: Width of rectangle.
2361 \begin_layout Itemize
2362 height: Height of rectangle.
2365 \begin_layout Itemize
2366 thickness: Thickness of outline (default is 1).
2369 \begin_layout Itemize
2370 outline: Color of outline (default is 0xFFFFFF (white))
2373 \begin_layout Itemize
2374 fill: Color of fill (default is -1 (transparent))
2377 \begin_layout Subsubsection
2378 gui.box(number x, number y, number width, number height[, number thickness[,
2379 number outline1[,number outline2[, number fill]]]])
2382 \begin_layout Standard
2383 Draw rectangle with 3D effect on the GUI.
2387 \begin_layout Itemize
2388 x: X-coordinate of left edge.
2391 \begin_layout Itemize
2392 y: Y-coordinate of upper edge.
2395 \begin_layout Itemize
2396 width: Width of rectangle.
2399 \begin_layout Itemize
2400 height: Height of rectangle.
2403 \begin_layout Itemize
2404 thickness: Thickness of outline (default is 1).
2407 \begin_layout Itemize
2408 outline1: First color of outline (default is 0xFFFFFF (white))
2411 \begin_layout Itemize
2412 outline2: First color of outline (default is 0x808080 (dark gray))
2415 \begin_layout Itemize
2416 fill: Color of fill (default is 0xC0C0C0 (light grayy))
2419 \begin_layout Subsubsection
2420 gui.pixel(number x, number y[, number color])
2423 \begin_layout Standard
2424 Draw one pixel on the GUI.
2428 \begin_layout Itemize
2429 x: X-coordinate of the pixel
2432 \begin_layout Itemize
2433 y: Y-coordinate of the pixel
2436 \begin_layout Itemize
2437 color: Color of the pixel (default is 0xFFFFFF (white))
2440 \begin_layout Subsubsection
2441 gui.crosshair(number x, number y[, number length[, number color]])
2444 \begin_layout Standard
2449 \begin_layout Itemize
2450 x: X-coordinate of the crosshair
2453 \begin_layout Itemize
2454 y: Y-coordinate of the crosshair
2457 \begin_layout Itemize
2458 length: Length of the crosshair lines (default 10).
2461 \begin_layout Itemize
2462 color: Color of the crosshair (default is 0xFFFFFF (white))
2465 \begin_layout Subsubsection
2466 gui.line(number x1, number y1, number x2, number y2[, number color])
2469 \begin_layout Standard
2474 \begin_layout Itemize
2475 x1: X-coordinate of one end.
2478 \begin_layout Itemize
2479 y1: Y-coordinate of one end.
2482 \begin_layout Itemize
2483 x2: X-coordinate of the other end.
2486 \begin_layout Itemize
2487 y2: Y-coordinate of the other end.
2490 \begin_layout Itemize
2491 color: Color of the line (default is 0xFFFFFF (white)).
2494 \begin_layout Subsubsection
2495 gui.circle(number x, number y, number r[, number thick[, number border[,
2499 \begin_layout Standard
2504 \begin_layout Itemize
2505 x: X-coordinate of the center
2508 \begin_layout Itemize
2509 y: Y-coordinate of the center
2512 \begin_layout Itemize
2513 r: The radius of the circle
2516 \begin_layout Itemize
2517 thick: Border thickness
2520 \begin_layout Itemize
2521 border: Border color (default is 0xFFFFFF (white))
2524 \begin_layout Itemize
2525 fill: Fill color (default is -1 (transparent)).
2528 \begin_layout Subsubsection
2529 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
2532 \begin_layout Standard
2533 Draw a bitmap on screen with specified palette.
2537 \begin_layout Itemize
2538 x: X-coordinate of left edge.
2541 \begin_layout Itemize
2542 y: Y-coordinate of top edge.
2545 \begin_layout Itemize
2546 bitmap: The bitmap to draw
2549 \begin_layout Itemize
2550 palette: The palette to draw the bitmap using.
2553 \begin_layout Subsubsection
2554 gui.bitmap_draw(number x, number y, dbitmap bitmap)
2557 \begin_layout Standard
2558 Draw a bitmap on screen.
2562 \begin_layout Itemize
2563 x: X-coordinate of left edge.
2566 \begin_layout Itemize
2567 y: Y-coordinate of top edge.
2570 \begin_layout Itemize
2571 bitmap: The bitmap to draw
2574 \begin_layout Subsubsection
2578 \begin_layout Standard
2579 Returns a new palette (initially all transparent).
2580 Can be used anywhere.
2583 \begin_layout Subsubsection
2584 gui.bitmap_new(number w, number h, boolean direct[, bool icolor])
2587 \begin_layout Standard
2588 Returns a new bitmap/dbitmap.
2589 Can be used anywhere.
2593 \begin_layout Itemize
2594 w: The width of new bitmap
2597 \begin_layout Itemize
2598 h: The height of new bitmap
2601 \begin_layout Itemize
2602 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
2605 \begin_layout Itemize
2606 icolor: Initital fill color (defaults to 0 on BITMAP, -1 on DBITMAP)
2609 \begin_layout Subsubsection
2610 gui.bitmap_load(string file)
2613 \begin_layout Standard
2614 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
2616 Can be used anywhere.
2620 \begin_layout Itemize
2621 file: The name of file to load.
2624 \begin_layout Subsubsection
2625 gui.palette_set(palette palette, number index, number color)
2628 \begin_layout Standard
2629 Sets color in palette.
2630 Can be used anywhere.
2634 \begin_layout Itemize
2635 palette: The palette to manipulate
2638 \begin_layout Itemize
2639 index: Index of color (0-65535).
2642 \begin_layout Itemize
2643 color: The color value.
2646 \begin_layout Subsubsection
2647 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
2650 \begin_layout Standard
2651 Sets specified pixel in bitmap.
2652 Can be used anywhere.
2656 \begin_layout Itemize
2657 bitmap: The bitmap to manipulate
2660 \begin_layout Itemize
2661 x: The x-coordinate of the pixel.
2664 \begin_layout Itemize
2665 y: The y-coordinate of the pixel.
2668 \begin_layout Itemize
2669 color: If bitmap is a bitmap, color index (0-65535).
2670 Otherwise color value.
2673 \begin_layout Subsubsection
2674 gui.bitmap_size(bitmap/dbitmap bitmap)
2677 \begin_layout Standard
2679 Can be used anywhere.
2683 \begin_layout Itemize
2684 bitmap: The bitmap to query.
2687 \begin_layout Standard
2688 The first return is the width, the second is the height.
2691 \begin_layout Subsubsection
2692 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
2693 src, number sx, number sy, number w, number h[, number ck])
2696 \begin_layout Standard
2697 Blit a part of bitmap to another.
2698 Can be used anywhere.
2702 \begin_layout Itemize
2703 dest: Destination to blit to.
2706 \begin_layout Itemize
2707 dx: left edge of target
2710 \begin_layout Itemize
2711 dy: Top edge of target
2714 \begin_layout Itemize
2715 src: The source to blit from.
2716 Must be of the same type as destination.
2719 \begin_layout Itemize
2720 sx: left edge of source
2723 \begin_layout Itemize
2724 sy: Top edge of source
2727 \begin_layout Itemize
2731 \begin_layout Itemize
2732 h: Height of region.
2735 \begin_layout Itemize
2737 Pixels of this color are not blitted.
2741 \begin_layout Itemize
2742 If bitmaps are bitmaps, this is color index of colorkey.
2743 Values outside range 0-65535 cause no key to be used as colorkey.
2746 \begin_layout Itemize
2747 If bitmaps are dbitmaps, this color value of colorkey.
2750 \begin_layout Itemize
2751 May be absent or nil for no colorkey blit.
2755 \begin_layout Subsubsection
2759 \begin_layout Standard
2760 Request on_repaint() to happen as soon as possible.
2761 Can be used anywhere.
2764 \begin_layout Subsubsection
2765 gui.subframe_update(boolean on)
2768 \begin_layout Standard
2769 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2770 or not happen (on=false).
2771 Can be used anywhere.
2774 \begin_layout Subsubsection
2775 gui.screenshot(string filename)
2778 \begin_layout Standard
2779 Write PNG screenshot of the current frame (no drawings) to specified file.
2780 Can be used anywhere.
2783 \begin_layout Subsubsection
2784 gui.color(number r, number g, number b[, number a])
2787 \begin_layout Standard
2788 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2789 each component in scale 0-255.
2790 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2792 The default alpha is 256.
2795 \begin_layout Subsubsection
2796 gui.status(string name, string value)
2799 \begin_layout Standard
2801 \begin_inset Quotes eld
2805 \begin_inset Quotes erd
2808 to <value> in status area.
2809 Can be used anywhere.
2812 \begin_layout Subsubsection
2813 gui.rainbow(number step, number steps[, number color])
2816 \begin_layout Standard
2817 Perform hue rotation of color <color> (default bright red), by <step> steps.
2818 The number of steps per full rotation is given by absolute value of <steps>.
2821 \begin_layout Standard
2822 If <steps> is negative, the rotation will be counterclockwise.
2825 \begin_layout Subsection
2829 \begin_layout Standard
2831 Only available in on_input callback.
2834 \begin_layout Subsubsection
2835 input.get(number controller, number index)
2838 \begin_layout Standard
2839 Read the specified index (0-11) from specified controller (0-7).
2843 \begin_layout Itemize
2844 Uses physical controller numbering.
2845 Gamepad in port 2 is controller 4, not 1!
2848 \begin_layout Subsubsection
2849 input.set(number controller, number index, number value)
2852 \begin_layout Standard
2853 Write the specified index (0-11) from specified controller (0-7), storing
2858 \begin_layout Itemize
2859 Uses physical controller numbering.
2860 Gamepad in port 2 is controller 4, not 1!
2863 \begin_layout Subsubsection
2864 input.geta(number controller)
2867 \begin_layout Standard
2868 Get input state for entiere controller.
2869 Returns 13 return values.
2872 \begin_layout Itemize
2873 1st return value: Bitmask: bit i is set if i:th index is nonzero
2876 \begin_layout Itemize
2877 2nd-13th return value: value of i:th index.
2880 \begin_layout Subsubsection
2881 input.seta(number controller, number bitmask, number args...)
2884 \begin_layout Standard
2885 Set state for entiere controller.
2886 args is up to 12 values for indices (overriding values in bitmask if specified).
2889 \begin_layout Subsubsection
2890 input.controllertype(number controller)
2893 \begin_layout Standard
2894 Get the type of controller as string.
2898 \begin_layout Itemize
2902 \begin_layout Itemize
2906 \begin_layout Itemize
2910 \begin_layout Itemize
2914 \begin_layout Subsubsection
2915 input.reset([number cycles])
2918 \begin_layout Standard
2920 If cycles is greater than zero, do delayed reset.
2921 0 (or no value) causes immediate reset.
2924 \begin_layout Itemize
2925 Only available with subframe flag false.
2928 \begin_layout Subsubsection
2932 \begin_layout Standard
2933 Returns table of tables of all available keys and axes.
2934 The first table is indexed by key name (platform-dependent!), and the inner
2935 table has the following fields:
2938 \begin_layout Itemize
2939 last_rawval: Last reported raw value for control.
2942 \begin_layout Itemize
2943 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2944 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2947 \begin_layout Itemize
2948 cal_left: Minimum calibration value.
2949 Only meaningful with axis and pressure types.
2952 \begin_layout Itemize
2953 cal_center: Center calibration value.
2954 Only meaningful with axis and pressure types.
2957 \begin_layout Itemize
2958 cal_right: Maximum calibration value.
2959 Only meaningful with axis and pressure types.
2962 \begin_layout Itemize
2963 cal_tolerance: Dead zone tolerance.
2964 Only meaningful with axis and pressure types.
2967 \begin_layout Subsubsection
2968 input.keyhook(key, state)
2971 \begin_layout Standard
2972 Requests that keyhook events to be sent for key (state=true) or not sent
2976 \begin_layout Subsection
2980 \begin_layout Standard
2981 Host memory handling (extra memory saved to savestates).
2982 Host memory starts empty.
2985 \begin_layout Subsubsection
2986 hostmemory.read(number address)
2989 \begin_layout Standard
2990 Reads hostmemory slot address.
2991 Slot numbers out of range return false instead of numeric.
2994 \begin_layout Subsubsection
2995 hostmemory.write(number address, number value)
2998 \begin_layout Standard
2999 Writes hostmemory slot with 0-255.
3000 Slot numbers out of range cause extension of host memory slot space.
3003 \begin_layout Subsubsection
3004 hostmemory.readbyte(number address)
3007 \begin_layout Standard
3008 Read unsigned byte (1 element) from given address.
3009 Slots out of range return false.
3012 \begin_layout Subsubsection
3013 hostmemory.writebyte(number address, number value)
3016 \begin_layout Standard
3017 Write unsigned byte (1 element) to given slot.
3018 Slot numbers out of range cause extension.
3021 \begin_layout Subsubsection
3022 hostmemory.readsbyte(number address)
3025 \begin_layout Standard
3026 Read signed byte (1 element) from given address.
3027 Slots out of range return false.
3030 \begin_layout Subsubsection
3031 hostmemory.writesbyte(number address, number value)
3034 \begin_layout Standard
3035 Write signed byte (1 element) to given slot.
3036 Slot numbers out of range cause extension.
3039 \begin_layout Subsubsection
3040 hostmemory.readword(number address)
3043 \begin_layout Standard
3044 Read unsigned word (2 elements) from given address.
3045 Slots out of range return false.
3048 \begin_layout Subsubsection
3049 hostmemory.writeword(number address, number value)
3052 \begin_layout Standard
3053 Write unsigned word (2 elements) to given slot.
3054 Slot numbers out of range cause extension.
3057 \begin_layout Subsubsection
3058 hostmemory.readsword(number address)
3061 \begin_layout Standard
3062 Read signed word (2 elements) from given address.
3063 Slots out of range return false.
3066 \begin_layout Subsubsection
3067 hostmemory.writesword(number address, number value)
3070 \begin_layout Standard
3071 Write signed word (2 elements) to given slot.
3072 Slot numbers out of range cause extension.
3075 \begin_layout Subsubsection
3076 hostmemory.readdword(number address)
3079 \begin_layout Standard
3080 Read unsigned doubleword (4 elements) from given address.
3081 Slots out of range return false.
3084 \begin_layout Subsubsection
3085 hostmemory.writedword(number address, number value)
3088 \begin_layout Standard
3089 Write unsigned doubleword (4 elements) to given slot.
3090 Slot numbers out of range cause extension.
3093 \begin_layout Subsubsection
3094 hostmemory.readsdword(number address)
3097 \begin_layout Standard
3098 Read signed doubleword (4 elements) from given address.
3099 Slots out of range return false.
3102 \begin_layout Subsubsection
3103 hostmemory.writesdword(number address, number value)
3106 \begin_layout Standard
3107 Write signed doubleword (4 elements) to given slot.
3108 Slot numbers out of range cause extension.
3111 \begin_layout Subsubsection
3112 hostmemory.readqword(number address)
3115 \begin_layout Standard
3116 Read unsigned quadword (8 elements) from given address.
3117 Slots out of range return false.
3120 \begin_layout Subsubsection
3121 hostmemory.writeqword(number address, number value)
3124 \begin_layout Standard
3125 Write unsigned quadword (4 elements) to given slot.
3126 Slot numbers out of range cause extension.
3129 \begin_layout Subsubsection
3130 hostmemory.readsqword(number address)
3133 \begin_layout Standard
3134 Read signed quadword (8 elements) from given address.
3135 Slots out of range return false.
3138 \begin_layout Subsubsection
3139 hostmemory.writesqword(number address, number value)
3142 \begin_layout Standard
3143 Write signed quadword (8 elements) to given slot.
3144 Slot numbers out of range cause extension.
3147 \begin_layout Subsection
3151 \begin_layout Standard
3155 \begin_layout Subsubsection
3156 movie.currentframe()
3159 \begin_layout Standard
3160 Return number of current frame.
3163 \begin_layout Subsubsection
3167 \begin_layout Standard
3168 Return number of frames in movie.
3171 \begin_layout Subsubsection
3175 \begin_layout Standard
3176 Return true if in readonly mode, false if in readwrite.
3179 \begin_layout Subsubsection
3180 movie.set_readwrite()
3183 \begin_layout Standard
3184 Set readwrite mode (does not cause on_readwrite callback).
3187 \begin_layout Subsubsection
3188 movie.frame_subframes(number frame)
3191 \begin_layout Standard
3192 Count number of subframes in specified frame (frame numbers are 1-based)
3196 \begin_layout Subsubsection
3197 movie.read_subframe(number frame, number subframe)
3200 \begin_layout Standard
3201 Read specifed subframe in specified frame and return data as array (100
3202 elements, numbered 0-99 currently).
3205 \begin_layout Subsection
3209 \begin_layout Standard
3210 Routines for settings manipulation
3213 \begin_layout Subsubsection
3214 settings.get(string name)
3217 \begin_layout Standard
3218 Get value of setting.
3219 If setting is blank, returns false.
3220 If setting value can't be obtained, returns (nil, error message).
3223 \begin_layout Subsubsection
3224 settings.set(string name, string value)
3227 \begin_layout Standard
3228 Set value of setting.
3229 If setting can't be set, returns (nil, error message).
3232 \begin_layout Subsubsection
3233 settings.is_set(string name)
3236 \begin_layout Standard
3237 Returns if setting is set.
3238 If setting does not exist, returns (nil, error message).
3241 \begin_layout Subsubsection
3242 settings.blank(string name)
3245 \begin_layout Standard
3246 Blanks a setting and returns true.
3247 If setting can't be blanked, returns (nil, error message).
3250 \begin_layout Subsection
3254 \begin_layout Standard
3255 Contains various functions for managing memory
3258 \begin_layout Subsubsection
3262 \begin_layout Standard
3263 Returns the number of VMAs
3266 \begin_layout Subsubsection
3267 memory.read_vma(number index)
3270 \begin_layout Standard
3271 Reads the specified VMA (indices start from zero).
3272 Trying to read invalid VMA gives nil.
3273 The read VMA is table with the following fields:
3276 \begin_layout Itemize
3277 region_name (string): The readable name of the VMA
3280 \begin_layout Itemize
3281 baseaddr (number): Base address of the VMA
3284 \begin_layout Itemize
3285 lastaddr (number): Last address in the VMA.
3288 \begin_layout Itemize
3289 size (number): The size of VMA in bytes.
3292 \begin_layout Itemize
3293 readonly (boolean): True of the VMA corresponds to ROM.
3296 \begin_layout Itemize
3297 native_endian (boolean): True if the VMA has native endian as opposed to
3301 \begin_layout Subsubsection
3302 memory.find_vma(number address)
3305 \begin_layout Standard
3306 Finds the VMA containing specified address.
3307 Returns table in the same format as read_vma or nil if not found.
3310 \begin_layout Subsubsection
3311 memory.readbyte(number address)
3314 \begin_layout Standard
3315 Reads the specified address as unsigned byte and returns the result.
3318 \begin_layout Subsubsection
3319 memory.readsbyte(number address)
3322 \begin_layout Standard
3323 Reads the specified address as signed byte and returns the result.
3326 \begin_layout Subsubsection
3327 memory.writebyte(number address, number value)
3330 \begin_layout Standard
3331 Writes the specified value (negative values undergo 2's complement) to specified
3332 address (as a byte).
3335 \begin_layout Subsubsection
3336 memory.readword(number address)
3339 \begin_layout Standard
3340 Reads the specified address as unsigned word and returns the result.
3343 \begin_layout Subsubsection
3344 memory.readsword(number address)
3347 \begin_layout Standard
3348 Reads the specified address as signed word and returns the result.
3351 \begin_layout Subsubsection
3352 memory.writeword(number address, number value)
3355 \begin_layout Standard
3356 Writes the specified value (negative values undergo 2's complement) to specified
3357 address (as a word).
3360 \begin_layout Subsubsection
3361 memory.readdword(number address)
3364 \begin_layout Standard
3365 Reads the specified address as unsigned doubleword and returns the result.
3368 \begin_layout Subsubsection
3369 memory.readsdword(number address)
3372 \begin_layout Standard
3373 Reads the specified address as signed doubleword and returns the result.
3376 \begin_layout Subsubsection
3377 memory.writedword(number address, number value)
3380 \begin_layout Standard
3381 Writes the specified value (negative values undergo 2's complement) to specified
3382 address (as a doubleword).
3385 \begin_layout Subsubsection
3386 memory.readqword(number address)
3389 \begin_layout Standard
3390 Reads the specified address as unsigned quadword and returns the result.
3393 \begin_layout Subsubsection
3394 memory.readsqword(number address)
3397 \begin_layout Standard
3398 Reads the specified address as signed quadword and returns the result.
3401 \begin_layout Subsubsection
3402 memory.writeqword(number address, number value)
3405 \begin_layout Standard
3406 Writes the specified value (negative values undergo 2's complement) to specified
3407 address (as a quadword).
3410 \begin_layout Subsection
3414 \begin_layout Standard
3415 Contains copy of global variables from time of Lua initialization.
3419 \begin_layout Subsection
3423 \begin_layout Standard
3424 Various callbacks to Lua that can occur.
3427 \begin_layout Subsubsection
3428 Callback: on_paint(bool not_synth)
3431 \begin_layout Standard
3432 Called when screen is being painted.
3433 Any gui.* calls requiring graphic context draw on the screen.
3436 \begin_layout Standard
3437 not_synth is true if this hook is being called in response to received frame,
3441 \begin_layout Subsubsection
3442 Callback: on_video()
3445 \begin_layout Standard
3446 Called when video dump frame is being painted.
3447 Any gui.* calls requiring graphic context draw on the video.
3450 \begin_layout Subsubsection
3451 Callback: on_frame_emulated()
3454 \begin_layout Standard
3455 Called when emulating frame has completed and on_paint()/on_video() calls
3456 are about to be issued.
3459 \begin_layout Subsubsection
3460 Callback: on_frame()
3463 \begin_layout Standard
3464 Called on each starting whole frame.
3467 \begin_layout Subsubsection
3468 Callback: on_startup()
3471 \begin_layout Standard
3472 Called when the emulator is starting (lsnes.rc and --run files has been run).
3475 \begin_layout Subsubsection
3476 Callback: on_rewind()
3479 \begin_layout Standard
3480 Called when rewind movie to beginning has completed.
3483 \begin_layout Subsubsection
3484 Callback: on_pre_load(string name)
3487 \begin_layout Standard
3488 Called just before savestate/movie load occurs (note: loads are always delayed,
3489 so this occurs even when load was initiated by lua).
3492 \begin_layout Subsubsection
3493 Callback: on_err_load(string name)
3496 \begin_layout Standard
3497 Called if loadstate goes wrong.
3500 \begin_layout Subsubsection
3501 Callback: on_post_load(string name, boolean was_savestate)
3504 \begin_layout Standard
3505 Called on successful loadstate.
3506 was_savestate gives if this was a savestate or a movie.
3509 \begin_layout Subsubsection
3510 Callback: on_pre_save(string name, boolean is_savestate)
3513 \begin_layout Standard
3514 Called just before savestate save occurs (note: movie saves are synchronous
3515 and won't trigger these callbacks if called from Lua).
3518 \begin_layout Subsubsection
3519 Callback: on_err_save(string name)
3522 \begin_layout Standard
3523 Called if savestate goes wrong.
3526 \begin_layout Subsubsection
3527 Callback: on_post_save(string name, boolean is_savestate)
3530 \begin_layout Standard
3531 Called on successful savaestate.
3532 is_savestate gives if this was a savestate or a movie.
3535 \begin_layout Subsubsection
3539 \begin_layout Standard
3540 Called when emulator is shutting down.
3543 \begin_layout Subsubsection
3544 Callback: on_input(boolean subframe)
3547 \begin_layout Standard
3548 Called when emulator is just sending input to bsnes core.
3549 Warning: This is called even in readonly mode, but the results are ignored.
3552 \begin_layout Subsubsection
3553 Callback: on_reset()
3556 \begin_layout Standard
3557 Called when SNES is reset.
3560 \begin_layout Subsubsection
3561 Callback: on_readwrite()
3564 \begin_layout Standard
3565 Called when moving into readwrite mode as result of
3566 \begin_inset Quotes eld
3570 \begin_inset Quotes erd
3573 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3577 \begin_layout Subsubsection
3578 Callback: on_snoop(number port, number controller, number index, number
3582 \begin_layout Standard
3583 Called each time bsnes asks for input.
3584 The value is the final value to be sent to bsnes core (readonly mode, autohold
3585 and autofire have been taken into account).
3586 Might be useful when translating movies to format suitable for console
3588 Note: There is no way to modify the value to be sent.
3591 \begin_layout Subsubsection
3592 Callback: on_keyhook(string keyname, table state)
3595 \begin_layout Standard
3596 Sent when key that has keyhook events requested changes state.
3597 Keyname is name of the key (group) and state is the state (same kind as
3598 table values in input.raw).
3601 \begin_layout Subsubsection
3605 \begin_layout Standard
3606 Called when requested by set_idle_timeout(), the timeout has expired and
3607 emulator is waiting.
3610 \begin_layout Subsubsection
3611 Callback: on_timer()
3614 \begin_layout Standard
3615 Called when requested by set_idle_timeout() and the timeout has expired
3616 (regardless if emulator is waiting).
3619 \begin_layout Section
3620 Memory watch expression syntax
3623 \begin_layout Standard
3624 Memory watch expressions are in RPN (Reverse Polish Notation).
3625 At the end of expression, the top entry on stack is taken as the final
3629 \begin_layout Standard
3633 \begin_layout Itemize
3634 Evaluation order is strictly left to right.
3637 \begin_layout Itemize
3638 a is the entry on top of stack
3641 \begin_layout Itemize
3642 b is the entry immediately below top of stack
3645 \begin_layout Itemize
3646 ; separates values to be pushed (no intermediate pop).
3649 \begin_layout Itemize
3650 After end of element, all used stack slots are popped and all results are
3654 \begin_layout Itemize
3655 When pushing multiple values, the pushes occur in order shown.
3658 \begin_layout Standard
3659 The following operators are available:
3662 \begin_layout Itemize
3666 \begin_layout Itemize
3670 \begin_layout Itemize
3674 \begin_layout Itemize
3678 \begin_layout Itemize
3682 \begin_layout Itemize
3686 \begin_layout Itemize
3687 b : read_signed_byte(a)
3690 \begin_layout Itemize
3694 \begin_layout Itemize
3695 d : read_signed_dword(a)
3698 \begin_layout Itemize
3702 \begin_layout Itemize
3704 \begin_inset Formula $\pi$
3710 \begin_layout Itemize
3711 q : read_signed_qword(a)
3714 \begin_layout Itemize
3718 \begin_layout Itemize
3722 \begin_layout Itemize
3726 \begin_layout Itemize
3730 \begin_layout Itemize
3731 w : read_signed_word(a)
3734 \begin_layout Itemize
3738 \begin_layout Itemize
3739 B : read_unsigned_byte(a)
3742 \begin_layout Itemize
3743 C<number>z : Push number <number> to stack.
3746 \begin_layout Itemize
3747 D : read_unsigned_dword(a)
3750 \begin_layout Itemize
3751 C0x<number>z : Push number <number> (hexadecimal) to stack.
3754 \begin_layout Itemize
3755 Q : read_unsigned_qword(a)
3758 \begin_layout Itemize
3759 R<digit> : round a to <digit> digits.
3762 \begin_layout Itemize
3763 W : read_unsigned_word(a)
3766 \begin_layout Subsection
3770 \begin_layout Standard
3771 C0x007e0878zWC0x007e002czW-
3774 \begin_layout Enumerate
3775 Push value 0x7e0878 on top of stack (C0x007e0878z).
3778 \begin_layout Enumerate
3779 Pop the value on top of stack (0x7e0878), read word value at that address
3780 and push the result,call it x1 (W).
3783 \begin_layout Enumerate
3784 Push value 0x7e002c on top of stack (C0x007e002cz).
3787 \begin_layout Enumerate
3788 Pop the value on top of stack (0x7e002c), read word value at that address
3789 and push the result,call it x2 (W).
3792 \begin_layout Enumerate
3793 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3797 \begin_layout Enumerate
3798 Since the expression ends, the final memory watch result is the top one
3799 on stack, which is x2 - x1.
3802 \begin_layout Section
3803 Modifier and key names:
3806 \begin_layout Subsection
3810 \begin_layout Subsubsection
3814 \begin_layout Standard
3815 Following modifier names are known:
3818 \begin_layout Itemize
3819 ctrl, lctrl, rctrl: Control keys
3822 \begin_layout Itemize
3823 alt, lalt, ralt: ALT keys.
3826 \begin_layout Itemize
3827 shift, lshift, rshift: Shift keys.
3830 \begin_layout Itemize
3831 meta, lmeta, rmeta: Meta keys.
3834 \begin_layout Itemize
3835 num, caps: Numlock/Capslock (these are sticky!)
3838 \begin_layout Itemize
3842 \begin_layout Subsubsection
3846 \begin_layout Standard
3847 Following key names are known:
3850 \begin_layout Itemize
3851 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
3852 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
3853 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
3854 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
3855 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
3856 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
3857 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
3858 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
3859 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
3860 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
3861 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
3862 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
3863 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
3864 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
3865 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
3866 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
3867 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
3868 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
3869 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
3870 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
3871 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
3872 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
3873 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
3874 break, menu, power, euro, undo
3877 \begin_layout Itemize
3878 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
3879 hardware-dependent scan code of <n> (useful to bind those keys that don't
3880 have symbolic names).
3883 \begin_layout Subsubsection
3884 Joystick pseudo-keys:
3887 \begin_layout Itemize
3888 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
3891 \begin_layout Itemize
3892 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
3895 \begin_layout Itemize
3896 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
3899 \begin_layout Itemize
3900 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
3903 \begin_layout Itemize
3904 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
3907 \begin_layout Itemize
3908 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
3909 position (axis modes axis and axis_inverse).
3912 \begin_layout Itemize
3913 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
3914 position (axis modes axis and axis_inverse).
3917 \begin_layout Itemize
3918 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
3922 \begin_layout Subsubsection
3926 \begin_layout Itemize
3927 Escape: Enter/Exit Command mode, cancel modal dialogs.
3930 \begin_layout Itemize
3931 Return (also KPEnter): Execute command, ok modal dialog.
3934 \begin_layout Itemize
3935 Pgup/Up (also KP8/9 if no num lock; command mode): Previous command in command
3939 \begin_layout Itemize
3940 Pgdn/Down(also KP2/3 if no num lock; command mode): Next command in command
3944 \begin_layout Itemize
3945 Home (also KP7 if no num lock; command mode): Beginning of command.
3948 \begin_layout Itemize
3949 End (also KP1 if no num lock; command mode): End of command.
3952 \begin_layout Itemize
3953 Left (also KP4 if no num lock; command mode): Move cursor left.
3956 \begin_layout Itemize
3957 Right (also KP6 if no num lock; command mode): Move cursor right.
3960 \begin_layout Itemize
3962 if no num lock; command mode): Delete character to right of cursor.
3965 \begin_layout Itemize
3966 Insert (also KP0 if no num lock; command mode): Toggle between insert /
3970 \begin_layout Itemize
3971 Backspace (command mode): Delete character to left of cursor.
3974 \begin_layout Itemize
3975 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
3978 \begin_layout Subsection
3982 \begin_layout Subsubsection
3986 \begin_layout Standard
3987 Following modifier names are known:
3990 \begin_layout Itemize
3994 \begin_layout Itemize
3998 \begin_layout Itemize
4002 \begin_layout Itemize
4006 \begin_layout Itemize
4010 \begin_layout Subsubsection
4014 \begin_layout Standard
4015 Following key names are known:
4018 \begin_layout Itemize
4019 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
4020 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
4021 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
4022 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
4023 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
4024 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
4025 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
4026 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
4027 pause, capital, end, home, lefT, up, right, down, select, print, execute,
4028 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
4029 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
4030 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
4031 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
4032 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
4033 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
4034 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
4035 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
4036 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
4037 windows_right, windows_menu, command, special1, special2, special3, special4,
4038 special5, special6, special7, special8, special9, special10, special11,
4039 special12, special13, special14, special15, special16, special17, special18,
4040 special19, special20
4043 \begin_layout Section
4047 \begin_layout Standard
4048 Movie file is .zip archive in itself, normal ZIP archive tools work on it
4049 (note: If you recompress it, do not use compression methods other than
4050 store and deflate and especially do not use encryption of any kind).
4053 \begin_layout Subsection
4054 Detecting clean start/SRAM/Savestate
4057 \begin_layout Itemize
4059 \begin_inset Quotes eld
4063 \begin_inset Quotes erd
4066 it is savestate, otherwise:
4069 \begin_layout Itemize
4070 If file has members with names starting
4071 \begin_inset Quotes eld
4075 \begin_inset Quotes erd
4078 it is movie starting from SRAM, otherwise:
4081 \begin_layout Itemize
4082 It is movie starting from clear state.
4085 \begin_layout Subsection
4089 \begin_layout Standard
4090 Type of game ROM and region (as one line).
4094 \begin_layout Standard
4095 \begin_inset Tabular
4096 <lyxtabular version="3" rows="8" columns="3">
4097 <features tabularvalignment="middle">
4098 <column alignment="center" valignment="top" width="0">
4099 <column alignment="center" valignment="top" width="0">
4100 <column alignment="center" valignment="top" width="0">
4102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4105 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4114 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4134 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4143 \begin_layout Plain Layout
4149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4152 \begin_layout Plain Layout
4160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4163 \begin_layout Plain Layout
4169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4172 \begin_layout Plain Layout
4178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4181 \begin_layout Plain Layout
4189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4192 \begin_layout Plain Layout
4198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4201 \begin_layout Plain Layout
4207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Plain Layout
4218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4221 \begin_layout Plain Layout
4227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4230 \begin_layout Plain Layout
4236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4239 \begin_layout Plain Layout
4247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4250 \begin_layout Plain Layout
4256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4259 \begin_layout Plain Layout
4265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4288 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4308 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4317 \begin_layout Plain Layout
4323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4326 \begin_layout Plain Layout
4340 \begin_layout Standard
4344 \begin_layout Standard
4345 \begin_inset Tabular
4346 <lyxtabular version="3" rows="3" columns="2">
4347 <features tabularvalignment="middle">
4348 <column alignment="center" valignment="top" width="0">
4349 <column alignment="center" valignment="top" width="0">
4351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4354 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4363 \begin_layout Plain Layout
4371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4374 \begin_layout Plain Layout
4380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4383 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4394 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4403 \begin_layout Plain Layout
4417 \begin_layout Subsection
4421 \begin_layout Standard
4422 Contains type of port #1 (as one line).
4423 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
4424 If not present, defaults to 'gamepad'.
4427 \begin_layout Subsection
4431 \begin_layout Standard
4432 Contains type of port #2 (as one line).
4433 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
4434 'justifier' and 'justifiers'.
4435 If not present, defaults to 'none'.
4438 \begin_layout Subsection
4442 \begin_layout Standard
4443 Contains name of the game (as one line).
4446 \begin_layout Subsection
4450 \begin_layout Standard
4451 Contains authors, one per line.
4452 Part before '|' is the full name, part after is the nickname.
4455 \begin_layout Subsection
4459 \begin_layout Standard
4461 \begin_inset Quotes eld
4465 \begin_inset Quotes erd
4469 Used to reject other saves.
4472 \begin_layout Subsection
4473 Member: controlsversion
4476 \begin_layout Standard
4478 \begin_inset Quotes eld
4482 \begin_inset Quotes erd
4486 Used to identify what controls are there.
4489 \begin_layout Subsection
4491 \begin_inset Quotes eld
4495 \begin_inset Quotes erd
4501 \begin_layout Standard
4502 Contains bsnes core version number (as one line).
4505 \begin_layout Subsection
4509 \begin_layout Standard
4510 Contains project ID (as one line).
4511 Used to identify if two movies are part of the same project.
4514 \begin_layout Subsection
4515 Member: {rom,slota,slotb}{,xml}.sha256
4518 \begin_layout Standard
4519 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4520 Absent if corresponding file is absent.
4523 \begin_layout Subsection
4524 Member: moviesram.<name>
4527 \begin_layout Standard
4528 Raw binary startup SRAM of kind <name>.
4529 Only present in savestates and movies starting from SRAM.
4532 \begin_layout Subsection
4536 \begin_layout Standard
4537 Contains frame number (as one line) of frame movie was saved on.
4538 Only present in savestates.
4541 \begin_layout Subsection
4545 \begin_layout Standard
4546 Current value of lag counter (as one line).
4547 Only present in savestates.
4550 \begin_layout Subsection
4551 Member: pollcounters
4554 \begin_layout Standard
4555 Contains poll counters (currently 100 of them), one per line.
4556 Each line is raw poll count if DRDY is set for it.
4557 Otherwise it is negative poll count minus one.
4558 Only present in savestates.
4561 \begin_layout Subsection
4565 \begin_layout Standard
4566 Raw binary dump of host memory.
4567 Only present in savestates.
4570 \begin_layout Subsection
4574 \begin_layout Standard
4575 The raw binary savestate itself.
4576 Savestate detection uses this file, only present in savestates.
4579 \begin_layout Subsection
4583 \begin_layout Standard
4584 Screenshot of current frame.
4585 Only present in savestates.
4586 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4588 Height of image is inferred from the width and size of data.
4591 \begin_layout Subsection
4595 \begin_layout Standard
4596 Raw binary SRAM of kind <name> at time of savestate.
4597 Only present in savestates.
4600 \begin_layout Subsection
4604 \begin_layout Standard
4605 The actual input track, one line per subframe (blank lines are skipped).
4608 \begin_layout Itemize
4609 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4610 part of same frame as previous, otherwise it starts a new frame.
4613 \begin_layout Itemize
4614 First subframe must start a new frame.
4617 \begin_layout Standard
4618 Length of movie in frames is number of lines in input file that start a
4622 \begin_layout Subsection
4626 \begin_layout Standard
4627 Contains textual base-10 rerecord count (as one line; emulator just writes
4628 this, it doesn't read it) + 1.
4631 \begin_layout Subsection
4635 \begin_layout Standard
4636 This member stores set of load IDs.
4637 There is one load ID per rerecord (plus one corresponding to start of project).
4640 \begin_layout Itemize
4641 This member constists of concatenation of records
4644 \begin_layout Itemize
4645 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4649 \begin_layout Itemize
4650 IDs are interpretted as 256-bit big-endian integers with warparound.
4653 \begin_layout Itemize
4654 Initial predicted ID is all zeroes.
4657 \begin_layout Standard
4658 Format of each record is:
4661 \begin_layout Itemize
4662 1 byte: Opcode byte.
4663 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4667 \begin_layout Itemize
4668 32-prefixlen bytes of ID.
4671 \begin_layout Itemize
4672 countlen bytes of big-endian count (count).
4675 \begin_layout Standard
4676 Records are processed as follows:
4679 \begin_layout Itemize
4680 To form the first ID encoded by record, take the first prefixlen bytes predicted
4681 ID and append the read ID value to it.
4682 The result is the first ID encoded.
4685 \begin_layout Itemize
4686 If countlen is 0, record encodes 1 ID.
4689 \begin_layout Itemize
4690 If countlen is 1, record encodes 2+count IDs.
4693 \begin_layout Itemize
4694 If countlen is 2, record encodes 258+count IDs.
4697 \begin_layout Itemize
4698 If countlen is 3, record encodes 65794+count IDs.
4701 \begin_layout Itemize
4702 The new predicted ID is the next ID after last one encoded by the record.
4705 \begin_layout Standard
4706 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4710 \begin_layout Subsection
4711 Member: starttime.second
4714 \begin_layout Standard
4715 Movie starting time, second part.
4716 Epoch is Unix epoch.
4717 Default is 1,000,000,000.
4720 \begin_layout Subsection
4721 Member: starttime.subsecond
4724 \begin_layout Standard
4725 Movie starting time, subsecond part.
4730 \begin_layout Subsection
4731 Member: savetime.second
4734 \begin_layout Standard
4735 Movie saving time, second part.
4736 Default is starttime.second.
4737 Only present in savestates.
4740 \begin_layout Subsection
4741 Member: savetime.subsecond
4744 \begin_layout Standard
4745 Movie saving time, subsecond part.
4746 Default is starttime.subsecond.
4747 Only present in savestates.
4750 \begin_layout Section
4751 Quick'n'dirty encode guide
4754 \begin_layout Enumerate
4755 Start the emulator and load the movie file.
4758 \begin_layout Enumerate
4759 Set large AVI option 'set-setting avi-large on'
4762 \begin_layout Enumerate
4763 Enable dumping 'dump-avi tmpdump'
4766 \begin_layout Enumerate
4767 Unpause and let it run until you want to end dumping.
4770 \begin_layout Enumerate
4771 Close the emulator (closing the window is the easiest way).
4775 \begin_layout Enumerate
4776 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
4777 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
4780 \begin_layout Enumerate
4781 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
4784 \begin_layout Enumerate
4785 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
4786 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
4789 \begin_layout Enumerate
4790 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
4791 Now final.mkv contains quick'n'dirty encode.
4794 \begin_layout Section
4795 Axis configurations for some gamepad types:
4798 \begin_layout Subsection
4802 \begin_layout Standard
4803 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
4806 \begin_layout LyX-Code
4807 set-axis joystick0axis2 pressure-+
4810 \begin_layout LyX-Code
4811 set-axis joystick0axis5 pressure-+
4814 \begin_layout Itemize
4815 This is needed for SDL only.
4816 EVDEV sets those types correctly.
4819 \begin_layout Subsection
4821 \begin_inset Quotes eld
4825 \begin_inset Quotes erd
4831 \begin_layout Standard
4832 Axes 8-19 should be disabled.
4835 \begin_layout LyX-Code
4836 set-axis joystick0axis8 disabled
4839 \begin_layout LyX-Code
4840 set-axis joystick0axis9 disabled
4843 \begin_layout LyX-Code
4844 set-axis joystick0axis10 disabled
4847 \begin_layout LyX-Code
4848 set-axis joystick0axis11 disabled
4851 \begin_layout LyX-Code
4852 set-axis joystick0axis12 disabled
4855 \begin_layout LyX-Code
4856 set-axis joystick0axis13 disabled
4859 \begin_layout LyX-Code
4860 set-axis joystick0axis14 disabled
4863 \begin_layout LyX-Code
4864 set-axis joystick0axis15 disabled
4867 \begin_layout LyX-Code
4868 set-axis joystick0axis16 disabled
4871 \begin_layout LyX-Code
4872 set-axis joystick0axis17 disabled
4875 \begin_layout LyX-Code
4876 set-axis joystick0axis18 disabled
4879 \begin_layout LyX-Code
4880 set-axis joystick0axis19 disabled
4883 \begin_layout Section
4887 \begin_layout Subsection
4888 Problems from BSNES core:
4891 \begin_layout Itemize
4892 The whole pending save stuff.
4895 \begin_layout Itemize
4896 Lack of layer hiding.
4899 \begin_layout Itemize
4900 It is slow (especially accuracy).
4903 \begin_layout Itemize
4904 Firmwares can't be loaded from ZIP archives.
4907 \begin_layout Subsection
4911 \begin_layout Itemize
4912 Modifiers don't work with pseudo-keys (SDL, EVDEV).
4915 \begin_layout Itemize
4916 Audio for last dumped frame is not itself dumped.
4919 \begin_layout Itemize
4920 Audio in UI is pretty bad in quality if game doesn't run at full speed.
4923 \begin_layout Itemize
4924 AVI compression levels 10-18 are not compatible with AVISynth AVISource.
4927 \begin_layout Itemize
4928 No menus, command based interface (SDL).
4931 \begin_layout Itemize
4932 Long commands don't scroll.
4935 \begin_layout Itemize
4936 Wxwidgets UI is still buggy.
4939 \begin_layout Section
4943 \begin_layout Subsection
4947 \begin_layout Itemize
4951 \begin_layout Itemize
4952 Fix dumper video corruption with levels 10-18.
4955 \begin_layout Subsection
4959 \begin_layout Itemize
4963 \begin_layout Itemize
4964 Lots of code cleanups
4967 \begin_layout Itemize
4968 Lua interface to settings
4971 \begin_layout Itemize
4972 Allow specifying AVI borders without Lua
4975 \begin_layout Itemize
4976 Fix scaling if vscale > 1 and originx > 0 (left border exists)
4979 \begin_layout Itemize
4980 on_snoop lua callback
4983 \begin_layout Itemize
4984 Faster movie loading and saving.
4987 \begin_layout Subsection
4991 \begin_layout Itemize
4995 \begin_layout Subsection
4999 \begin_layout Itemize
5003 \begin_layout Itemize
5004 Save jukebox functionality.
5007 \begin_layout Subsection
5011 \begin_layout Itemize
5012 Try to fix some nasty failing movie load edge cases
5015 \begin_layout Itemize
5016 Allow specifying scripts to run on command line.
5019 \begin_layout Subsection
5023 \begin_layout Itemize
5024 Major source code reorganization.
5027 \begin_layout Itemize
5028 Backup savestates before overwriting.
5031 \begin_layout Itemize
5032 Don't crash if loading initial state fails.
5035 \begin_layout Subsection
5039 \begin_layout Itemize
5043 \begin_layout Itemize
5044 Fix author name parsing
5047 \begin_layout Itemize
5048 Fix rerecord counting
5051 \begin_layout Itemize
5052 (SDL) Print messages to console if SDL is uninitialized
5055 \begin_layout Itemize
5056 Add movieinfo program
5059 \begin_layout Itemize
5060 Fix loading movies starting from SRAM.
5063 \begin_layout Subsection
5067 \begin_layout Itemize
5068 Add support for unattended dumping
5071 \begin_layout Itemize
5072 Fix compiling for Win32
5075 \begin_layout Itemize
5076 Don't lock up if sound can't be initialized
5079 \begin_layout Itemize
5080 Strip trailing CR from commands
5083 \begin_layout Itemize
5084 Don't try to do dubious things in global ctors (fix crash on startup)
5087 \begin_layout Subsection
5091 \begin_layout Itemize
5092 Small documentation tweaking
5095 \begin_layout Itemize
5099 \begin_layout Itemize
5100 Fix major bug in modifier matching
5103 \begin_layout Subsection
5107 \begin_layout Itemize
5108 Lots of documentation fixes
5111 \begin_layout Itemize
5112 Use dedicated callbacks for event backcomm., not commands.
5115 \begin_layout Itemize
5116 Ensure that the watchdog is not hit when executing delayed reset.
5119 \begin_layout Itemize
5120 Remove errant tab from joystick message.
5123 \begin_layout Subsection
5127 \begin_layout Itemize
5128 Make autofire operate in absolute time, not linear time
5131 \begin_layout Itemize
5132 Reinitialize controls when resuming from loadstate
5135 \begin_layout Itemize
5136 Some more code cleanups
5139 \begin_layout Itemize
5140 If Lua allocator fails, call OOM_panic()
5143 \begin_layout Itemize
5144 Byte/word/dword/qword sized host memory write/read functions.
5147 \begin_layout Itemize
5148 Dump at correct framerate if dumping interlaced NTSC (height=448).
5151 \begin_layout Subsection
5155 \begin_layout Itemize
5156 Actually include the complete source code
5159 \begin_layout Itemize
5163 \begin_layout Subsection
5167 \begin_layout Itemize
5168 Document {save,start}time.{,sub}second.
5171 \begin_layout Itemize
5172 Intercept time() from bsnes core.
5175 \begin_layout Subsection
5179 \begin_layout Itemize
5180 Allow disabling time() interception (allow build on Mac OS X)
5183 \begin_layout Itemize
5184 Use SDLMain on Mac OS X (make SDL not crash)
5187 \begin_layout Itemize
5188 Disable delayed resets (just plain too buggy for now).
5191 \begin_layout Itemize
5195 \begin_layout Itemize
5196 Use 16-bit for graphics/video instead of 32-bit.
5199 \begin_layout Itemize
5200 gui.rectangle/gui.pixel
5203 \begin_layout Itemize
5207 \begin_layout Itemize
5208 New CSCD writer implementation.
5211 \begin_layout Subsection
5215 \begin_layout Itemize
5216 Fix interaction of * and +.
5219 \begin_layout Itemize
5223 \begin_layout Itemize
5224 Use gettimeofday()/usleep(), these seem portable enough.
5227 \begin_layout Itemize
5228 Move joystick axis manipulation to keymapper code.
5231 \begin_layout Itemize
5232 Changes to how read-only works.
5235 \begin_layout Itemize
5236 Refactor controller input code.
5239 \begin_layout Subsection
5243 \begin_layout Itemize
5244 Fix mouseclick scale compensation.
5247 \begin_layout Itemize
5248 Draw area boundaries correctly in SDL code.
5251 \begin_layout Itemize
5255 \begin_layout Itemize
5256 Fix CSCD output (buffer overrun and race condition).
5259 \begin_layout Subsection
5263 \begin_layout Itemize
5264 JMD dumping support.
5267 \begin_layout Itemize
5268 Allow unattended dumping to JMD.
5271 \begin_layout Itemize
5275 \begin_layout Itemize
5276 Switch back to 32-bit colors.
5279 \begin_layout Itemize
5280 Add Lua function gui.color.
5283 \begin_layout Itemize
5284 Use some new C++11 features in GCC 4.6.
5287 \begin_layout Itemize
5288 Be prepared for core frequency changes.
5291 \begin_layout Itemize
5292 Pass colors in one chunk from Lua.
5295 \begin_layout Subsection
5299 \begin_layout Itemize
5300 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
5301 memory.read_vma() and memory.find_vma().
5304 \begin_layout Itemize
5305 Numerious documentation fixups
5308 \begin_layout Itemize
5309 RTC time format changed
5312 \begin_layout Itemize
5313 Reformat flags display
5316 \begin_layout Itemize
5317 Allow lua package name to be overridden
5320 \begin_layout Itemize
5321 SDUMP (high-quality dumping).
5324 \begin_layout Itemize
5325 Split platform support to plugins.
5328 \begin_layout Itemize
5329 Make all sound plugins support basic sound commands
5332 \begin_layout Itemize
5333 Support portaudio for sound.
5336 \begin_layout Itemize
5337 Allow disable Lua/SDL searching.
5340 \begin_layout Itemize
5341 Upconvert colors when copying lcscreen to screen.
5344 \begin_layout Itemize
5345 Reorganize source tree.
5348 \begin_layout Itemize
5349 Evdev joystick support.
5352 \begin_layout Itemize
5353 Refactor more code into generic window code.
5356 \begin_layout Subsection
5360 \begin_layout Itemize
5361 Refactor message handling.
5364 \begin_layout Itemize
5368 \begin_layout Itemize
5372 \begin_layout Itemize
5373 Finish pending saves before load/quit.
5376 \begin_layout Itemize
5377 Wxwidgets graphics plugin.
5380 \begin_layout Subsection
5384 \begin_layout Itemize
5385 Get rid of win32-crap.[ch]pp.
5388 \begin_layout Itemize
5389 Move files around a lot.
5392 \begin_layout Itemize
5393 Get rid of need for host C++ compiler.
5396 \begin_layout Itemize
5400 \begin_layout Itemize
5401 Refactor inter-component communication.
5404 \begin_layout Itemize
5408 \begin_layout Itemize
5409 Fix crash on multiline aliases.
5412 \begin_layout Itemize
5413 Load/Save settings in wxwidgets gui.
5416 \begin_layout Subsection
5420 \begin_layout Itemize
5421 Patch problems in bsnes core
5424 \begin_layout Itemize
5425 SNES is little-endian, not big-endian!
5428 \begin_layout Itemize
5429 Fix memory corruption in lcscreen::load()
5432 \begin_layout Subsection
5436 \begin_layout Itemize
5437 Fix interpretting repeat counts in rrdata loading.
5440 \begin_layout Itemize
5441 New lua callback: on_frame()
5444 \begin_layout Itemize
5445 Remove calls to runtosave() that aren't supposed to be there
5448 \begin_layout Itemize
5449 Lua function: movie.read_rtc()
5452 \begin_layout Itemize
5453 Ignore src/fonts/font.cpp
5456 \begin_layout Itemize
5457 Fix more bsnes core problems
5460 \begin_layout Itemize
5461 Control bsnes random seeding
5464 \begin_layout Itemize
5468 \begin_layout Itemize
5469 Some bsnes core debugging features (state dump and state hash)
5472 \begin_layout Itemize
5473 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
5474 it was 'lsnes rr0-beta21').
5477 \begin_layout Subsection
5481 \begin_layout Itemize
5482 Fix memory corruption due to macro/field mixup
5485 \begin_layout Itemize
5486 search-memory update
5489 \begin_layout Itemize
5490 Allow direct-mapped framebuffer
5493 \begin_layout Itemize
5494 SDL: Use SDL_ANYFORMAT if possible
5497 \begin_layout Itemize
5498 SDMP2SOX: 2s delay modes.
5501 \begin_layout Itemize
5505 \begin_layout Itemize
5506 Use sed -E, not sed -r.
5507 Fixes building on Mac OS X.
5510 \begin_layout Itemize
5511 Wxwidgets: Save jukebox on exit
5514 \begin_layout Itemize
5515 Fix RTC if using load-movie on savestate.
5518 \begin_layout Itemize
5519 Fix crash related to full console mode.
5522 \begin_layout Subsection
5526 \begin_layout Itemize
5527 Wxwidgets: Allow bringing application to foreground on Mac OS X.
5530 \begin_layout Itemize
5531 Wxwidgets: Allow compiling on Mac OS X.
5534 \begin_layout Itemize
5535 Use movie compare instead of movie hashing (faster save/load).
5538 \begin_layout Itemize
5542 \begin_layout Subsection
5546 \begin_layout Itemize
5547 sdmp2sox: Pad soundtrack if using -l or -L.
5550 \begin_layout Itemize
5551 sdmp2sox: Fix NTSC overscan.
5554 \begin_layout Itemize
5555 sdmp2sox: Add AR correction mode.
5558 \begin_layout Itemize
5559 call lua_close() when exiting.
5562 \begin_layout Itemize
5563 Fix zip_writer bug causing warnings from info-zip and error from advzip.
5566 \begin_layout Subsection
5570 \begin_layout Itemize
5571 Fix IPS patching code (use bsnes core IPS patcher).
5574 \begin_layout Itemize
5575 Implement BPS patching (using bsnes core IPS patcher).
5578 \begin_layout Itemize
5579 Add feature to load headered ROMs.
5582 \begin_layout Subsection
5586 \begin_layout Itemize
5587 Show command names when showing keybindings
5590 \begin_layout Subsection
5594 \begin_layout Itemize
5595 Fix pause-on-end to be actually controllable
5598 \begin_layout Itemize
5599 SDL: Poll all events in queue, not just first one (fixes slowness in command
5603 \begin_layout Itemize
5604 Wxwidgets: Fix ROM loading.
5607 \begin_layout Subsection
5611 \begin_layout Itemize
5612 Lua: Add gui.textH, gui.textV, gui.textHV
5615 \begin_layout Itemize
5616 Fix text colors on SDL on Mac OS X
5619 \begin_layout Itemize
5620 Mode 'F' for finished in readonly mode.
5623 \begin_layout Itemize
5627 \begin_layout Itemize
5628 Reliably pause after skip poll
5631 \begin_layout Itemize
5632 Split UI and core into their own threads
5635 \begin_layout Subsection
5639 \begin_layout Itemize
5640 Remove leftover dummy SRAM slot
5643 \begin_layout Itemize
5644 Fix controller numbers.
5647 \begin_layout Subsection
5651 \begin_layout Itemize
5652 Fix lsnes-dumpavi after interface change.
5655 \begin_layout Itemize
5656 Also give BSNES patches for v085.
5659 \begin_layout Itemize
5660 Pack movie data in memory.
5663 \begin_layout Subsection
5667 \begin_layout Itemize
5668 Fix framecount/length given when loading movies.
5671 \begin_layout Itemize
5672 Controller command memory leak fixes.
5675 \begin_layout Itemize
5676 Don't leak palette if freeing screen object.
5679 \begin_layout Subsection
5683 \begin_layout Itemize
5687 \begin_layout Itemize
5688 Wxwidgets: Allow controlling dumper from the menu.
5691 \begin_layout Subsection
5695 \begin_layout Itemize
5696 Rewrite parts of manual
5699 \begin_layout Itemize
5700 Lua: Make it work with Lua 5.2.
5703 \begin_layout Subsection
5707 \begin_layout Itemize
5708 Win32: Fix compile errors.
5711 \begin_layout Subsection
5715 \begin_layout Itemize
5716 Refactor controller input code.
5719 \begin_layout Itemize
5720 Fix crash when using command line on SDL / Mac OS X.
5723 \begin_layout Subsection
5727 \begin_layout Itemize
5728 Delete core/coroutine (obsolete)
5731 \begin_layout Itemize
5732 Lag input display by one frame.
5735 \begin_layout Itemize
5736 Rewind movie to beginning function.
5739 \begin_layout Itemize
5740 Fix wrong frame number reported to Lua when repainting after loadstate
5743 \begin_layout Itemize
5744 Support UI editing of jukebox
5747 \begin_layout Itemize
5748 Wxwidgets: Save settings on exit.
5751 \begin_layout Itemize
5752 Support ${project} for filenames
5755 \begin_layout Itemize
5756 SDL: Fix command history
5759 \begin_layout Subsection
5763 \begin_layout Itemize
5764 Fix some order-of-global-ctor bugs.
5767 \begin_layout Subsection
5771 \begin_layout Itemize
5772 Fix crashes when quitting on Win32.
5775 \begin_layout Subsection
5779 \begin_layout Itemize
5780 EVDEV: Queue keypresses from joystick, don't send directly
5783 \begin_layout Itemize
5784 Wxwidgets: Load-Preserve that actually works.
5787 \begin_layout Subsection
5791 \begin_layout Itemize
5792 Wxwidgets: GUI for memory search.
5795 \begin_layout Itemize
5796 Warn about using synchronous queue in UI callback.
5799 \begin_layout Subsection
5803 \begin_layout Itemize
5804 Remember last saved file for each ROM
5807 \begin_layout Itemize
5808 Support MT dumping via boost.
5811 \begin_layout Itemize
5815 \begin_layout Itemize
5819 \begin_layout Itemize
5820 Make mouse be ordinary input instead of special-casing
5823 \begin_layout Itemize
5824 SDL: Don't screw up commands with NUL codepoints.
5827 \begin_layout Subsection
5831 \begin_layout Itemize
5832 Merge status panel and main window
5835 \begin_layout Itemize
5836 True movie slot support (the rest of it)
5839 \begin_layout Itemize
5840 SDL: Fix compilation error
5843 \begin_layout Itemize
5844 Elminate cross calls in dump menu code.
5847 \begin_layout Subsection
5851 \begin_layout Itemize
5852 Cancel pending saves command
5855 \begin_layout Itemize
5856 Wxwidgets: Code refactoring
5859 \begin_layout Itemize
5860 Wxwidgets: Fix system -> reset
5863 \begin_layout Itemize
5864 Wxwidgets: Read watch expressions in the right thread
5867 \begin_layout Subsection
5871 \begin_layout Itemize
5872 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
5876 \begin_layout Itemize
5877 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
5880 \begin_layout Itemize
5881 Don't append trailing '-' to prefix when saving movie.
5884 \begin_layout Itemize
5885 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
5888 \begin_layout Subsection
5892 \begin_layout Itemize
5893 Document memory watch syntax.
5896 \begin_layout Subsection
5900 \begin_layout Itemize
5901 Fix unattended dumping (lsnes-dumpavi)
5904 \begin_layout Itemize
5908 \begin_layout Itemize
5909 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
5912 \begin_layout Itemize
5913 Add option to control sample rate preturbation in AVI dumper
5916 \begin_layout Subsection
5920 \begin_layout Itemize
5921 Wxwidgets: Fix dumper submodes
5924 \begin_layout Itemize
5925 Set core controller types before loadstate
5928 \begin_layout Subsection
5932 \begin_layout Itemize
5933 Fix compiling with bsnes v086.
5936 \begin_layout Subsection
5940 \begin_layout Itemize
5941 Don't prompt before quitting
5944 \begin_layout Itemize
5945 Start unpaused, preserve pause/unpause over load.
5948 \begin_layout Itemize
5949 Try to autodetect if ROM is headered.
5952 \begin_layout Itemize
5953 Wxwidgets: Only bring up ROM patching screen if specifically requested.
5956 \begin_layout Itemize
5957 Allow configuring some hotkeys.
5960 \begin_layout Subsection
5964 \begin_layout Itemize
5965 Lots of code cleanups
5968 \begin_layout Itemize
5969 Fix JMD compression (JMD dumping was broken)
5972 \begin_layout Itemize
5973 Don't crash if Lua C function throws an exception.
5976 \begin_layout Itemize
5977 Support bitmap drawing in Lua.
5980 \begin_layout Itemize
5981 Fix bsnes v085/v086 patches.
5984 \begin_layout Itemize
5985 Improve stability on win32.
5988 \begin_layout Subsection
5992 \begin_layout Itemize
5993 Don't corrupt movie if movie length is integer multiple of frames per page.
5996 \begin_layout Subsection
6000 \begin_layout Itemize
6001 New Lua hooks: on_rewind, on_frame_emulated, on_idle, on_timer
6004 \begin_layout Itemize
6005 New Lua functions: emulator_ready(), utime(), set_idle_timeout(), set_timer_time
6006 out(), bit.extract(), bit.value(), input.geta(), input.seta() and input.controllertyp
6010 \begin_layout Itemize
6011 Wxwidgets: Fix internal focus lost (hotkeys stop working)
6014 \begin_layout Itemize
6015 Wxwidgets: Fix broken modifiers
6018 \begin_layout Itemize
6019 on_paint has parameter now.
6022 \begin_layout Itemize
6023 Optional initital fill for bitmaps
6026 \begin_layout Itemize
6027 Fix palette changing.
6030 \begin_layout Itemize
6031 Optimize rendering a bit.
6034 \begin_layout Itemize
6038 \begin_layout Subsection
6042 \begin_layout Itemize
6043 Movieinfo: Fix display of port #2 type.
6046 \begin_layout Itemize
6047 Call on_input() after loadstate.
6050 \begin_layout Subsection
6054 \begin_layout Itemize
6055 Fix writing port2 data to movie.
6058 \begin_layout Itemize
6059 Fix SRAM handling with Bsnes v087.
6062 \begin_layout Subsection
6066 \begin_layout Itemize
6067 Library loading support
6070 \begin_layout Itemize
6071 Built-in TSCC encoder
6074 \begin_layout Itemize
6075 Hi-color (256T colors) dumping.
6078 \begin_layout Itemize
6079 Dump over TCP/IP(v6)
6082 \begin_layout Itemize
6083 Hidable status panel
6086 \begin_layout Itemize
6090 \begin_layout Itemize
6091 Adjustable sound volume
6094 \begin_layout Itemize
6098 \begin_layout Itemize
6099 Allow DnD into filename boxes
6102 \begin_layout Itemize
6106 \begin_layout Itemize
6107 Portaudio: Fix speaker popping at start
6110 \begin_layout Itemize
6114 \begin_layout Itemize
6115 Speed adjustment menu
6118 \begin_layout Itemize
6119 Win32 joystick support
6122 \begin_layout Itemize
6123 Lua: gui.rainbow and gui.box
6126 \begin_layout Itemize
6127 Split key lists into classes (the key list was large!)
6130 \begin_layout Itemize
6131 More save slots support
6134 \begin_layout Itemize
6135 Wxwidgets (wxJoystick) joystick support
6138 \begin_layout Subsection
6142 \begin_layout Itemize
6143 Lots of internal joystick refactoring
6146 \begin_layout Itemize
6147 Evdev: Add mapping for BTN_TOOL_QUINTTAP
6150 \begin_layout Itemize
6151 Wxwidgets: Settings mode (open settings without ROM)
6154 \begin_layout Itemize
6155 Wxwidgets: Prompt key to use option
6158 \begin_layout Itemize
6159 Wxwidgets: Fix crash if key goes away underneath
6162 \begin_layout Itemize
6163 Wxwidgets: Fix mouse position in presence of scaling
6166 \begin_layout Itemize
6167 AVI dumper: Mode 4 (high-quality resampling to common rate using SRC)
6170 \begin_layout Itemize
6171 Wxwidgets: Redesign hotkeys dialog to avoid tree control (tree control doesn't
6172 seem to work well on WinXP)
6175 \begin_layout Itemize
6176 Start paused option.