1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
6 \use_default_options true
7 \maintain_unincluded_children false
9 \language_package default
14 \font_typewriter default
15 \font_default_family default
16 \use_non_tex_fonts false
23 \default_output_format default
25 \bibtex_command default
26 \index_command default
27 \paperfontsize default
38 \paperorientation portrait
47 \paragraph_separation indent
48 \paragraph_indentation default
49 \quotes_language english
52 \paperpagestyle default
53 \tracking_changes false
66 \begin_layout Standard
67 lsnes is SNES rerecording emulator based on bsnes core.
74 \begin_layout Enumerate
79 \begin_layout Enumerate
83 \begin_layout Enumerate
84 accuracy or compatiblity core.
87 \begin_layout Enumerate
88 Patched version (using included 6 patches)
92 \begin_layout Enumerate
96 \begin_layout Enumerate
100 \begin_layout Enumerate
104 \begin_layout Enumerate
108 \begin_layout Enumerate
112 \begin_layout Enumerate
113 sdlmain (SDL only, part of SDL)
116 \begin_layout Enumerate
117 boost_conversion (this is header-only library)
120 \begin_layout Enumerate
121 libswscale (wxwidgets graphics only)
124 \begin_layout Enumerate
125 Portaudio (portaudio sound only)
128 \begin_layout Enumerate
129 std::thread and co (for threaded dumper only, not needed if std::thread
133 \begin_layout Enumerate
134 Lua (if Lua support is needed).
137 \begin_layout Itemize
138 Version 5.1.X or 5.2X.
141 \begin_layout Section
145 \begin_layout Standard
146 Building is via makefile, the following options are available:
149 \begin_layout Itemize
150 CROSS_PREFIX=<prefix>
154 \begin_layout Itemize
155 Prefix to apply to commands when building executables / object files for
156 the target architecture.
160 \begin_layout Itemize
165 \begin_layout Itemize
170 \begin_layout Itemize
171 Name of C++ compiler.
174 \begin_layout Itemize
175 CROSS_PREFIX is prepended if compiling for target architecture.
178 \begin_layout Itemize
179 This needs to be at least GCC 4.6.
182 \begin_layout Itemize
183 Set to 'g++-mp-4.6' if compiling on Mac OS X using GCC 4.6 from Macports.
186 \begin_layout Itemize
191 \begin_layout Itemize
196 \begin_layout Itemize
197 Name of host C++ compiler.
200 \begin_layout Itemize
201 Default is value of 'CC' option.
205 \begin_layout Itemize
206 USER_HOSTCCFLAGS=<flags>:
210 \begin_layout Itemize
211 Compiler flags to pass when compiling/linking for host architecture.
214 \begin_layout Itemize
219 \begin_layout Itemize
224 \begin_layout Itemize
225 Extra flags to pass when compiling for target architecture
228 \begin_layout Itemize
233 \begin_layout Itemize
234 USER_LDFLAGS=<flags>:
238 \begin_layout Itemize
239 Extra flags to pass when linking for target architecture.
242 \begin_layout Itemize
247 \begin_layout Itemize
248 USER_PLATFORM_CFLAGS=<flags>
252 \begin_layout Itemize
253 Extra flags to pass when compiling files using platform-dependent code for
257 \begin_layout Itemize
262 \begin_layout Itemize
263 USER_PLATFORM_LDFLAGS=<flags>
267 \begin_layout Itemize
268 Extra flags to pass when linking files using platform-dependent code for
272 \begin_layout Itemize
277 \begin_layout Itemize
282 \begin_layout Itemize
283 Set the font file to use.
286 \begin_layout Itemize
287 Currently the valid values are:
291 \begin_layout Itemize
292 cp437.hex: Standard VGA font (256 characters).
295 \begin_layout Itemize
296 unifontfull-5.1.20080820.hex: GNU unifont (covers most of Unicode BMP)
300 \begin_layout Itemize
301 Default is 'unifontfull-5.1.20080820.hex'
305 \begin_layout Itemize
310 \begin_layout Itemize
311 Package to use for Lua support.
314 \begin_layout Itemize
315 Usually valid value is 'lua' or 'lua5.1'.
318 \begin_layout Itemize
319 Default is not to build Lua support.
323 \begin_layout Itemize
328 \begin_layout Itemize
329 Override platform default for dumper threading support.
332 \begin_layout Itemize
333 Threading is default on Linux.
336 \begin_layout Itemize
337 'YES' tries to use threading (std::thread).
340 \begin_layout Itemize
341 'BOOST' tries to use threading (boost::thread).
344 \begin_layout Itemize
345 'NO' disables threading.
348 \begin_layout Itemize
349 Note: This has absolutely nothing to do with platform threading.
353 \begin_layout Itemize
354 BSNES_IS_COMPAT=<anything>
358 \begin_layout Itemize
359 Signals that BSNES core used is compatiblity core, not accuracy core.
362 \begin_layout Itemize
363 Default is to assume accuracy core.
367 \begin_layout Itemize
368 JOYSTICK=<implementation>
372 \begin_layout Itemize
373 Set joystick implementation.
378 \begin_layout Itemize
379 SDL: Use SDL for joystick (requires SDL graphics)
382 \begin_layout Itemize
383 EVDEV: Use EVDEV for joystick (Linux only).
386 \begin_layout Itemize
387 DUMMY: Disable joystick support.
391 \begin_layout Itemize
396 \begin_layout Itemize
397 SOUND=<implementation>
401 \begin_layout Itemize
402 Set sound implementation.
407 \begin_layout Itemize
408 SDL: Use SDL for sound (requires SDL graphics)
411 \begin_layout Itemize
412 PORTAUDIO: Use Portaudio for sound.
415 \begin_layout Itemize
416 DUMMY: Disable sound support
420 \begin_layout Itemize
425 \begin_layout Itemize
426 GRAPHICS=<implementation>
430 \begin_layout Itemize
431 Set windowing library to use.
436 \begin_layout Itemize
437 SDL: Use SDL for graphics
440 \begin_layout Itemize
441 WXWIDGETS: Use wxWidgets for graphics.
445 \begin_layout Itemize
450 \begin_layout Section
454 \begin_layout Subsection
458 \begin_layout Standard
459 <kind> in the following can be one of:
462 \begin_layout Itemize
463 rom: Cartridge ROM (BIOS for special carts).
467 \begin_layout Itemize
468 bsx: BS-X (non-slotted) Game flash ROM.
471 \begin_layout Itemize
472 bsxslotted: BS-X (slotted) Game flash ROM.
475 \begin_layout Itemize
479 \begin_layout Itemize
480 slot-a: Sufami Turbo Slot A ROM
483 \begin_layout Itemize
484 slot-b: Sufami Turbo Slot B ROM
487 \begin_layout Subsubsection
488 --<kind>=<file> (lsnes/SDL, lsnes-avidump)
491 \begin_layout Standard
492 Load <file> as specified ROM (SFC/BS/DMG/ST file format).
495 \begin_layout Subsubsection
496 --<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
499 \begin_layout Standard
500 Override hardware detection for ROM, reading the values from <file> (BSNES
504 \begin_layout Subsubsection
505 --ips-<kind>=<file> (lsnes/SDL, lsnes-avidump)
508 \begin_layout Standard
509 Apply BPS/IPS patch <file> to ROM <kind>.
510 If specified multiple times, the patches are applied in order.
513 \begin_layout Subsubsection
514 --ips-<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
517 \begin_layout Standard
518 Apply BPS/IPS patch <file> to XML of ROM <kind>.
519 If specified multiple times, the patches are applied in order.
522 \begin_layout Subsubsection
523 --ips-offset=<offset> (lsnes/SDL, lsnes-avidump)
526 \begin_layout Standard
527 Set offset to apply to IPS patches.
529 Handy for applying headered IPS patches (use offset of -512 for this).
530 The offset must be 0 for BPS patches.
533 \begin_layout Subsubsection
537 \begin_layout Standard
538 Force ROM to be considered PAL-only.
541 \begin_layout Itemize
542 Only works on SNES and SGB ROMs (not BS-X or Sufami Turbo).
545 \begin_layout Itemize
546 Attempting to load NTSC movie file will error out.
549 \begin_layout Subsubsection
553 \begin_layout Standard
554 Force ROM to be considered NTSC-only.
557 \begin_layout Itemize
558 Attempting to load PAL movie file will error out.
561 \begin_layout Subsection
565 \begin_layout Subsubsection
566 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
569 \begin_layout Standard
570 Load <filename> as movie or savestate file.
571 All other session options are ignored.
574 \begin_layout Subsubsection
575 --port1=<device> (lsnes/SDL)
578 \begin_layout Standard
583 \begin_layout Itemize
584 none: No device connected
587 \begin_layout Itemize
588 gamepad: One gamepad (the default)
591 \begin_layout Itemize
592 multitap: Four gamepads (warning: makes most games refuse to start)
595 \begin_layout Itemize
599 \begin_layout Subsubsection
600 --port2=<type> (lsnes/SDL)
603 \begin_layout Standard
608 \begin_layout Itemize
609 none: No device connected (the default)
612 \begin_layout Itemize
616 \begin_layout Itemize
617 multitap: Four gamepads.
620 \begin_layout Itemize
624 \begin_layout Itemize
625 superscope: Super Scope
628 \begin_layout Itemize
629 justifier: One justifier
632 \begin_layout Itemize
633 justifiers: Two justifiers
636 \begin_layout Subsubsection
637 --gamename=<name> (lsnes/SDL)
640 \begin_layout Standard
641 Set the name of game to <name>.
645 \begin_layout Subsubsection
646 --author=<name> (lsnes/SDL)
649 \begin_layout Standard
650 Add author with full name of <name> (no nickname).
653 \begin_layout Subsubsection
654 --author=|<name> (lsnes/SDL)
657 \begin_layout Standard
658 Add author with nickname of <name> (no full name).
661 \begin_layout Subsubsection
662 --author=<fullname>|<nickname> (lsnes/SDL)
665 \begin_layout Standard
666 Add author with full name of <fullname> and nickname of <nickname>.
669 \begin_layout Subsubsection
670 --rtc-second=<value> (lsnes/SDL)
673 \begin_layout Standard
674 Set RTC second (0 is 1st January 1970 00:00:00Z).
675 Default is 1,000,000,000.
678 \begin_layout Subsubsection
679 --rtc-subsecond=<value> (lsnes/SDL)
682 \begin_layout Standard
689 \begin_layout Subsection
694 \begin_layout Subsubsection
695 --run=<file> (lsnes/SDL)
698 \begin_layout Standard
699 After running main RC file, run this file.
700 If multiple are specified, these execute in order specified.
703 \begin_layout Subsection
704 dump options (lsnes-dumpavi only)
707 \begin_layout Subsubsection
711 \begin_layout Standard
712 Set the dumper to use (required).
713 Use 'list' for listing of known dumpers.
716 \begin_layout Subsubsection
720 \begin_layout Standard
721 Set the mode to use (required for dumpers with multiple modes, forbidden
723 Use 'list' for known modes.
726 \begin_layout Subsubsection
730 \begin_layout Standard
733 \begin_inset Quotes eld
737 \begin_inset Quotes erd
743 \begin_layout Subsubsection
744 --option=<name>=<value>
747 \begin_layout Standard
748 Set option <name> to value <value>.
751 \begin_layout Subsubsection
755 \begin_layout Standard
756 Set number of frames to dump.
760 \begin_layout Subsubsection
764 \begin_layout Standard
765 Run specified lua script (lsnes-dumpavi does not have initialization files).
768 \begin_layout Section
769 Startup file lsnes.rc
772 \begin_layout Standard
773 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
774 This file is located in:
777 \begin_layout Itemize
782 lsnes.rc (if %APPDATA% exists)
785 \begin_layout Itemize
786 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
789 \begin_layout Itemize
790 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
793 \begin_layout Itemize
794 All: ./lsnes.rc (fallback default).
797 \begin_layout Standard
798 If leading directories do not exist, attempt to create them is made.
801 \begin_layout Section
805 \begin_layout Itemize
806 Commands beginning with '*' invoke the corresponding command without alias
810 \begin_layout Itemize
811 If command starts with '+' (after possible '*'), the command is executed
812 as-is when button is pressed, and when button is released, it is executed
813 with '+' replaced by '-'.
816 \begin_layout Itemize
817 Commands without '+' execute only on negative edge (release).
820 \begin_layout Subsection
824 \begin_layout Standard
825 Settings control various aspects of emulator behaviour.
828 \begin_layout Subsubsection
829 set-setting <setting> <value>
832 \begin_layout Standard
833 Sets setting <setting> to value <value> (may be empty).
836 \begin_layout Subsubsection
837 unset-setting <setting>
840 \begin_layout Standard
841 Try to unset setting <setting> (not all settings can be unset).
844 \begin_layout Subsubsection
845 get-setting <setting>
848 \begin_layout Standard
849 Read value of setting <setting>
852 \begin_layout Subsubsection
856 \begin_layout Standard
857 Print names and values of all settings.
860 \begin_layout Subsection
864 \begin_layout Standard
865 Keybindings bind commands or aliases to keys (or pseudo-keys).
869 \begin_layout Standard
873 \begin_layout Itemize
874 Do not bind edge active (+/-) commands to keys with modifiers, that won't
878 \begin_layout Itemize
879 Names of keys and modifiers are platform-dependent.
882 \begin_layout Itemize
883 Be careful before binding pseudo-keys (such as joystick axes, buttons or
884 hats) with modifiers.
885 That may or may not work right.
888 \begin_layout Subsubsection
889 bind-key [<mod>/<modmask>] <key> <command>
892 \begin_layout Standard
893 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
894 ed list) are set as <mod> (comma-seperated list).
897 \begin_layout Standard
898 The names of keys and modifiers are platform-dependent.
901 \begin_layout Subsubsection
902 unbind-key [<mod>/<modmask>] <key>
905 \begin_layout Standard
906 Unbind command from <key> (with specified <mod> and <modmask>).
909 \begin_layout Subsubsection
910 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
911 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
912 [plus=<val>] [tolerance=<val>]
915 \begin_layout Standard
916 Set axis parameters for axis <axis>.
919 \begin_layout Itemize
920 disabled: Disable axis
923 \begin_layout Itemize
927 \begin_layout Itemize
928 axis-inverse: Inverse axis
931 \begin_layout Itemize
932 pressure0-: Pressure sensitive.
933 Released at 0, pressed at -.
936 \begin_layout Itemize
937 pressure0+: Pressure sensitive.
938 Released at 0, pressed at +.
941 \begin_layout Itemize
942 pressure-0: Pressure sensitive.
943 Released at -, pressed at 0.
946 \begin_layout Itemize
947 pressure-+: Pressure sensitive.
948 Released at -, pressed at +.
951 \begin_layout Itemize
952 pressure+0: Pressure sensitive.
953 Released at +, pressed at 0.
956 \begin_layout Itemize
957 pressure+-: Pressure sensitive.
958 Released at +, pressed at -.
961 \begin_layout Itemize
962 minus=<val>: Calibration at extreme minus position (-32768-32767)
965 \begin_layout Itemize
966 zero=<val>: Calibration at neutral position (-32768-32767)
969 \begin_layout Itemize
970 plus=<val>: Calibration at extreme plus position (-32768-32767)
973 \begin_layout Itemize
974 tolerance=<value>: Center band tolerance (0<x<1).
975 The smaller the value, the more sensitive the control is.
978 \begin_layout Subsubsection
982 \begin_layout Standard
983 Print all key bindings in effect.
986 \begin_layout Subsection
990 \begin_layout Standard
991 Aliases bind command to sequence of commands.
992 After alias has been defined, it replaces the command it shadows.
995 \begin_layout Standard
999 \begin_layout Itemize
1000 You can't alias command to itself.
1003 \begin_layout Itemize
1004 Aliases starting with +/- are edge active just like ordinary commands starting
1008 \begin_layout Itemize
1009 One command can be aliased to multiple commands.
1012 \begin_layout Subsubsection
1013 alias-command <command> <expansion>
1016 \begin_layout Standard
1017 Append <expansion> to alias <command>.
1018 If alias does not already exist, it is created.
1021 \begin_layout Subsubsection
1022 unalias-command <command>
1025 \begin_layout Standard
1026 Clear alias expansion for <command>.
1029 \begin_layout Subsubsection
1033 \begin_layout Standard
1034 Print all aliases and their expansions in effect.
1037 \begin_layout Subsection
1041 \begin_layout Standard
1042 Run <script> as if commands were entered on the command line.
1045 \begin_layout Subsection
1049 \begin_layout Standard
1050 Following commands control video dumping:
1053 \begin_layout Subsubsection
1057 \begin_layout Standard
1058 Dump AVI video to prefix <prefix> Notes:
1061 \begin_layout Itemize
1062 The codec is Camstudio Codec in gzip mode.
1065 \begin_layout Itemize
1066 Encoder and muxer are internal, available on all platforms.
1069 \begin_layout Itemize
1070 Audio enable/disable and framerate has no effect.
1073 \begin_layout Itemize
1074 The audio dumped to .avi is low-quality version.
1075 The high-quality version is dumped to .sox file.
1078 \begin_layout Subsubsection
1082 \begin_layout Standard
1083 End current AVI video dump (closing the emulator also closes the dump).
1086 \begin_layout Subsubsection
1090 \begin_layout Standard
1091 Dump JMD video to file <file>.
1094 \begin_layout Subsubsection
1098 \begin_layout Standard
1099 End the current JMD dump in progress.
1102 \begin_layout Subsubsection
1106 \begin_layout Standard
1107 Dump SDMP to <prefix>, splitting at 2GB.
1110 \begin_layout Subsubsection
1114 \begin_layout Standard
1115 Dump SDMP to <file>, no splitting
1118 \begin_layout Subsubsection
1122 \begin_layout Standard
1123 End the current SDMP dump in progress.
1126 \begin_layout Subsubsection
1130 \begin_layout Standard
1131 Dump raw audio (to <prefix>.audio, at 32040.5Hz) and video (to <prefix>.video>,
1132 at nominal framerate and 512x448 / 512x478 size).
1135 \begin_layout Subsubsection
1139 \begin_layout Standard
1140 End the current RAW dump in progress.
1143 \begin_layout Subsection
1147 \begin_layout Standard
1148 <address> may be decimal or hexadecimal (prefixed with '0x').
1149 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
1153 \begin_layout Standard
1154 The available element <sizes> are:
1157 \begin_layout Itemize
1161 \begin_layout Itemize
1165 \begin_layout Itemize
1169 \begin_layout Itemize
1173 \begin_layout Standard
1174 When reading RAM and ROM, multi-byte reads/writes are big-endian.
1175 When dealing with DSP memory, multi-byte reads/writes are native-endian
1176 (do not use operand sizes exceeding DSP bitness, except dword is OK for
1180 \begin_layout Subsubsection
1181 read-<size> <address>
1184 \begin_layout Standard
1185 Read the value of byte in <address>.
1188 \begin_layout Subsubsection
1189 read-s<size> <address>
1192 \begin_layout Standard
1193 Read the value of signed byte in <address>.
1196 \begin_layout Subsubsection
1197 write-<size> <address> <value>
1200 \begin_layout Standard
1201 Write <value> to byte in address <address>.
1204 \begin_layout Subsubsection
1208 \begin_layout Standard
1209 Reset the memory search
1212 \begin_layout Subsubsection
1216 \begin_layout Standard
1217 Print number of candidates remaining
1220 \begin_layout Subsubsection
1224 \begin_layout Standard
1225 Print all candidates remaining
1228 \begin_layout Subsubsection
1229 search-memory <usflag><sizeflag><op>
1232 \begin_layout Standard
1233 Searches memory for addresses satisfying criteria.
1236 \begin_layout Standard
1240 \begin_layout Itemize
1244 \begin_layout Itemize
1248 \begin_layout Standard
1252 \begin_layout Itemize
1256 \begin_layout Itemize
1260 \begin_layout Itemize
1264 \begin_layout Itemize
1268 \begin_layout Standard
1272 \begin_layout Itemize
1273 lt: < previous value.
1276 \begin_layout Itemize
1277 le: <= previous value.
1280 \begin_layout Itemize
1281 eq: = previous value.
1284 \begin_layout Itemize
1285 ne: != previous value.
1288 \begin_layout Itemize
1289 ge: >= previous value.
1292 \begin_layout Itemize
1293 gt: > previous value.
1296 \begin_layout Subsubsection
1297 search-memory <sizeflag> <value>
1300 \begin_layout Standard
1301 Searches for addresses that currently have value <value>.
1302 <sizeflag> is as in previous command.
1305 \begin_layout Subsection
1309 \begin_layout Standard
1310 These commands are not available in lsnesrc, but are available after ROM
1314 \begin_layout Subsubsection
1318 \begin_layout Standard
1319 Quits the emulator (asking for confirmation).
1320 If /y is given, no confirmation is asked.
1323 \begin_layout Subsubsection
1327 \begin_layout Standard
1328 Toggle paused/unpaused
1331 \begin_layout Subsubsection
1335 \begin_layout Standard
1337 If the button is still held after configurable timeout expires, game unpauses
1338 for the duration frame advance is held.
1341 \begin_layout Subsubsection
1345 \begin_layout Standard
1347 If the button is still held after configurable timeout expires, game unpauses
1348 for the duration frame advance is held.
1351 \begin_layout Subsubsection
1355 \begin_layout Standard
1356 Skip to first poll in frame after current.
1359 \begin_layout Subsubsection
1363 \begin_layout Standard
1364 Reset the SNES after this frame.
1367 \begin_layout Subsubsection
1371 \begin_layout Standard
1372 Load savestate <filename> in current mode.
1375 \begin_layout Subsubsection
1376 load-state <filename>
1379 \begin_layout Standard
1380 Load savestate <filename> in readwrite mode.
1383 \begin_layout Subsubsection
1384 load-readonly <filename>
1387 \begin_layout Standard
1388 Load savestate <filename> in readonly mode.
1391 \begin_layout Subsubsection
1392 load-preserve <filename>
1395 \begin_layout Standard
1396 Load savestate <filename> in readonly mode, preserving current events.
1399 \begin_layout Subsubsection
1400 load-movie <filename>
1403 \begin_layout Standard
1404 Load savestate <filename>, ignoring save part in readonly mode.
1407 \begin_layout Subsubsection
1408 save-state <filename>
1411 \begin_layout Standard
1412 Save system state to <filename> as soon as possible.
1415 \begin_layout Subsubsection
1416 save-movie <filename>
1419 \begin_layout Standard
1420 Save movie to <filename>.
1423 \begin_layout Subsubsection
1427 \begin_layout Standard
1428 Set read-write mode.
1431 \begin_layout Subsubsection
1435 \begin_layout Standard
1439 \begin_layout Subsubsection
1443 \begin_layout Standard
1444 Toggle between read-only and read-write modes.
1447 \begin_layout Subsubsection
1451 \begin_layout Standard
1452 Set name of the game to <name>
1455 \begin_layout Subsubsection
1459 \begin_layout Standard
1460 Print the name of the game.
1463 \begin_layout Subsubsection
1467 \begin_layout Standard
1468 Adds new author <author>.
1469 If <author> does not contain '|' it is full name.
1470 If it contains '|', '|' splits the full name and nickname.
1473 \begin_layout Subsubsection
1474 edit-author <num> <author>
1477 \begin_layout Standard
1478 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1482 \begin_layout Subsubsection
1486 \begin_layout Standard
1487 Remove author in slot <num>
1490 \begin_layout Subsubsection
1494 \begin_layout Standard
1498 \begin_layout Subsubsection
1499 test-1, test-2, test-3
1502 \begin_layout Standard
1503 Internal test commands.
1507 \begin_layout Subsubsection
1508 take-screenshot <filename>
1511 \begin_layout Standard
1512 Save screenshot to <filename>.
1515 \begin_layout Subsubsection
1516 +controller<num><button>
1519 \begin_layout Standard
1520 Press button <button> on controller <num> (1-8).
1521 The following button names are known:
1524 \begin_layout Itemize
1528 \begin_layout Itemize
1532 \begin_layout Itemize
1536 \begin_layout Itemize
1540 \begin_layout Itemize
1544 \begin_layout Itemize
1548 \begin_layout Itemize
1552 \begin_layout Itemize
1556 \begin_layout Itemize
1560 \begin_layout Itemize
1564 \begin_layout Itemize
1568 \begin_layout Itemize
1572 \begin_layout Itemize
1576 \begin_layout Itemize
1580 \begin_layout Itemize
1584 \begin_layout Itemize
1588 \begin_layout Subsubsection
1589 controllerh<num><button>
1592 \begin_layout Standard
1593 Hold/unhold button <button> on controller <num> (1-8).
1594 See +controller for button names.
1597 \begin_layout Subsubsection
1598 autofire (<pattern>|-)...
1601 \begin_layout Standard
1602 Set autofire pattern.
1603 Each parameter is comma-separated list of button names (in form of 1start,
1604 1A, 2B, etc..) to hold on that frame.
1605 After reaching the end of pattern, the pattern restarts from the beginning.
1608 \begin_layout Subsubsection
1612 \begin_layout Standard
1616 \begin_layout Subsection
1620 \begin_layout Subsubsection
1621 cycle-jukebox-backward
1624 \begin_layout Standard
1625 Cycle save jukebox backwards.
1628 \begin_layout Subsubsection
1629 cycle-jukebox-forward
1632 \begin_layout Standard
1633 Cycle save jukebox forwards
1636 \begin_layout Subsubsection
1637 add-jukebox-save <filename>
1640 \begin_layout Standard
1641 Add <filename> to jukebox saves.
1644 \begin_layout Subsubsection
1648 \begin_layout Standard
1649 Do load from jukebox (current mode).
1652 \begin_layout Subsubsection
1656 \begin_layout Standard
1657 Do state save to jukebox.
1660 \begin_layout Subsection
1664 \begin_layout Standard
1665 Only available if lua support is compiled in.
1668 \begin_layout Subsubsection
1669 evaluate-lua <luacode>
1672 \begin_layout Standard
1673 Run Lua code <luacode> using built-in Lua interpretter.
1676 \begin_layout Subsubsection
1680 \begin_layout Standard
1681 Run specified lua file using built-in Lua interpretter.
1684 \begin_layout Subsection
1688 \begin_layout Subsubsection
1689 add-watch <name> <expression>
1692 \begin_layout Standard
1693 Adds new watch (or modifies old one).
1696 \begin_layout Subsubsection
1700 \begin_layout Standard
1704 \begin_layout Subsection
1708 \begin_layout Subsubsection
1709 enable-sound <on/off>
1712 \begin_layout Standard
1713 Enable/Disable sound.
1716 \begin_layout Subsubsection
1717 set-sound-device <device>
1720 \begin_layout Standard
1721 Set sound device to <device>
1724 \begin_layout Subsubsection
1728 \begin_layout Standard
1729 Show status of sound system.
1732 \begin_layout Subsubsection
1736 \begin_layout Standard
1737 Show all available devices.
1740 \begin_layout Subsection
1741 SDL Platform commands
1744 \begin_layout Standard
1745 The following are valid on SDL platform.
1748 \begin_layout Subsubsection
1752 \begin_layout Standard
1753 Asks to press a key and then identifies that (pseudo-)key.
1756 \begin_layout Subsubsection
1760 \begin_layout Standard
1761 Toggle between windowed/fullscreen console.
1764 \begin_layout Subsubsection
1768 \begin_layout Standard
1769 Scroll messages window as far back as it goes.
1772 \begin_layout Subsubsection
1776 \begin_layout Standard
1777 Scroll messages window as far forward as it goes.
1780 \begin_layout Subsubsection
1784 \begin_layout Standard
1785 Scroll messages window back one screenful.
1788 \begin_layout Subsubsection
1792 \begin_layout Standard
1793 Scroll messages window forward one screenful.
1796 \begin_layout Section
1800 \begin_layout Subsection
1804 \begin_layout Subsubsection
1808 \begin_layout Standard
1809 Set where bsnes looks for firmware files.
1811 \begin_inset Quotes eld
1815 \begin_inset Quotes erd
1821 \begin_layout Subsubsection
1825 \begin_layout Standard
1827 Numeric, range is 0.001 to
1828 \begin_inset Quotes eld
1832 \begin_inset Quotes erd
1836 Default is native framerate.
1839 \begin_layout Subsubsection
1843 \begin_layout Standard
1844 Set save compression level (integer 0-9).
1845 Default is 7 (0 is no compression).
1848 \begin_layout Subsubsection
1852 \begin_layout Standard
1853 Set the frame advance timeout in milliseconds.
1854 Numeric integer, range is 0-999999999.
1858 \begin_layout Subsection
1862 \begin_layout Subsubsection
1866 \begin_layout Standard
1867 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1871 \begin_layout Subsubsection
1875 \begin_layout Standard
1876 AVI dumper: Set the default left border thickness (unless lua overrides)
1882 \begin_layout Subsubsection
1886 \begin_layout Standard
1887 AVI dumper: Set the default right border thickness (unless lua overrides)
1893 \begin_layout Subsubsection
1897 \begin_layout Standard
1898 AVI dumper: Set the default top border thickness (unless lua overrides)
1904 \begin_layout Subsubsection
1908 \begin_layout Standard
1909 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1915 \begin_layout Subsubsection
1919 \begin_layout Standard
1920 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1925 \begin_layout Subsubsection
1929 \begin_layout Standard
1930 AVI dumper: Compression level (0-18).
1933 \begin_layout Itemize
1934 Compression levels 10 and above are not compatible with stock CSCD codec.
1937 \begin_layout Itemize
1938 Recomended level is 7.
1941 \begin_layout Subsubsection
1945 \begin_layout Standard
1946 AVI dumper: Set method of determining the sound rate.
1949 \begin_layout Itemize
1950 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
1951 128, 176.4 and 192 kHz.
1954 \begin_layout Itemize
1955 1: Round down to nearest integer.
1958 \begin_layout Itemize
1959 2: Round up to nearest ingeter.
1962 \begin_layout Subsection
1966 \begin_layout Subsubsection
1970 \begin_layout Standard
1971 JMD dumper: Compression level (0-9).
1974 \begin_layout Subsection
1975 SDL platform settings
1978 \begin_layout Subsubsection
1979 autorepeat-first-delay
1982 \begin_layout Standard
1983 Sets the delay for first character in typematic autorepeat.
1986 \begin_layout Subsubsection
1987 autorepeat-subsequent-delay
1990 \begin_layout Standard
1991 Sets the delay for subsequent characters in typematic autorepeat.
1994 \begin_layout Section
1998 \begin_layout Subsection
1999 Core (in main table)
2002 \begin_layout Subsubsection
2006 \begin_layout Standard
2007 Print line to message console.
2010 \begin_layout Subsubsection
2011 exec(string command)
2014 \begin_layout Standard
2015 Run command as it was entered on the command line
2018 \begin_layout Subsection
2022 \begin_layout Standard
2023 Bitwise logical functions and related.
2026 \begin_layout Subsubsection
2027 bit.none(number...) / bit.bnot(number...)
2030 \begin_layout Standard
2031 48-bit bitwise NOT / NONE function (set bits that are set in none of the
2035 \begin_layout Subsubsection
2036 bit.any(number...) / bit.bor(number...)
2039 \begin_layout Standard
2040 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
2043 \begin_layout Subsubsection
2044 bit.all(number...) / bit.band(number...)
2047 \begin_layout Standard
2048 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
2052 \begin_layout Subsubsection
2053 bit.parity(number...) / bit.bxor(number...)
2056 \begin_layout Standard
2057 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
2061 \begin_layout Subsubsection
2062 bit.lrotate(number base[, number amount[, number bits]])
2065 \begin_layout Standard
2066 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
2069 \begin_layout Subsubsection
2070 bit.rrotate(number base[, number amount[, number bits]])
2073 \begin_layout Standard
2074 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
2078 \begin_layout Subsubsection
2079 bit.lshift(number base[, number amount[, number bits]])
2082 \begin_layout Standard
2083 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
2084 The new bits are filled with zeroes.
2087 \begin_layout Subsubsection
2088 bit.lrshift(number base[, number amount[, number bits]])
2091 \begin_layout Standard
2092 Shift bits-bit (max 48, default 48) number logically right by amount (default
2094 The new bits are filled with zeroes.
2097 \begin_layout Subsubsection
2098 bit.arshift(number base[, number amount[, number bits]])
2101 \begin_layout Standard
2102 Shift bits-bit (max 48, default 48) number arithmetically right by amount
2104 The new bits are shifted in with copy of the high bit.
2107 \begin_layout Subsection
2111 \begin_layout Standard
2112 Most of these functions can only be called in on_paint and on_video callbacks.
2113 Exceptions are noted.
2116 \begin_layout Standard
2118 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
2119 16-23 are the red component, bits 24-31 are alpha component (0 is fully
2120 opaque, 255 is almost transparent).
2121 -1 is the fully transparent color.
2122 Alpha values greater than 127 do work.
2125 \begin_layout Standard
2126 Origin of coordinates is at top left corner of game display area.
2127 Left and top gaps correspond to negative coordinates.
2130 \begin_layout Subsubsection
2134 \begin_layout Standard
2135 Returns 2-tuple (hresolution, vresolution).
2138 \begin_layout Subsubsection
2139 gui.<class>_gap(number gap)
2142 \begin_layout Standard
2143 Set the <class> (left, right, top, bottom) gap to specified value (max gap
2147 \begin_layout Subsubsection
2148 gui.text(number x, number y, string text[, number fgc[, number bgc]])
2151 \begin_layout Standard
2152 Draw specified text on the GUI (each character cell is 8 or 16 wide and
2157 \begin_layout Itemize
2158 x: X-coordinate to start the drawing from (and x-coordinate at begining
2162 \begin_layout Itemize
2163 y: Y-coordinate to start the drawing from.
2166 \begin_layout Itemize
2167 text: The text to draw.
2170 \begin_layout Itemize
2171 fgc: Text color (default is 0xFFFFFF (white))
2174 \begin_layout Itemize
2175 bgc: Background color (default is -1 (transparent))
2178 \begin_layout Subsubsection
2179 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
2182 \begin_layout Standard
2183 Like gui.text, but draw using double-width.
2186 \begin_layout Subsubsection
2187 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
2190 \begin_layout Standard
2191 Like gui.text, but draw using double-height.
2194 \begin_layout Subsubsection
2195 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
2198 \begin_layout Standard
2199 Like gui.text, but draw using double-width/double-height.
2202 \begin_layout Subsubsection
2203 gui.rectangle(number x, number y, number width, number height[, number thickness[
2204 , number outline[, number fill]]])
2207 \begin_layout Standard
2208 Draw rectangle on the GUI.
2212 \begin_layout Itemize
2213 x: X-coordinate of left edge.
2216 \begin_layout Itemize
2217 y: Y-coordinate of upper edge.
2220 \begin_layout Itemize
2221 width: Width of rectangle.
2224 \begin_layout Itemize
2225 height: Height of rectangle.
2228 \begin_layout Itemize
2229 thickness: Thickness of outline (default is 1).
2232 \begin_layout Itemize
2233 outline: Color of outline (default is 0xFFFFFF (white))
2236 \begin_layout Itemize
2237 fill: Color of fil (default is -1 (transparent))
2240 \begin_layout Subsubsection
2241 gui.pixel(number x, number y[, number color])
2244 \begin_layout Standard
2245 Draw one pixel on the GUI.
2249 \begin_layout Itemize
2250 x: X-coordinate of the pixel
2253 \begin_layout Itemize
2254 y: Y-coordinate of the pixel
2257 \begin_layout Itemize
2258 color: Color of the pixel (default is 0xFFFFFF (white))
2261 \begin_layout Subsubsection
2262 gui.crosshair(number x, number y[, number length[, number color]])
2265 \begin_layout Standard
2270 \begin_layout Itemize
2271 x: X-coordinate of the crosshair
2274 \begin_layout Itemize
2275 y: Y-coordinate of the crosshair
2278 \begin_layout Itemize
2279 length: Length of the crosshair lines (default 10).
2282 \begin_layout Itemize
2283 color: Color of the crosshair (default is 0xFFFFFF (white))
2286 \begin_layout Subsubsection
2287 gui.line(number x1, number y1, number x2, number y2[, number color])
2290 \begin_layout Standard
2295 \begin_layout Itemize
2296 x1: X-coordinate of one end.
2299 \begin_layout Itemize
2300 y1: Y-coordinate of one end.
2303 \begin_layout Itemize
2304 x2: X-coordinate of the other end.
2307 \begin_layout Itemize
2308 y2: Y-coordinate of the other end.
2311 \begin_layout Itemize
2312 color: Color of the line (default is 0xFFFFFF (white)).
2315 \begin_layout Subsubsection
2316 gui.circle(number x, number y, number r[, number thick[, number border[,
2320 \begin_layout Standard
2325 \begin_layout Itemize
2326 x: X-coordinate of the center
2329 \begin_layout Itemize
2330 y: Y-coordinate of the center
2333 \begin_layout Itemize
2334 r: The radius of the circle
2337 \begin_layout Itemize
2338 thick: Border thickness
2341 \begin_layout Itemize
2342 border: Border color (default is 0xFFFFFF (white))
2345 \begin_layout Itemize
2346 fill: Fill color (default is -1 (transparent)).
2349 \begin_layout Subsubsection
2350 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
2353 \begin_layout Standard
2354 Draw a bitmap on screen with specified palette.
2358 \begin_layout Itemize
2359 x: X-coordinate of left edge.
2362 \begin_layout Itemize
2363 y: Y-coordinate of top edge.
2366 \begin_layout Itemize
2367 bitmap: The bitmap to draw
2370 \begin_layout Itemize
2371 palette: The palette to draw the bitmap using.
2374 \begin_layout Subsubsection
2375 gui.bitmap_draw(number x, number y, dbitmap bitmap)
2378 \begin_layout Standard
2379 Draw a bitmap on screen.
2383 \begin_layout Itemize
2384 x: X-coordinate of left edge.
2387 \begin_layout Itemize
2388 y: Y-coordinate of top edge.
2391 \begin_layout Itemize
2392 bitmap: The bitmap to draw
2395 \begin_layout Subsubsection
2399 \begin_layout Standard
2400 Returns a new palette (initially all transparent).
2401 Can be used anywhere.
2404 \begin_layout Subsubsection
2405 gui.bitmap_new(number w, number h, boolean direct)
2408 \begin_layout Standard
2409 Returns a new bitmap/dbitmap.
2410 Can be used anywhere.
2414 \begin_layout Itemize
2415 w: The width of new bitmap
2418 \begin_layout Itemize
2419 h: The height of new bitmap
2422 \begin_layout Itemize
2423 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
2426 \begin_layout Subsubsection
2427 gui.bitmap_load(string file)
2430 \begin_layout Standard
2431 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
2433 Can be used anywhere.
2437 \begin_layout Itemize
2438 file: The name of file to load.
2441 \begin_layout Subsubsection
2442 gui.palette_set(palette palette, number index, number color)
2445 \begin_layout Standard
2446 Sets color in palette.
2447 Can be used anywhere.
2451 \begin_layout Itemize
2452 palette: The palette to manipulate
2455 \begin_layout Itemize
2456 index: Index of color (0-65535).
2459 \begin_layout Itemize
2460 color: The color value.
2463 \begin_layout Subsubsection
2464 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
2467 \begin_layout Standard
2468 Sets specified pixel in bitmap.
2469 Can be used anywhere.
2473 \begin_layout Itemize
2474 bitmap: The bitmap to manipulate
2477 \begin_layout Itemize
2478 x: The x-coordinate of the pixel.
2481 \begin_layout Itemize
2482 y: The y-coordinate of the pixel.
2485 \begin_layout Itemize
2486 color: If bitmap is a bitmap, color index (0-65535).
2487 Otherwise color value.
2490 \begin_layout Subsubsection
2491 gui.bitmap_size(bitmap/dbitmap bitmap)
2494 \begin_layout Standard
2496 Can be used anywhere.
2500 \begin_layout Itemize
2501 bitmap: The bitmap to query.
2504 \begin_layout Standard
2505 The first return is the width, the second is the height.
2508 \begin_layout Subsubsection
2509 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
2510 src, number sx, number sy, number w, number h[, number ck])
2513 \begin_layout Standard
2514 Blit a part of bitmap to another.
2515 Can be used anywhere.
2519 \begin_layout Itemize
2520 dest: Destination to blit to.
2523 \begin_layout Itemize
2524 dx: left edge of target
2527 \begin_layout Itemize
2528 dy: Top edge of target
2531 \begin_layout Itemize
2532 src: The source to blit from.
2533 Must be of the same type as destination.
2536 \begin_layout Itemize
2537 sx: left edge of source
2540 \begin_layout Itemize
2541 sy: Top edge of source
2544 \begin_layout Itemize
2548 \begin_layout Itemize
2549 h: Height of region.
2552 \begin_layout Itemize
2554 Pixels of this color are not blitted.
2558 \begin_layout Itemize
2559 If bitmaps are bitmaps, this is color index of colorkey.
2560 Values outside range 0-65535 cause no key to be used as colorkey.
2563 \begin_layout Itemize
2564 If bitmaps are dbitmaps, this color value of colorkey.
2567 \begin_layout Itemize
2568 May be absent or nil for no colorkey blit.
2572 \begin_layout Subsubsection
2576 \begin_layout Standard
2577 Request on_repaint() to happen as soon as possible.
2578 Can be used anywhere.
2581 \begin_layout Subsubsection
2582 gui.subframe_update(boolean on)
2585 \begin_layout Standard
2586 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2587 or not happen (on=false).
2588 Can be used anywhere.
2591 \begin_layout Subsubsection
2592 gui.screenshot(string filename)
2595 \begin_layout Standard
2596 Write PNG screenshot of the current frame (no drawings) to specified file.
2597 Can be used anywhere.
2600 \begin_layout Subsubsection
2601 gui.color(number r, number g, number b[, number a])
2604 \begin_layout Standard
2605 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2606 each component in scale 0-255.
2607 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2609 The default alpha is 256.
2612 \begin_layout Subsubsection
2613 gui.status(string name, string value)
2616 \begin_layout Standard
2618 \begin_inset Quotes eld
2622 \begin_inset Quotes erd
2625 to <value> in status area.
2626 Can be used anywhere.
2629 \begin_layout Subsection
2633 \begin_layout Standard
2635 Only available in on_input callback.
2638 \begin_layout Subsubsection
2639 input.get(number controller, number index)
2642 \begin_layout Standard
2643 Read the specified index (0-11) from specified controller (0-7).
2647 \begin_layout Itemize
2648 Uses physical controller numbering.
2649 Gamepad in port 2 is controller 4, not 1!
2652 \begin_layout Subsubsection
2653 input.set(number controller, number index, number value)
2656 \begin_layout Standard
2657 Write the specified index (0-11) from specified controller (0-7), storing
2662 \begin_layout Itemize
2663 Uses physical controller numbering.
2664 Gamepad in port 2 is controller 4, not 1!
2667 \begin_layout Subsubsection
2668 input.reset([number cycles])
2671 \begin_layout Standard
2673 If cycles is greater than zero, do delayed reset.
2674 0 (or no value) causes immediate reset.
2677 \begin_layout Itemize
2678 Only available with subframe flag false.
2681 \begin_layout Subsubsection
2685 \begin_layout Standard
2686 Returns table of tables of all available keys and axes.
2687 The first table is indexed by key name (platform-dependent!), and the inner
2688 table has the following fields:
2691 \begin_layout Itemize
2692 last_rawval: Last reported raw value for control.
2695 \begin_layout Itemize
2696 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2697 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2700 \begin_layout Itemize
2701 cal_left: Minimum calibration value.
2702 Only meaningful with axis and pressure types.
2705 \begin_layout Itemize
2706 cal_center: Center calibration value.
2707 Only meaningful with axis and pressure types.
2710 \begin_layout Itemize
2711 cal_right: Maximum calibration value.
2712 Only meaningful with axis and pressure types.
2715 \begin_layout Itemize
2716 cal_tolerance: Dead zone tolerance.
2717 Only meaningful with axis and pressure types.
2720 \begin_layout Subsubsection
2721 input.keyhook(key, state)
2724 \begin_layout Standard
2725 Requests that keyhook events to be sent for key (state=true) or not sent
2729 \begin_layout Subsection
2733 \begin_layout Standard
2734 Host memory handling (extra memory saved to savestates).
2735 Host memory starts empty.
2738 \begin_layout Subsubsection
2739 hostmemory.read(number address)
2742 \begin_layout Standard
2743 Reads hostmemory slot address.
2744 Slot numbers out of range return false instead of numeric.
2747 \begin_layout Subsubsection
2748 hostmemory.write(number address, number value)
2751 \begin_layout Standard
2752 Writes hostmemory slot with 0-255.
2753 Slot numbers out of range cause extension of host memory slot space.
2756 \begin_layout Subsubsection
2757 hostmemory.readbyte(number address)
2760 \begin_layout Standard
2761 Read unsigned byte (1 element) from given address.
2762 Slots out of range return false.
2765 \begin_layout Subsubsection
2766 hostmemory.writebyte(number address, number value)
2769 \begin_layout Standard
2770 Write unsigned byte (1 element) to given slot.
2771 Slot numbers out of range cause extension.
2774 \begin_layout Subsubsection
2775 hostmemory.readsbyte(number address)
2778 \begin_layout Standard
2779 Read signed byte (1 element) from given address.
2780 Slots out of range return false.
2783 \begin_layout Subsubsection
2784 hostmemory.writesbyte(number address, number value)
2787 \begin_layout Standard
2788 Write signed byte (1 element) to given slot.
2789 Slot numbers out of range cause extension.
2792 \begin_layout Subsubsection
2793 hostmemory.readword(number address)
2796 \begin_layout Standard
2797 Read unsigned word (2 elements) from given address.
2798 Slots out of range return false.
2801 \begin_layout Subsubsection
2802 hostmemory.writeword(number address, number value)
2805 \begin_layout Standard
2806 Write unsigned word (2 elements) to given slot.
2807 Slot numbers out of range cause extension.
2810 \begin_layout Subsubsection
2811 hostmemory.readsword(number address)
2814 \begin_layout Standard
2815 Read signed word (2 elements) from given address.
2816 Slots out of range return false.
2819 \begin_layout Subsubsection
2820 hostmemory.writesword(number address, number value)
2823 \begin_layout Standard
2824 Write signed word (2 elements) to given slot.
2825 Slot numbers out of range cause extension.
2828 \begin_layout Subsubsection
2829 hostmemory.readdword(number address)
2832 \begin_layout Standard
2833 Read unsigned doubleword (4 elements) from given address.
2834 Slots out of range return false.
2837 \begin_layout Subsubsection
2838 hostmemory.writedword(number address, number value)
2841 \begin_layout Standard
2842 Write unsigned doubleword (4 elements) to given slot.
2843 Slot numbers out of range cause extension.
2846 \begin_layout Subsubsection
2847 hostmemory.readsdword(number address)
2850 \begin_layout Standard
2851 Read signed doubleword (4 elements) from given address.
2852 Slots out of range return false.
2855 \begin_layout Subsubsection
2856 hostmemory.writesdword(number address, number value)
2859 \begin_layout Standard
2860 Write signed doubleword (4 elements) to given slot.
2861 Slot numbers out of range cause extension.
2864 \begin_layout Subsubsection
2865 hostmemory.readqword(number address)
2868 \begin_layout Standard
2869 Read unsigned quadword (8 elements) from given address.
2870 Slots out of range return false.
2873 \begin_layout Subsubsection
2874 hostmemory.writeqword(number address, number value)
2877 \begin_layout Standard
2878 Write unsigned quadword (4 elements) to given slot.
2879 Slot numbers out of range cause extension.
2882 \begin_layout Subsubsection
2883 hostmemory.readsqword(number address)
2886 \begin_layout Standard
2887 Read signed quadword (8 elements) from given address.
2888 Slots out of range return false.
2891 \begin_layout Subsubsection
2892 hostmemory.writesqword(number address, number value)
2895 \begin_layout Standard
2896 Write signed quadword (8 elements) to given slot.
2897 Slot numbers out of range cause extension.
2900 \begin_layout Subsection
2904 \begin_layout Standard
2908 \begin_layout Subsubsection
2909 movie.currentframe()
2912 \begin_layout Standard
2913 Return number of current frame.
2916 \begin_layout Subsubsection
2920 \begin_layout Standard
2921 Return number of frames in movie.
2924 \begin_layout Subsubsection
2928 \begin_layout Standard
2929 Return true if in readonly mode, false if in readwrite.
2932 \begin_layout Subsubsection
2933 movie.set_readwrite()
2936 \begin_layout Standard
2937 Set readwrite mode (does not cause on_readwrite callback).
2940 \begin_layout Subsubsection
2941 movie.frame_subframes(number frame)
2944 \begin_layout Standard
2945 Count number of subframes in specified frame (frame numbers are 1-based)
2949 \begin_layout Subsubsection
2950 movie.read_subframe(number frame, number subframe)
2953 \begin_layout Standard
2954 Read specifed subframe in specified frame and return data as array (100
2955 elements, numbered 0-99 currently).
2958 \begin_layout Subsection
2962 \begin_layout Standard
2963 Routines for settings manipulation
2966 \begin_layout Subsubsection
2967 settings.get(string name)
2970 \begin_layout Standard
2971 Get value of setting.
2972 If setting is blank, returns false.
2973 If setting value can't be obtained, returns (nil, error message).
2976 \begin_layout Subsubsection
2977 settings.set(string name, string value)
2980 \begin_layout Standard
2981 Set value of setting.
2982 If setting can't be set, returns (nil, error message).
2985 \begin_layout Subsubsection
2986 settings.is_set(string name)
2989 \begin_layout Standard
2990 Returns if setting is set.
2991 If setting does not exist, returns (nil, error message).
2994 \begin_layout Subsubsection
2995 settings.blank(string name)
2998 \begin_layout Standard
2999 Blanks a setting and returns true.
3000 If setting can't be blanked, returns (nil, error message).
3003 \begin_layout Subsection
3007 \begin_layout Standard
3008 Contains various functions for managing memory
3011 \begin_layout Subsubsection
3015 \begin_layout Standard
3016 Returns the number of VMAs
3019 \begin_layout Subsubsection
3020 memory.read_vma(number index)
3023 \begin_layout Standard
3024 Reads the specified VMA (indices start from zero).
3025 Trying to read invalid VMA gives nil.
3026 The read VMA is table with the following fields:
3029 \begin_layout Itemize
3030 region_name (string): The readable name of the VMA
3033 \begin_layout Itemize
3034 baseaddr (number): Base address of the VMA
3037 \begin_layout Itemize
3038 lastaddr (number): Last address in the VMA.
3041 \begin_layout Itemize
3042 size (number): The size of VMA in bytes.
3045 \begin_layout Itemize
3046 readonly (boolean): True of the VMA corresponds to ROM.
3049 \begin_layout Itemize
3050 native_endian (boolean): True if the VMA has native endian as opposed to
3054 \begin_layout Subsubsection
3055 memory.find_vma(number address)
3058 \begin_layout Standard
3059 Finds the VMA containing specified address.
3060 Returns table in the same format as read_vma or nil if not found.
3063 \begin_layout Subsubsection
3064 memory.readbyte(number address)
3067 \begin_layout Standard
3068 Reads the specified address as unsigned byte and returns the result.
3071 \begin_layout Subsubsection
3072 memory.readsbyte(number address)
3075 \begin_layout Standard
3076 Reads the specified address as signed byte and returns the result.
3079 \begin_layout Subsubsection
3080 memory.writebyte(number address, number value)
3083 \begin_layout Standard
3084 Writes the specified value (negative values undergo 2's complement) to specified
3085 address (as a byte).
3088 \begin_layout Subsubsection
3089 memory.readword(number address)
3092 \begin_layout Standard
3093 Reads the specified address as unsigned word and returns the result.
3096 \begin_layout Subsubsection
3097 memory.readsword(number address)
3100 \begin_layout Standard
3101 Reads the specified address as signed word and returns the result.
3104 \begin_layout Subsubsection
3105 memory.writeword(number address, number value)
3108 \begin_layout Standard
3109 Writes the specified value (negative values undergo 2's complement) to specified
3110 address (as a word).
3113 \begin_layout Subsubsection
3114 memory.readdword(number address)
3117 \begin_layout Standard
3118 Reads the specified address as unsigned doubleword and returns the result.
3121 \begin_layout Subsubsection
3122 memory.readsdword(number address)
3125 \begin_layout Standard
3126 Reads the specified address as signed doubleword and returns the result.
3129 \begin_layout Subsubsection
3130 memory.writedword(number address, number value)
3133 \begin_layout Standard
3134 Writes the specified value (negative values undergo 2's complement) to specified
3135 address (as a doubleword).
3138 \begin_layout Subsubsection
3139 memory.readqword(number address)
3142 \begin_layout Standard
3143 Reads the specified address as unsigned quadword and returns the result.
3146 \begin_layout Subsubsection
3147 memory.readsqword(number address)
3150 \begin_layout Standard
3151 Reads the specified address as signed quadword and returns the result.
3154 \begin_layout Subsubsection
3155 memory.writeqword(number address, number value)
3158 \begin_layout Standard
3159 Writes the specified value (negative values undergo 2's complement) to specified
3160 address (as a quadword).
3163 \begin_layout Subsection
3167 \begin_layout Standard
3168 Contains copy of global variables from time of Lua initialization.
3172 \begin_layout Subsection
3176 \begin_layout Standard
3177 Various callbacks to Lua that can occur.
3180 \begin_layout Subsubsection
3181 Callback: on_paint()
3184 \begin_layout Standard
3185 Called when screen is being painted.
3186 Any gui.* calls requiring graphic context draw on the screen.
3189 \begin_layout Subsubsection
3190 Callback: on_video()
3193 \begin_layout Standard
3194 Called when video dump frame is being painted.
3195 Any gui.* calls requiring graphic context draw on the video.
3198 \begin_layout Subsubsection
3199 Callback: on_frame()
3202 \begin_layout Standard
3203 Called on each starting whole frame.
3206 \begin_layout Subsubsection
3207 Callback: on_startup()
3210 \begin_layout Standard
3211 Called when the emulator is starting (lsnes.rc and --run files has been run).
3214 \begin_layout Subsubsection
3215 Callback: on_pre_load(string name)
3218 \begin_layout Standard
3219 Called just before savestate/movie load occurs (note: loads are always delayed,
3220 so this occurs even when load was initiated by lua).
3223 \begin_layout Subsubsection
3224 Callback: on_err_load(string name)
3227 \begin_layout Standard
3228 Called if loadstate goes wrong.
3231 \begin_layout Subsubsection
3232 Callback: on_post_load(string name, boolean was_savestate)
3235 \begin_layout Standard
3236 Called on successful loadstate.
3237 was_savestate gives if this was a savestate or a movie.
3240 \begin_layout Subsubsection
3241 Callback: on_pre_save(string name, boolean is_savestate)
3244 \begin_layout Standard
3245 Called just before savestate save occurs (note: movie saves are synchronous
3246 and won't trigger these callbacks if called from Lua).
3249 \begin_layout Subsubsection
3250 Callback: on_err_save(string name)
3253 \begin_layout Standard
3254 Called if savestate goes wrong.
3257 \begin_layout Subsubsection
3258 Callback: on_post_save(string name, boolean is_savestate)
3261 \begin_layout Standard
3262 Called on successful savaestate.
3263 is_savestate gives if this was a savestate or a movie.
3266 \begin_layout Subsubsection
3270 \begin_layout Standard
3271 Called when emulator is shutting down.
3274 \begin_layout Subsubsection
3275 Callback: on_input(boolean subframe)
3278 \begin_layout Standard
3279 Called when emulator is just sending input to bsnes core.
3280 Warning: This is called even in readonly mode, but the results are ignored.
3283 \begin_layout Subsubsection
3284 Callback: on_reset()
3287 \begin_layout Standard
3288 Called when SNES is reset.
3291 \begin_layout Subsubsection
3292 Callback: on_readwrite()
3295 \begin_layout Standard
3296 Called when moving into readwrite mode as result of
3297 \begin_inset Quotes eld
3301 \begin_inset Quotes erd
3304 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3308 \begin_layout Subsubsection
3309 Callback: on_snoop(number port, number controller, number index, number
3313 \begin_layout Standard
3314 Called each time bsnes asks for input.
3315 The value is the final value to be sent to bsnes core (readonly mode, autohold
3316 and autofire have been taken into account).
3317 Might be useful when translating movies to format suitable for console
3319 Note: There is no way to modify the value to be sent.
3322 \begin_layout Subsubsection
3323 Callback: on_keyhook(string keyname, table state)
3326 \begin_layout Standard
3327 Sent when key that has keyhook events requested changes state.
3328 Keyname is name of the key (group) and state is the state (same kind as
3329 table values in input.raw).
3332 \begin_layout Section
3333 Memory watch expression syntax
3336 \begin_layout Standard
3337 Memory watch expressions are in RPN (Reverse Polish Notation).
3338 At the end of expression, the top entry on stack is taken as the final
3342 \begin_layout Standard
3346 \begin_layout Itemize
3347 Evaluation order is strictly left to right.
3350 \begin_layout Itemize
3351 a is the entry on top of stack
3354 \begin_layout Itemize
3355 b is the entry immediately below top of stack
3358 \begin_layout Itemize
3359 ; separates values to be pushed (no intermediate pop).
3362 \begin_layout Itemize
3363 After end of element, all used stack slots are popped and all results are
3367 \begin_layout Itemize
3368 When pushing multiple values, the pushes occur in order shown.
3371 \begin_layout Standard
3372 The following operators are available:
3375 \begin_layout Itemize
3379 \begin_layout Itemize
3383 \begin_layout Itemize
3387 \begin_layout Itemize
3391 \begin_layout Itemize
3395 \begin_layout Itemize
3399 \begin_layout Itemize
3400 b : read_signed_byte(a)
3403 \begin_layout Itemize
3407 \begin_layout Itemize
3408 d : read_signed_dword(a)
3411 \begin_layout Itemize
3415 \begin_layout Itemize
3417 \begin_inset Formula $\pi$
3423 \begin_layout Itemize
3424 q : read_signed_qword(a)
3427 \begin_layout Itemize
3431 \begin_layout Itemize
3435 \begin_layout Itemize
3439 \begin_layout Itemize
3443 \begin_layout Itemize
3444 w : read_signed_word(a)
3447 \begin_layout Itemize
3451 \begin_layout Itemize
3452 B : read_unsigned_byte(a)
3455 \begin_layout Itemize
3456 C<number>z : Push number <number> to stack.
3459 \begin_layout Itemize
3460 D : read_unsigned_dword(a)
3463 \begin_layout Itemize
3464 C0x<number>z : Push number <number> (hexadecimal) to stack.
3467 \begin_layout Itemize
3468 Q : read_unsigned_qword(a)
3471 \begin_layout Itemize
3472 R<digit> : round a to <digit> digits.
3475 \begin_layout Itemize
3476 W : read_unsigned_word(a)
3479 \begin_layout Subsection
3483 \begin_layout Standard
3484 C0x007e0878zWC0x007e002czW-
3487 \begin_layout Enumerate
3488 Push value 0x7e0878 on top of stack (C0x007e0878z).
3491 \begin_layout Enumerate
3492 Pop the value on top of stack (0x7e0878), read word value at that address
3493 and push the result,call it x1 (W).
3496 \begin_layout Enumerate
3497 Push value 0x7e002c on top of stack (C0x007e002cz).
3500 \begin_layout Enumerate
3501 Pop the value on top of stack (0x7e002c), read word value at that address
3502 and push the result,call it x2 (W).
3505 \begin_layout Enumerate
3506 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3510 \begin_layout Enumerate
3511 Since the expression ends, the final memory watch result is the top one
3512 on stack, which is x2 - x1.
3515 \begin_layout Section
3516 Modifier and key names:
3519 \begin_layout Subsection
3523 \begin_layout Subsubsection
3527 \begin_layout Standard
3528 Following modifier names are known:
3531 \begin_layout Itemize
3532 ctrl, lctrl, rctrl: Control keys
3535 \begin_layout Itemize
3536 alt, lalt, ralt: ALT keys.
3539 \begin_layout Itemize
3540 shift, lshift, rshift: Shift keys.
3543 \begin_layout Itemize
3544 meta, lmeta, rmeta: Meta keys.
3547 \begin_layout Itemize
3548 num, caps: Numlock/Capslock (these are sticky!)
3551 \begin_layout Itemize
3555 \begin_layout Subsubsection
3559 \begin_layout Standard
3560 Following key names are known:
3563 \begin_layout Itemize
3564 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
3565 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
3566 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
3567 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
3568 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
3569 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
3570 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
3571 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
3572 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
3573 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
3574 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
3575 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
3576 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
3577 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
3578 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
3579 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
3580 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
3581 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
3582 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
3583 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
3584 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
3585 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
3586 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
3587 break, menu, power, euro, undo
3590 \begin_layout Itemize
3591 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
3592 hardware-dependent scan code of <n> (useful to bind those keys that don't
3593 have symbolic names).
3596 \begin_layout Subsubsection
3597 Joystick pseudo-keys:
3600 \begin_layout Itemize
3601 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
3604 \begin_layout Itemize
3605 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
3608 \begin_layout Itemize
3609 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
3612 \begin_layout Itemize
3613 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
3616 \begin_layout Itemize
3617 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
3620 \begin_layout Itemize
3621 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
3622 position (axis modes axis and axis_inverse).
3625 \begin_layout Itemize
3626 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
3627 position (axis modes axis and axis_inverse).
3630 \begin_layout Itemize
3631 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
3635 \begin_layout Subsubsection
3639 \begin_layout Itemize
3640 Escape: Enter/Exit Command mode, cancel modal dialogs.
3643 \begin_layout Itemize
3644 Return (also KPEnter): Execute command, ok modal dialog.
3647 \begin_layout Itemize
3648 Pgup/Up (also KP8/9 if no num lock; command mode): Previous command in command
3652 \begin_layout Itemize
3653 Pgdn/Down(also KP2/3 if no num lock; command mode): Next command in command
3657 \begin_layout Itemize
3658 Home (also KP7 if no num lock; command mode): Beginning of command.
3661 \begin_layout Itemize
3662 End (also KP1 if no num lock; command mode): End of command.
3665 \begin_layout Itemize
3666 Left (also KP4 if no num lock; command mode): Move cursor left.
3669 \begin_layout Itemize
3670 Right (also KP6 if no num lock; command mode): Move cursor right.
3673 \begin_layout Itemize
3675 if no num lock; command mode): Delete character to right of cursor.
3678 \begin_layout Itemize
3679 Insert (also KP0 if no num lock; command mode): Toggle between insert /
3683 \begin_layout Itemize
3684 Backspace (command mode): Delete character to left of cursor.
3687 \begin_layout Itemize
3688 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
3691 \begin_layout Subsection
3695 \begin_layout Subsubsection
3699 \begin_layout Standard
3700 Following modifier names are known:
3703 \begin_layout Itemize
3707 \begin_layout Itemize
3711 \begin_layout Itemize
3715 \begin_layout Itemize
3719 \begin_layout Itemize
3723 \begin_layout Subsubsection
3727 \begin_layout Standard
3728 Following key names are known:
3731 \begin_layout Itemize
3732 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
3733 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
3734 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
3735 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3736 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
3737 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3738 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
3739 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
3740 pause, capital, end, home, lefT, up, right, down, select, print, execute,
3741 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
3742 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
3743 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
3744 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
3745 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
3746 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
3747 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
3748 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
3749 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
3750 windows_right, windows_menu, command, special1, special2, special3, special4,
3751 special5, special6, special7, special8, special9, special10, special11,
3752 special12, special13, special14, special15, special16, special17, special18,
3753 special19, special20
3756 \begin_layout Section
3760 \begin_layout Standard
3761 Movie file is .zip archive in itself, normal ZIP archive tools work on it
3762 (note: If you recompress it, do not use compression methods other than
3763 store and deflate and especially do not use encryption of any kind).
3766 \begin_layout Subsection
3767 Detecting clean start/SRAM/Savestate
3770 \begin_layout Itemize
3772 \begin_inset Quotes eld
3776 \begin_inset Quotes erd
3779 it is savestate, otherwise:
3782 \begin_layout Itemize
3783 If file has members with names starting
3784 \begin_inset Quotes eld
3788 \begin_inset Quotes erd
3791 it is movie starting from SRAM, otherwise:
3794 \begin_layout Itemize
3795 It is movie starting from clear state.
3798 \begin_layout Subsection
3802 \begin_layout Standard
3803 Type of game ROM and region (as one line).
3807 \begin_layout Standard
3808 \begin_inset Tabular
3809 <lyxtabular version="3" rows="8" columns="3">
3810 <features tabularvalignment="middle">
3811 <column alignment="center" valignment="top" width="0">
3812 <column alignment="center" valignment="top" width="0">
3813 <column alignment="center" valignment="top" width="0">
3815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3818 \begin_layout Plain Layout
3824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3827 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3856 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3865 \begin_layout Plain Layout
3873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3876 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3914 \begin_layout Plain Layout
3920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3923 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3934 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3943 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3952 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3963 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3992 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4001 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4021 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4030 \begin_layout Plain Layout
4036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4039 \begin_layout Plain Layout
4053 \begin_layout Standard
4057 \begin_layout Standard
4058 \begin_inset Tabular
4059 <lyxtabular version="3" rows="3" columns="2">
4060 <features tabularvalignment="middle">
4061 <column alignment="center" valignment="top" width="0">
4062 <column alignment="center" valignment="top" width="0">
4064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4067 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4076 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4087 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4130 \begin_layout Subsection
4134 \begin_layout Standard
4135 Contains type of port #1 (as one line).
4136 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
4137 If not present, defaults to 'gamepad'.
4140 \begin_layout Subsection
4144 \begin_layout Standard
4145 Contains type of port #2 (as one line).
4146 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
4147 'justifier' and 'justifiers'.
4148 If not present, defaults to 'none'.
4151 \begin_layout Subsection
4155 \begin_layout Standard
4156 Contains name of the game (as one line).
4159 \begin_layout Subsection
4163 \begin_layout Standard
4164 Contains authors, one per line.
4165 Part before '|' is the full name, part after is the nickname.
4168 \begin_layout Subsection
4172 \begin_layout Standard
4174 \begin_inset Quotes eld
4178 \begin_inset Quotes erd
4182 Used to reject other saves.
4185 \begin_layout Subsection
4186 Member: controlsversion
4189 \begin_layout Standard
4191 \begin_inset Quotes eld
4195 \begin_inset Quotes erd
4199 Used to identify what controls are there.
4202 \begin_layout Subsection
4204 \begin_inset Quotes eld
4208 \begin_inset Quotes erd
4214 \begin_layout Standard
4215 Contains bsnes core version number (as one line).
4218 \begin_layout Subsection
4222 \begin_layout Standard
4223 Contains project ID (as one line).
4224 Used to identify if two movies are part of the same project.
4227 \begin_layout Subsection
4228 Member: {rom,slota,slotb}{,xml}.sha256
4231 \begin_layout Standard
4232 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4233 Absent if corresponding file is absent.
4236 \begin_layout Subsection
4237 Member: moviesram.<name>
4240 \begin_layout Standard
4241 Raw binary startup SRAM of kind <name>.
4242 Only present in savestates and movies starting from SRAM.
4245 \begin_layout Subsection
4249 \begin_layout Standard
4250 Contains frame number (as one line) of frame movie was saved on.
4251 Only present in savestates.
4254 \begin_layout Subsection
4258 \begin_layout Standard
4259 Current value of lag counter (as one line).
4260 Only present in savestates.
4263 \begin_layout Subsection
4264 Member: pollcounters
4267 \begin_layout Standard
4268 Contains poll counters (currently 100 of them), one per line.
4269 Each line is raw poll count if DRDY is set for it.
4270 Otherwise it is negative poll count minus one.
4271 Only present in savestates.
4274 \begin_layout Subsection
4278 \begin_layout Standard
4279 Raw binary dump of host memory.
4280 Only present in savestates.
4283 \begin_layout Subsection
4287 \begin_layout Standard
4288 The raw binary savestate itself.
4289 Savestate detection uses this file, only present in savestates.
4292 \begin_layout Subsection
4296 \begin_layout Standard
4297 Screenshot of current frame.
4298 Only present in savestates.
4299 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4301 Height of image is inferred from the width and size of data.
4304 \begin_layout Subsection
4308 \begin_layout Standard
4309 Raw binary SRAM of kind <name> at time of savestate.
4310 Only present in savestates.
4313 \begin_layout Subsection
4317 \begin_layout Standard
4318 The actual input track, one line per subframe (blank lines are skipped).
4321 \begin_layout Itemize
4322 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4323 part of same frame as previous, otherwise it starts a new frame.
4326 \begin_layout Itemize
4327 First subframe must start a new frame.
4330 \begin_layout Standard
4331 Length of movie in frames is number of lines in input file that start a
4335 \begin_layout Subsection
4339 \begin_layout Standard
4340 Contains textual base-10 rerecord count (as one line; emulator just writes
4341 this, it doesn't read it) + 1.
4344 \begin_layout Subsection
4348 \begin_layout Standard
4349 This member stores set of load IDs.
4350 There is one load ID per rerecord (plus one corresponding to start of project).
4353 \begin_layout Itemize
4354 This member constists of concatenation of records
4357 \begin_layout Itemize
4358 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4362 \begin_layout Itemize
4363 IDs are interpretted as 256-bit big-endian integers with warparound.
4366 \begin_layout Itemize
4367 Initial predicted ID is all zeroes.
4370 \begin_layout Standard
4371 Format of each record is:
4374 \begin_layout Itemize
4375 1 byte: Opcode byte.
4376 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4380 \begin_layout Itemize
4381 32-prefixlen bytes of ID.
4384 \begin_layout Itemize
4385 countlen bytes of big-endian count (count).
4388 \begin_layout Standard
4389 Records are processed as follows:
4392 \begin_layout Itemize
4393 To form the first ID encoded by record, take the first prefixlen bytes predicted
4394 ID and append the read ID value to it.
4395 The result is the first ID encoded.
4398 \begin_layout Itemize
4399 If countlen is 0, record encodes 1 ID.
4402 \begin_layout Itemize
4403 If countlen is 1, record encodes 2+count IDs.
4406 \begin_layout Itemize
4407 If countlen is 2, record encodes 258+count IDs.
4410 \begin_layout Itemize
4411 If countlen is 3, record encodes 65794+count IDs.
4414 \begin_layout Itemize
4415 The new predicted ID is the next ID after last one encoded by the record.
4418 \begin_layout Standard
4419 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4423 \begin_layout Subsection
4424 Member: starttime.second
4427 \begin_layout Standard
4428 Movie starting time, second part.
4429 Epoch is Unix epoch.
4430 Default is 1,000,000,000.
4433 \begin_layout Subsection
4434 Member: starttime.subsecond
4437 \begin_layout Standard
4438 Movie starting time, subsecond part.
4443 \begin_layout Subsection
4444 Member: savetime.second
4447 \begin_layout Standard
4448 Movie saving time, second part.
4449 Default is starttime.second.
4450 Only present in savestates.
4453 \begin_layout Subsection
4454 Member: savetime.subsecond
4457 \begin_layout Standard
4458 Movie saving time, subsecond part.
4459 Default is starttime.subsecond.
4460 Only present in savestates.
4463 \begin_layout Section
4464 Quick'n'dirty encode guide
4467 \begin_layout Enumerate
4468 Start the emulator and load the movie file.
4471 \begin_layout Enumerate
4472 Set large AVI option 'set-setting avi-large on'
4475 \begin_layout Enumerate
4476 Enable dumping 'dump-avi tmpdump'
4479 \begin_layout Enumerate
4480 Unpause and let it run until you want to end dumping.
4483 \begin_layout Enumerate
4484 Close the emulator (closing the window is the easiest way).
4488 \begin_layout Enumerate
4489 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
4490 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
4493 \begin_layout Enumerate
4494 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
4497 \begin_layout Enumerate
4498 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
4499 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
4502 \begin_layout Enumerate
4503 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
4504 Now final.mkv contains quick'n'dirty encode.
4507 \begin_layout Section
4508 Axis configurations for some gamepad types:
4511 \begin_layout Subsection
4515 \begin_layout Standard
4516 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
4519 \begin_layout LyX-Code
4520 set-axis joystick0axis2 pressure-+
4523 \begin_layout LyX-Code
4524 set-axis joystick0axis5 pressure-+
4527 \begin_layout Itemize
4528 This is needed for SDL only.
4529 EVDEV sets those types correctly.
4532 \begin_layout Subsection
4534 \begin_inset Quotes eld
4538 \begin_inset Quotes erd
4544 \begin_layout Standard
4545 Axes 8-19 should be disabled.
4548 \begin_layout LyX-Code
4549 set-axis joystick0axis8 disabled
4552 \begin_layout LyX-Code
4553 set-axis joystick0axis9 disabled
4556 \begin_layout LyX-Code
4557 set-axis joystick0axis10 disabled
4560 \begin_layout LyX-Code
4561 set-axis joystick0axis11 disabled
4564 \begin_layout LyX-Code
4565 set-axis joystick0axis12 disabled
4568 \begin_layout LyX-Code
4569 set-axis joystick0axis13 disabled
4572 \begin_layout LyX-Code
4573 set-axis joystick0axis14 disabled
4576 \begin_layout LyX-Code
4577 set-axis joystick0axis15 disabled
4580 \begin_layout LyX-Code
4581 set-axis joystick0axis16 disabled
4584 \begin_layout LyX-Code
4585 set-axis joystick0axis17 disabled
4588 \begin_layout LyX-Code
4589 set-axis joystick0axis18 disabled
4592 \begin_layout LyX-Code
4593 set-axis joystick0axis19 disabled
4596 \begin_layout Section
4600 \begin_layout Subsection
4601 Problems from BSNES core:
4604 \begin_layout Itemize
4605 The whole pending save stuff.
4608 \begin_layout Itemize
4609 Lack of layer hiding.
4612 \begin_layout Itemize
4613 It is slow (especially accuracy).
4616 \begin_layout Itemize
4617 Firmwares can't be loaded from ZIP archives.
4620 \begin_layout Subsection
4624 \begin_layout Itemize
4625 Modifiers don't work with pseudo-keys (SDL, EVDEV).
4628 \begin_layout Itemize
4629 Audio for last dumped frame is not itself dumped.
4632 \begin_layout Itemize
4633 Audio in UI is pretty bad in quality if game doesn't run at full speed.
4636 \begin_layout Itemize
4637 AVI compression levels 10-18 are not compatible with AVISynth AVISource.
4640 \begin_layout Itemize
4641 No menus, command based interface (SDL).
4644 \begin_layout Itemize
4645 Long commands don't scroll.
4648 \begin_layout Itemize
4649 Wxwidgets UI is still buggy.
4652 \begin_layout Section
4656 \begin_layout Subsection
4660 \begin_layout Itemize
4664 \begin_layout Itemize
4665 Fix dumper video corruption with levels 10-18.
4668 \begin_layout Subsection
4672 \begin_layout Itemize
4676 \begin_layout Itemize
4677 Lots of code cleanups
4680 \begin_layout Itemize
4681 Lua interface to settings
4684 \begin_layout Itemize
4685 Allow specifying AVI borders without Lua
4688 \begin_layout Itemize
4689 Fix scaling if vscale > 1 and originx > 0 (left border exists)
4692 \begin_layout Itemize
4693 on_snoop lua callback
4696 \begin_layout Itemize
4697 Faster movie loading and saving.
4700 \begin_layout Subsection
4704 \begin_layout Itemize
4708 \begin_layout Subsection
4712 \begin_layout Itemize
4716 \begin_layout Itemize
4717 Save jukebox functionality.
4720 \begin_layout Subsection
4724 \begin_layout Itemize
4725 Try to fix some nasty failing movie load edge cases
4728 \begin_layout Itemize
4729 Allow specifying scripts to run on command line.
4732 \begin_layout Subsection
4736 \begin_layout Itemize
4737 Major source code reorganization.
4740 \begin_layout Itemize
4741 Backup savestates before overwriting.
4744 \begin_layout Itemize
4745 Don't crash if loading initial state fails.
4748 \begin_layout Subsection
4752 \begin_layout Itemize
4756 \begin_layout Itemize
4757 Fix author name parsing
4760 \begin_layout Itemize
4761 Fix rerecord counting
4764 \begin_layout Itemize
4765 (SDL) Print messages to console if SDL is uninitialized
4768 \begin_layout Itemize
4769 Add movieinfo program
4772 \begin_layout Itemize
4773 Fix loading movies starting from SRAM.
4776 \begin_layout Subsection
4780 \begin_layout Itemize
4781 Add support for unattended dumping
4784 \begin_layout Itemize
4785 Fix compiling for Win32
4788 \begin_layout Itemize
4789 Don't lock up if sound can't be initialized
4792 \begin_layout Itemize
4793 Strip trailing CR from commands
4796 \begin_layout Itemize
4797 Don't try to do dubious things in global ctors (fix crash on startup)
4800 \begin_layout Subsection
4804 \begin_layout Itemize
4805 Small documentation tweaking
4808 \begin_layout Itemize
4812 \begin_layout Itemize
4813 Fix major bug in modifier matching
4816 \begin_layout Subsection
4820 \begin_layout Itemize
4821 Lots of documentation fixes
4824 \begin_layout Itemize
4825 Use dedicated callbacks for event backcomm., not commands.
4828 \begin_layout Itemize
4829 Ensure that the watchdog is not hit when executing delayed reset.
4832 \begin_layout Itemize
4833 Remove errant tab from joystick message.
4836 \begin_layout Subsection
4840 \begin_layout Itemize
4841 Make autofire operate in absolute time, not linear time
4844 \begin_layout Itemize
4845 Reinitialize controls when resuming from loadstate
4848 \begin_layout Itemize
4849 Some more code cleanups
4852 \begin_layout Itemize
4853 If Lua allocator fails, call OOM_panic()
4856 \begin_layout Itemize
4857 Byte/word/dword/qword sized host memory write/read functions.
4860 \begin_layout Itemize
4861 Dump at correct framerate if dumping interlaced NTSC (height=448).
4864 \begin_layout Subsection
4868 \begin_layout Itemize
4869 Actually include the complete source code
4872 \begin_layout Itemize
4876 \begin_layout Subsection
4880 \begin_layout Itemize
4881 Document {save,start}time.{,sub}second.
4884 \begin_layout Itemize
4885 Intercept time() from bsnes core.
4888 \begin_layout Subsection
4892 \begin_layout Itemize
4893 Allow disabling time() interception (allow build on Mac OS X)
4896 \begin_layout Itemize
4897 Use SDLMain on Mac OS X (make SDL not crash)
4900 \begin_layout Itemize
4901 Disable delayed resets (just plain too buggy for now).
4904 \begin_layout Itemize
4908 \begin_layout Itemize
4909 Use 16-bit for graphics/video instead of 32-bit.
4912 \begin_layout Itemize
4913 gui.rectangle/gui.pixel
4916 \begin_layout Itemize
4920 \begin_layout Itemize
4921 New CSCD writer implementation.
4924 \begin_layout Subsection
4928 \begin_layout Itemize
4929 Fix interaction of * and +.
4932 \begin_layout Itemize
4936 \begin_layout Itemize
4937 Use gettimeofday()/usleep(), these seem portable enough.
4940 \begin_layout Itemize
4941 Move joystick axis manipulation to keymapper code.
4944 \begin_layout Itemize
4945 Changes to how read-only works.
4948 \begin_layout Itemize
4949 Refactor controller input code.
4952 \begin_layout Subsection
4956 \begin_layout Itemize
4957 Fix mouseclick scale compensation.
4960 \begin_layout Itemize
4961 Draw area boundaries correctly in SDL code.
4964 \begin_layout Itemize
4968 \begin_layout Itemize
4969 Fix CSCD output (buffer overrun and race condition).
4972 \begin_layout Subsection
4976 \begin_layout Itemize
4977 JMD dumping support.
4980 \begin_layout Itemize
4981 Allow unattended dumping to JMD.
4984 \begin_layout Itemize
4988 \begin_layout Itemize
4989 Switch back to 32-bit colors.
4992 \begin_layout Itemize
4993 Add Lua function gui.color.
4996 \begin_layout Itemize
4997 Use some new C++11 features in GCC 4.6.
5000 \begin_layout Itemize
5001 Be prepared for core frequency changes.
5004 \begin_layout Itemize
5005 Pass colors in one chunk from Lua.
5008 \begin_layout Subsection
5012 \begin_layout Itemize
5013 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
5014 memory.read_vma() and memory.find_vma().
5017 \begin_layout Itemize
5018 Numerious documentation fixups
5021 \begin_layout Itemize
5022 RTC time format changed
5025 \begin_layout Itemize
5026 Reformat flags display
5029 \begin_layout Itemize
5030 Allow lua package name to be overridden
5033 \begin_layout Itemize
5034 SDUMP (high-quality dumping).
5037 \begin_layout Itemize
5038 Split platform support to plugins.
5041 \begin_layout Itemize
5042 Make all sound plugins support basic sound commands
5045 \begin_layout Itemize
5046 Support portaudio for sound.
5049 \begin_layout Itemize
5050 Allow disable Lua/SDL searching.
5053 \begin_layout Itemize
5054 Upconvert colors when copying lcscreen to screen.
5057 \begin_layout Itemize
5058 Reorganize source tree.
5061 \begin_layout Itemize
5062 Evdev joystick support.
5065 \begin_layout Itemize
5066 Refactor more code into generic window code.
5069 \begin_layout Subsection
5073 \begin_layout Itemize
5074 Refactor message handling.
5077 \begin_layout Itemize
5081 \begin_layout Itemize
5085 \begin_layout Itemize
5086 Finish pending saves before load/quit.
5089 \begin_layout Itemize
5090 Wxwidgets graphics plugin.
5093 \begin_layout Subsection
5097 \begin_layout Itemize
5098 Get rid of win32-crap.[ch]pp.
5101 \begin_layout Itemize
5102 Move files around a lot.
5105 \begin_layout Itemize
5106 Get rid of need for host C++ compiler.
5109 \begin_layout Itemize
5113 \begin_layout Itemize
5114 Refactor inter-component communication.
5117 \begin_layout Itemize
5121 \begin_layout Itemize
5122 Fix crash on multiline aliases.
5125 \begin_layout Itemize
5126 Load/Save settings in wxwidgets gui.
5129 \begin_layout Subsection
5133 \begin_layout Itemize
5134 Patch problems in bsnes core
5137 \begin_layout Itemize
5138 SNES is little-endian, not big-endian!
5141 \begin_layout Itemize
5142 Fix memory corruption in lcscreen::load()
5145 \begin_layout Subsection
5149 \begin_layout Itemize
5150 Fix interpretting repeat counts in rrdata loading.
5153 \begin_layout Itemize
5154 New lua callback: on_frame()
5157 \begin_layout Itemize
5158 Remove calls to runtosave() that aren't supposed to be there
5161 \begin_layout Itemize
5162 Lua function: movie.read_rtc()
5165 \begin_layout Itemize
5166 Ignore src/fonts/font.cpp
5169 \begin_layout Itemize
5170 Fix more bsnes core problems
5173 \begin_layout Itemize
5174 Control bsnes random seeding
5177 \begin_layout Itemize
5181 \begin_layout Itemize
5182 Some bsnes core debugging features (state dump and state hash)
5185 \begin_layout Itemize
5186 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
5187 it was 'lsnes rr0-beta21').
5190 \begin_layout Subsection
5194 \begin_layout Itemize
5195 Fix memory corruption due to macro/field mixup
5198 \begin_layout Itemize
5199 search-memory update
5202 \begin_layout Itemize
5203 Allow direct-mapped framebuffer
5206 \begin_layout Itemize
5207 SDL: Use SDL_ANYFORMAT if possible
5210 \begin_layout Itemize
5211 SDMP2SOX: 2s delay modes.
5214 \begin_layout Itemize
5218 \begin_layout Itemize
5219 Use sed -E, not sed -r.
5220 Fixes building on Mac OS X.
5223 \begin_layout Itemize
5224 Wxwidgets: Save jukebox on exit
5227 \begin_layout Itemize
5228 Fix RTC if using load-movie on savestate.
5231 \begin_layout Itemize
5232 Fix crash related to full console mode.
5235 \begin_layout Subsection
5239 \begin_layout Itemize
5240 Wxwidgets: Allow bringing application to foreground on Mac OS X.
5243 \begin_layout Itemize
5244 Wxwidgets: Allow compiling on Mac OS X.
5247 \begin_layout Itemize
5248 Use movie compare instead of movie hashing (faster save/load).
5251 \begin_layout Itemize
5255 \begin_layout Subsection
5259 \begin_layout Itemize
5260 sdmp2sox: Pad soundtrack if using -l or -L.
5263 \begin_layout Itemize
5264 sdmp2sox: Fix NTSC overscan.
5267 \begin_layout Itemize
5268 sdmp2sox: Add AR correction mode.
5271 \begin_layout Itemize
5272 call lua_close() when exiting.
5275 \begin_layout Itemize
5276 Fix zip_writer bug causing warnings from info-zip and error from advzip.
5279 \begin_layout Subsection
5283 \begin_layout Itemize
5284 Fix IPS patching code (use bsnes core IPS patcher).
5287 \begin_layout Itemize
5288 Implement BPS patching (using bsnes core IPS patcher).
5291 \begin_layout Itemize
5292 Add feature to load headered ROMs.
5295 \begin_layout Subsection
5299 \begin_layout Itemize
5300 Show command names when showing keybindings
5303 \begin_layout Subsection
5307 \begin_layout Itemize
5308 Fix pause-on-end to be actually controllable
5311 \begin_layout Itemize
5312 SDL: Poll all events in queue, not just first one (fixes slowness in command
5316 \begin_layout Itemize
5317 Wxwidgets: Fix ROM loading.
5320 \begin_layout Subsection
5324 \begin_layout Itemize
5325 Lua: Add gui.textH, gui.textV, gui.textHV
5328 \begin_layout Itemize
5329 Fix text colors on SDL on Mac OS X
5332 \begin_layout Itemize
5333 Mode 'F' for finished in readonly mode.
5336 \begin_layout Itemize
5340 \begin_layout Itemize
5341 Reliably pause after skip poll
5344 \begin_layout Itemize
5345 Split UI and core into their own threads
5348 \begin_layout Subsection
5352 \begin_layout Itemize
5353 Remove leftover dummy SRAM slot
5356 \begin_layout Itemize
5357 Fix controller numbers.
5360 \begin_layout Subsection
5364 \begin_layout Itemize
5365 Fix lsnes-dumpavi after interface change.
5368 \begin_layout Itemize
5369 Also give BSNES patches for v085.
5372 \begin_layout Itemize
5373 Pack movie data in memory.
5376 \begin_layout Subsection
5380 \begin_layout Itemize
5381 Fix framecount/length given when loading movies.
5384 \begin_layout Itemize
5385 Controller command memory leak fixes.
5388 \begin_layout Itemize
5389 Don't leak palette if freeing screen object.
5392 \begin_layout Subsection
5396 \begin_layout Itemize
5400 \begin_layout Itemize
5401 Wxwidgets: Allow controlling dumper from the menu.
5404 \begin_layout Subsection
5408 \begin_layout Itemize
5409 Rewrite parts of manual
5412 \begin_layout Itemize
5413 Lua: Make it work with Lua 5.2.
5416 \begin_layout Subsection
5420 \begin_layout Itemize
5421 Win32: Fix compile errors.
5424 \begin_layout Subsection
5428 \begin_layout Itemize
5429 Refactor controller input code.
5432 \begin_layout Itemize
5433 Fix crash when using command line on SDL / Mac OS X.
5436 \begin_layout Subsection
5440 \begin_layout Itemize
5441 Delete core/coroutine (obsolete)
5444 \begin_layout Itemize
5445 Lag input display by one frame.
5448 \begin_layout Itemize
5449 Rewind movie to beginning function.
5452 \begin_layout Itemize
5453 Fix wrong frame number reported to Lua when repainting after loadstate
5456 \begin_layout Itemize
5457 Support UI editing of jukebox
5460 \begin_layout Itemize
5461 Wxwidgets: Save settings on exit.
5464 \begin_layout Itemize
5465 Support ${project} for filenames
5468 \begin_layout Itemize
5469 SDL: Fix command history
5472 \begin_layout Subsection
5476 \begin_layout Itemize
5477 Fix some order-of-global-ctor bugs.
5480 \begin_layout Subsection
5484 \begin_layout Itemize
5485 Fix crashes when quitting on Win32.
5488 \begin_layout Subsection
5492 \begin_layout Itemize
5493 EVDEV: Queue keypresses from joystick, don't send directly
5496 \begin_layout Itemize
5497 Wxwidgets: Load-Preserve that actually works.
5500 \begin_layout Subsection
5504 \begin_layout Itemize
5505 Wxwidgets: GUI for memory search.
5508 \begin_layout Itemize
5509 Warn about using synchronous queue in UI callback.
5512 \begin_layout Subsection
5516 \begin_layout Itemize
5517 Remember last saved file for each ROM
5520 \begin_layout Itemize
5521 Support MT dumping via boost.
5524 \begin_layout Itemize
5528 \begin_layout Itemize
5532 \begin_layout Itemize
5533 Make mouse be ordinary input instead of special-casing
5536 \begin_layout Itemize
5537 SDL: Don't screw up commands with NUL codepoints.
5540 \begin_layout Subsection
5544 \begin_layout Itemize
5545 Merge status panel and main window
5548 \begin_layout Itemize
5549 True movie slot support (the rest of it)
5552 \begin_layout Itemize
5553 SDL: Fix compilation error
5556 \begin_layout Itemize
5557 Elminate cross calls in dump menu code.
5560 \begin_layout Subsection
5564 \begin_layout Itemize
5565 Cancel pending saves command
5568 \begin_layout Itemize
5569 Wxwidgets: Code refactoring
5572 \begin_layout Itemize
5573 Wxwidgets: Fix system -> reset
5576 \begin_layout Itemize
5577 Wxwidgets: Read watch expressions in the right thread
5580 \begin_layout Subsection
5584 \begin_layout Itemize
5585 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
5589 \begin_layout Itemize
5590 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
5593 \begin_layout Itemize
5594 Don't append trailing '-' to prefix when saving movie.
5597 \begin_layout Itemize
5598 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
5601 \begin_layout Subsection
5605 \begin_layout Itemize
5606 Document memory watch syntax.
5609 \begin_layout Subsection
5613 \begin_layout Itemize
5614 Fix unattended dumping (lsnes-dumpavi)
5617 \begin_layout Itemize
5621 \begin_layout Itemize
5622 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
5625 \begin_layout Itemize
5626 Add option to control sample rate preturbation in AVI dumper
5629 \begin_layout Subsection
5633 \begin_layout Itemize
5634 Wxwidgets: Fix dumper submodes
5637 \begin_layout Itemize
5638 Set core controller types before loadstate
5641 \begin_layout Subsection
5645 \begin_layout Itemize
5646 Fix compiling with bsnes v086.
5649 \begin_layout Subsection
5653 \begin_layout Itemize
5654 Don't prompt before quitting
5657 \begin_layout Itemize
5658 Start unpaused, preserve pause/unpause over load.
5661 \begin_layout Itemize
5662 Try to autodetect if ROM is headered.
5665 \begin_layout Itemize
5666 Wxwidgets: Only bring up ROM patching screen if specifically requested.
5669 \begin_layout Itemize
5670 Allow configuring some hotkeys.
5673 \begin_layout Subsection
5677 \begin_layout Itemize
5678 Lots of code cleanups
5681 \begin_layout Itemize
5682 Fix JMD compression (JMD dumping was broken)
5685 \begin_layout Itemize
5686 Don't crash if Lua C function throws an exception.
5689 \begin_layout Itemize
5690 Support bitmap drawing in Lua.
5693 \begin_layout Itemize
5694 Fix bsnes v085/v086 patches.
5697 \begin_layout Itemize
5698 Improve stability on win32.
5701 \begin_layout Subsection
5705 \begin_layout Itemize
5706 Don't corrupt movie if movie length is integer multiple of frames per page.