Fix compression settings in lsnes-dumpavi
[lsnes.git] / manual.lyx
blobff157d939cd863f9e3a04bdb473a6ff749194364
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass article
6 \use_default_options true
7 \maintain_unincluded_children false
8 \language finnish
9 \language_package default
10 \inputencoding auto
11 \fontencoding global
12 \font_roman default
13 \font_sans default
14 \font_typewriter default
15 \font_default_family default
16 \use_non_tex_fonts false
17 \font_sc false
18 \font_osf false
19 \font_sf_scale 100
20 \font_tt_scale 100
22 \graphics default
23 \default_output_format default
24 \output_sync 0
25 \bibtex_command default
26 \index_command default
27 \paperfontsize default
28 \use_hyperref false
29 \papersize default
30 \use_geometry false
31 \use_amsmath 1
32 \use_esint 1
33 \use_mhchem 1
34 \use_mathdots 1
35 \cite_engine basic
36 \use_bibtopic false
37 \use_indices false
38 \paperorientation portrait
39 \suppress_date false
40 \use_refstyle 1
41 \index Hakusana
42 \shortcut idx
43 \color #008000
44 \end_index
45 \secnumdepth 3
46 \tocdepth 3
47 \paragraph_separation indent
48 \paragraph_indentation default
49 \quotes_language english
50 \papercolumns 1
51 \papersides 1
52 \paperpagestyle default
53 \tracking_changes false
54 \output_changes false
55 \html_math_output 0
56 \html_css_as_file 0
57 \html_be_strict false
58 \end_header
60 \begin_body
62 \begin_layout Section
63 Introduction
64 \end_layout
66 \begin_layout Standard
67 lsnes is SNES rerecording emulator based on bsnes core.
68 \end_layout
70 \begin_layout Section
71 Dependencies
72 \end_layout
74 \begin_layout Enumerate
75 bsnes libsnes
76 \end_layout
78 \begin_deeper
79 \begin_layout Enumerate
80 v084 or 085
81 \end_layout
83 \begin_layout Enumerate
84 accuracy or compatiblity core.
85 \end_layout
87 \begin_layout Enumerate
88 Patched version (using included 6 patches)
89 \end_layout
91 \end_deeper
92 \begin_layout Enumerate
93 Zlib
94 \end_layout
96 \begin_layout Enumerate
97 boost_iostreams
98 \end_layout
100 \begin_layout Enumerate
101 boost_filesystem
102 \end_layout
104 \begin_layout Enumerate
105 boost_thread
106 \end_layout
108 \begin_layout Enumerate
109 libsdl (SDL only)
110 \end_layout
112 \begin_layout Enumerate
113 sdlmain (SDL only, part of SDL)
114 \end_layout
116 \begin_layout Enumerate
117 boost_conversion (this is header-only library)
118 \end_layout
120 \begin_layout Enumerate
121 libswscale (wxwidgets graphics only)
122 \end_layout
124 \begin_layout Enumerate
125 Portaudio (portaudio sound only)
126 \end_layout
128 \begin_layout Enumerate
129 std::thread and co (for threaded dumper only, not needed if std::thread
130  is available)
131 \end_layout
133 \begin_layout Enumerate
134 Lua (if Lua support is needed).
135 \end_layout
137 \begin_layout Itemize
138 Version 5.1.X or 5.2X.
139 \end_layout
141 \begin_layout Section
142 Building
143 \end_layout
145 \begin_layout Standard
146 Building is via makefile, the following options are available:
147 \end_layout
149 \begin_layout Itemize
150 CROSS_PREFIX=<prefix>
151 \end_layout
153 \begin_deeper
154 \begin_layout Itemize
155 Prefix to apply to commands when building executables / object files for
156  the target architecture.
158 \end_layout
160 \begin_layout Itemize
161 Default is blank.
162 \end_layout
164 \end_deeper
165 \begin_layout Itemize
166 CC=<name>
167 \end_layout
169 \begin_deeper
170 \begin_layout Itemize
171 Name of C++ compiler.
172 \end_layout
174 \begin_layout Itemize
175 CROSS_PREFIX is prepended if compiling for target architecture.
176 \end_layout
178 \begin_layout Itemize
179 This needs to be at least GCC 4.6.
180 \end_layout
182 \begin_layout Itemize
183 Set to 'g++-mp-4.6' if compiling on Mac OS X using GCC 4.6 from Macports.
184 \end_layout
186 \begin_layout Itemize
187 Default is 'g++'.
188 \end_layout
190 \end_deeper
191 \begin_layout Itemize
192 HOSTCC=<name>
193 \end_layout
195 \begin_deeper
196 \begin_layout Itemize
197 Name of host C++ compiler.
198 \end_layout
200 \begin_layout Itemize
201 Default is value of 'CC' option.
202 \end_layout
204 \end_deeper
205 \begin_layout Itemize
206 USER_HOSTCCFLAGS=<flags>:
207 \end_layout
209 \begin_deeper
210 \begin_layout Itemize
211 Compiler flags to pass when compiling/linking for host architecture.
212 \end_layout
214 \begin_layout Itemize
215 Default is blank.
216 \end_layout
218 \end_deeper
219 \begin_layout Itemize
220 USER_CFLAGS=<flags>
221 \end_layout
223 \begin_deeper
224 \begin_layout Itemize
225 Extra flags to pass when compiling for target architecture
226 \end_layout
228 \begin_layout Itemize
229 Default is blank.
230 \end_layout
232 \end_deeper
233 \begin_layout Itemize
234 USER_LDFLAGS=<flags>: 
235 \end_layout
237 \begin_deeper
238 \begin_layout Itemize
239 Extra flags to pass when linking for target architecture.
240 \end_layout
242 \begin_layout Itemize
243 Default is blank.
244 \end_layout
246 \end_deeper
247 \begin_layout Itemize
248 USER_PLATFORM_CFLAGS=<flags>
249 \end_layout
251 \begin_deeper
252 \begin_layout Itemize
253 Extra flags to pass when compiling files using platform-dependent code for
254  target architecture.
255 \end_layout
257 \begin_layout Itemize
258 Default is blank.
259 \end_layout
261 \end_deeper
262 \begin_layout Itemize
263 USER_PLATFORM_LDFLAGS=<flags>
264 \end_layout
266 \begin_deeper
267 \begin_layout Itemize
268 Extra flags to pass when linking files using platform-dependent code for
269  target architecture.
270 \end_layout
272 \begin_layout Itemize
273 Default is blank.
274 \end_layout
276 \end_deeper
277 \begin_layout Itemize
278 FONT_SRC=<file>
279 \end_layout
281 \begin_deeper
282 \begin_layout Itemize
283 Set the font file to use.
284 \end_layout
286 \begin_layout Itemize
287 Currently the valid values are:
288 \end_layout
290 \begin_deeper
291 \begin_layout Itemize
292 cp437.hex: Standard VGA font (256 characters).
293 \end_layout
295 \begin_layout Itemize
296 unifontfull-5.1.20080820.hex: GNU unifont (covers most of Unicode BMP)
297 \end_layout
299 \end_deeper
300 \begin_layout Itemize
301 Default is 'unifontfull-5.1.20080820.hex'
302 \end_layout
304 \end_deeper
305 \begin_layout Itemize
306 LUA=<package>
307 \end_layout
309 \begin_deeper
310 \begin_layout Itemize
311 Package to use for Lua support.
312 \end_layout
314 \begin_layout Itemize
315 Usually valid value is 'lua' or 'lua5.1'.
316 \end_layout
318 \begin_layout Itemize
319 Default is not to build Lua support.
320 \end_layout
322 \end_deeper
323 \begin_layout Itemize
324 THREADS=<value>
325 \end_layout
327 \begin_deeper
328 \begin_layout Itemize
329 Override platform default for dumper threading support.
330 \end_layout
332 \begin_layout Itemize
333 Threading is default on Linux.
334 \end_layout
336 \begin_layout Itemize
337 'YES' tries to use threading (std::thread).
338 \end_layout
340 \begin_layout Itemize
341 'BOOST' tries to use threading (boost::thread).
342 \end_layout
344 \begin_layout Itemize
345 'NO' disables threading.
346 \end_layout
348 \begin_layout Itemize
349 Note: This has absolutely nothing to do with platform threading.
350 \end_layout
352 \end_deeper
353 \begin_layout Itemize
354 BSNES_IS_COMPAT=<anything>
355 \end_layout
357 \begin_deeper
358 \begin_layout Itemize
359 Signals that BSNES core used is compatiblity core, not accuracy core.
360 \end_layout
362 \begin_layout Itemize
363 Default is to assume accuracy core.
364 \end_layout
366 \end_deeper
367 \begin_layout Itemize
368 JOYSTICK=<implementation>
369 \end_layout
371 \begin_deeper
372 \begin_layout Itemize
373 Set joystick implementation.
374  Valid values are:
375 \end_layout
377 \begin_deeper
378 \begin_layout Itemize
379 SDL: Use SDL for joystick (requires SDL graphics)
380 \end_layout
382 \begin_layout Itemize
383 EVDEV: Use EVDEV for joystick (Linux only).
384 \end_layout
386 \begin_layout Itemize
387 DUMMY: Disable joystick support.
388 \end_layout
390 \end_deeper
391 \begin_layout Itemize
392 Default is SDL.
393 \end_layout
395 \end_deeper
396 \begin_layout Itemize
397 SOUND=<implementation>
398 \end_layout
400 \begin_deeper
401 \begin_layout Itemize
402 Set sound implementation.
403  Valid values are:
404 \end_layout
406 \begin_deeper
407 \begin_layout Itemize
408 SDL: Use SDL for sound (requires SDL graphics)
409 \end_layout
411 \begin_layout Itemize
412 PORTAUDIO: Use Portaudio for sound.
413 \end_layout
415 \begin_layout Itemize
416 DUMMY: Disable sound support
417 \end_layout
419 \end_deeper
420 \begin_layout Itemize
421 Default is SDL.
422 \end_layout
424 \end_deeper
425 \begin_layout Itemize
426 GRAPHICS=<implementation>
427 \end_layout
429 \begin_deeper
430 \begin_layout Itemize
431 Set windowing library to use.
432  Valid values are:
433 \end_layout
435 \begin_deeper
436 \begin_layout Itemize
437 SDL: Use SDL for graphics
438 \end_layout
440 \begin_layout Itemize
441 WXWIDGETS: Use wxWidgets for graphics.
442 \end_layout
444 \end_deeper
445 \begin_layout Itemize
446 Default is SDL.
447 \end_layout
449 \end_deeper
450 \begin_layout Section
451 Command line options
452 \end_layout
454 \begin_layout Subsection
455 ROM options
456 \end_layout
458 \begin_layout Standard
459 <kind> in the following can be one of:
460 \end_layout
462 \begin_layout Itemize
463 rom: Cartridge ROM (BIOS for special carts).
464  This is required.
465 \end_layout
467 \begin_layout Itemize
468 bsx: BS-X (non-slotted) Game flash ROM.
469 \end_layout
471 \begin_layout Itemize
472 bsxslotted: BS-X (slotted) Game flash ROM.
473 \end_layout
475 \begin_layout Itemize
476 dmg: DMG game ROM
477 \end_layout
479 \begin_layout Itemize
480 slot-a: Sufami Turbo Slot A ROM
481 \end_layout
483 \begin_layout Itemize
484 slot-b: Sufami Turbo Slot B ROM
485 \end_layout
487 \begin_layout Subsubsection
488 --<kind>=<file> (lsnes/SDL, lsnes-avidump)
489 \end_layout
491 \begin_layout Standard
492 Load <file> as specified ROM (SFC/BS/DMG/ST file format).
493 \end_layout
495 \begin_layout Subsubsection
496 --headered-<kind>=<file> (lsnes/SDL, lsnes-avidump)
497 \end_layout
499 \begin_layout Standard
500 Load <file> as specified ROM, stripping first 512 bytes.
501  Handy for loading SMC / FIG and such files.
502 \end_layout
504 \begin_layout Subsubsection
505 --<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
506 \end_layout
508 \begin_layout Standard
509 Override hardware detection for ROM, reading the values from <file> (BSNES
510  XML format).
511 \end_layout
513 \begin_layout Subsubsection
514 --ips-<kind>=<file> (lsnes/SDL, lsnes-avidump)
515 \end_layout
517 \begin_layout Standard
518 Apply BPS/IPS patch <file> to ROM <kind>.
519  If specified multiple times, the patches are applied in order.
520 \end_layout
522 \begin_layout Subsubsection
523 --ips-<kind>-xml=<file> (lsnes/SDL, lsnes-avidump)
524 \end_layout
526 \begin_layout Standard
527 Apply BPS/IPS patch <file> to XML of ROM <kind>.
528  If specified multiple times, the patches are applied in order.
529 \end_layout
531 \begin_layout Subsubsection
532 --ips-offset=<offset> (lsnes/SDL, lsnes-avidump)
533 \end_layout
535 \begin_layout Standard
536 Set offset to apply to IPS patches.
537  May be negative.
538  Handy for applying headered IPS patches (use offset of -512 for this).
539  The offset must be 0 for BPS patches.
540 \end_layout
542 \begin_layout Subsubsection
543 --pal
544 \end_layout
546 \begin_layout Standard
547 Force ROM to be considered PAL-only.
548 \end_layout
550 \begin_layout Itemize
551 Only works on SNES and SGB ROMs (not BS-X or Sufami Turbo).
552 \end_layout
554 \begin_layout Itemize
555 Attempting to load NTSC movie file will error out.
556 \end_layout
558 \begin_layout Subsubsection
559 --ntsc
560 \end_layout
562 \begin_layout Standard
563 Force ROM to be considered NTSC-only.
564 \end_layout
566 \begin_layout Itemize
567 Attempting to load PAL movie file will error out.
568 \end_layout
570 \begin_layout Subsection
571 Session options
572 \end_layout
574 \begin_layout Subsubsection
575 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
576 \end_layout
578 \begin_layout Standard
579 Load <filename> as movie or savestate file.
580  All other session options are ignored.
581 \end_layout
583 \begin_layout Subsubsection
584 --port1=<device> (lsnes/SDL)
585 \end_layout
587 \begin_layout Standard
588 Set type of port1.
589  Valid values are:
590 \end_layout
592 \begin_layout Itemize
593 none: No device connected
594 \end_layout
596 \begin_layout Itemize
597 gamepad: One gamepad (the default)
598 \end_layout
600 \begin_layout Itemize
601 multitap: Four gamepads (warning: makes most games refuse to start)
602 \end_layout
604 \begin_layout Itemize
605 mouse: Mouse.
606 \end_layout
608 \begin_layout Subsubsection
609 --port2=<type> (lsnes/SDL)
610 \end_layout
612 \begin_layout Standard
613 Set type of port2.
614  Valid values are:
615 \end_layout
617 \begin_layout Itemize
618 none: No device connected (the default)
619 \end_layout
621 \begin_layout Itemize
622 gamepad: One gamepad
623 \end_layout
625 \begin_layout Itemize
626 multitap: Four gamepads.
627 \end_layout
629 \begin_layout Itemize
630 mouse: Mouse
631 \end_layout
633 \begin_layout Itemize
634 superscope: Super Scope
635 \end_layout
637 \begin_layout Itemize
638 justifier: One justifier
639 \end_layout
641 \begin_layout Itemize
642 justifiers: Two justifiers
643 \end_layout
645 \begin_layout Subsubsection
646 --gamename=<name> (lsnes/SDL)
647 \end_layout
649 \begin_layout Standard
650 Set the name of game to <name>.
651  Default is blank.
652 \end_layout
654 \begin_layout Subsubsection
655 --author=<name> (lsnes/SDL)
656 \end_layout
658 \begin_layout Standard
659 Add author with full name of <name> (no nickname).
660 \end_layout
662 \begin_layout Subsubsection
663 --author=|<name> (lsnes/SDL)
664 \end_layout
666 \begin_layout Standard
667 Add author with nickname of <name> (no full name).
668 \end_layout
670 \begin_layout Subsubsection
671 --author=<fullname>|<nickname> (lsnes/SDL)
672 \end_layout
674 \begin_layout Standard
675 Add author with full name of <fullname> and nickname of <nickname>.
676 \end_layout
678 \begin_layout Subsubsection
679 --rtc-second=<value> (lsnes/SDL)
680 \end_layout
682 \begin_layout Standard
683 Set RTC second (0 is 1st January 1970 00:00:00Z).
684  Default is 1,000,000,000.
685 \end_layout
687 \begin_layout Subsubsection
688 --rtc-subsecond=<value> (lsnes/SDL)
689 \end_layout
691 \begin_layout Standard
692 Set RTC subsecond.
693  Range is 0-.
694  Unit is CPU cycle.
695  Default is 0.
696 \end_layout
698 \begin_layout Subsection
699 Misc.
700  options:
701 \end_layout
703 \begin_layout Subsubsection
704 --run=<file> (lsnes/SDL)
705 \end_layout
707 \begin_layout Standard
708 After running main RC file, run this file.
709  If multiple are specified, these execute in order specified.
710 \end_layout
712 \begin_layout Subsection
713 dump options (lsnes-dumpavi only)
714 \end_layout
716 \begin_layout Subsubsection
717 --prefix=<prefix>
718 \end_layout
720 \begin_layout Standard
721 Set dump prefix.
722  Default is 
723 \begin_inset Quotes eld
724 \end_inset
726 avidump
727 \begin_inset Quotes erd
728 \end_inset
731 \end_layout
733 \begin_layout Subsubsection
734 --level=<level>
735 \end_layout
737 \begin_layout Standard
738 Set compression level (0-18).
739  Default is 7.
740 \end_layout
742 \begin_layout Subsubsection
743 --length=<length>
744 \end_layout
746 \begin_layout Standard
747 Set number of frames to dump.
748  Mandatory.
749 \end_layout
751 \begin_layout Subsubsection
752 --lua=<script>
753 \end_layout
755 \begin_layout Standard
756 Run specified lua script (lsnes-dumpavi does not have initialization files).
757 \end_layout
759 \begin_layout Subsubsection
760 --jmd
761 \end_layout
763 \begin_layout Standard
764 Use JMD dumping instead of AVI dumping.
765 \end_layout
767 \begin_layout Subsubsection
768 --sdmp
769 \end_layout
771 \begin_layout Standard
772 Use SDMP dumping instead of AVI dumping.
773 \end_layout
775 \begin_layout Subsubsection
776 --ss
777 \end_layout
779 \begin_layout Standard
780 Dump in single segment (SDMP only).
781 \end_layout
783 \begin_layout Section
784 Startup file lsnes.rc
785 \end_layout
787 \begin_layout Standard
788 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
789  This file is located in:
790 \end_layout
792 \begin_layout Itemize
793 Windows: %APPDATA%
794 \backslash
795 lsnes
796 \backslash
797 lsnes.rc (if %APPDATA% exists)
798 \end_layout
800 \begin_layout Itemize
801 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
802 \end_layout
804 \begin_layout Itemize
805 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
806 \end_layout
808 \begin_layout Itemize
809 All: ./lsnes.rc (fallback default).
810 \end_layout
812 \begin_layout Standard
813 If leading directories do not exist, attempt to create them is made.
814 \end_layout
816 \begin_layout Section
817 Internal commands
818 \end_layout
820 \begin_layout Itemize
821 Commands beginning with '*' invoke the corresponding command without alias
822  expansion.
823 \end_layout
825 \begin_layout Itemize
826 If command starts with '+' (after possible '*'), the command is executed
827  as-is when button is pressed, and when button is released, it is executed
828  with '+' replaced by '-'.
829 \end_layout
831 \begin_layout Itemize
832 Commands without '+' execute only on negative edge (release).
833 \end_layout
835 \begin_layout Subsection
836 Settings:
837 \end_layout
839 \begin_layout Standard
840 Settings control various aspects of emulator behaviour.
841 \end_layout
843 \begin_layout Subsubsection
844 set-setting <setting> <value>
845 \end_layout
847 \begin_layout Standard
848 Sets setting <setting> to value <value> (may be empty).
849 \end_layout
851 \begin_layout Subsubsection
852 unset-setting <setting>
853 \end_layout
855 \begin_layout Standard
856 Try to unset setting <setting> (not all settings can be unset).
857 \end_layout
859 \begin_layout Subsubsection
860 get-setting <setting>
861 \end_layout
863 \begin_layout Standard
864 Read value of setting <setting>
865 \end_layout
867 \begin_layout Subsubsection
868 show-settings
869 \end_layout
871 \begin_layout Standard
872 Print names and values of all settings.
873 \end_layout
875 \begin_layout Subsection
876 Keybindings
877 \end_layout
879 \begin_layout Standard
880 Keybindings bind commands or aliases to keys (or pseudo-keys).
882 \end_layout
884 \begin_layout Standard
885 Notes:
886 \end_layout
888 \begin_layout Itemize
889 Do not bind edge active (+/-) commands to keys with modifiers, that won't
890  work right!
891 \end_layout
893 \begin_layout Itemize
894 Names of keys and modifiers are platform-dependent.
895 \end_layout
897 \begin_layout Itemize
898 Be careful before binding pseudo-keys (such as joystick axes, buttons or
899  hats) with modifiers.
900  That may or may not work right.
901 \end_layout
903 \begin_layout Subsubsection
904 bind-key [<mod>/<modmask>] <key> <command>
905 \end_layout
907 \begin_layout Standard
908 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
909 ed list) are set as <mod> (comma-seperated list).
910 \end_layout
912 \begin_layout Standard
913 The names of keys and modifiers are platform-dependent.
914 \end_layout
916 \begin_layout Subsubsection
917 unbind-key [<mod>/<modmask>] <key>
918 \end_layout
920 \begin_layout Standard
921 Unbind command from <key> (with specified <mod> and <modmask>).
922 \end_layout
924 \begin_layout Subsubsection
925 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
926  | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
927  [plus=<val>] [tolerance=<val>]
928 \end_layout
930 \begin_layout Standard
931 Set axis parameters for axis <axis>.
932 \end_layout
934 \begin_layout Itemize
935 disabled: Disable axis
936 \end_layout
938 \begin_layout Itemize
939 axis: Normal axis
940 \end_layout
942 \begin_layout Itemize
943 axis-inverse: Inverse axis
944 \end_layout
946 \begin_layout Itemize
947 pressure0-: Pressure sensitive.
948  Released at 0, pressed at -.
949 \end_layout
951 \begin_layout Itemize
952 pressure0+: Pressure sensitive.
953  Released at 0, pressed at +.
954 \end_layout
956 \begin_layout Itemize
957 pressure-0: Pressure sensitive.
958  Released at -, pressed at 0.
959 \end_layout
961 \begin_layout Itemize
962 pressure-+: Pressure sensitive.
963  Released at -, pressed at +.
964 \end_layout
966 \begin_layout Itemize
967 pressure+0: Pressure sensitive.
968  Released at +, pressed at 0.
969 \end_layout
971 \begin_layout Itemize
972 pressure+-: Pressure sensitive.
973  Released at +, pressed at -.
974 \end_layout
976 \begin_layout Itemize
977 minus=<val>: Calibration at extreme minus position (-32768-32767)
978 \end_layout
980 \begin_layout Itemize
981 zero=<val>: Calibration at neutral position (-32768-32767)
982 \end_layout
984 \begin_layout Itemize
985 plus=<val>: Calibration at extreme plus position (-32768-32767)
986 \end_layout
988 \begin_layout Itemize
989 tolerance=<value>: Center band tolerance (0<x<1).
990  The smaller the value, the more sensitive the control is.
991 \end_layout
993 \begin_layout Subsubsection
994 show-bindings
995 \end_layout
997 \begin_layout Standard
998 Print all key bindings in effect.
999 \end_layout
1001 \begin_layout Subsection
1002 Aliases
1003 \end_layout
1005 \begin_layout Standard
1006 Aliases bind command to sequence of commands.
1007  After alias has been defined, it replaces the command it shadows.
1008 \end_layout
1010 \begin_layout Standard
1011 Notes:
1012 \end_layout
1014 \begin_layout Itemize
1015 You can't alias command to itself.
1016 \end_layout
1018 \begin_layout Itemize
1019 Aliases starting with +/- are edge active just like ordinary commands starting
1020  with +/-.
1021 \end_layout
1023 \begin_layout Itemize
1024 One command can be aliased to multiple commands.
1025 \end_layout
1027 \begin_layout Subsubsection
1028 alias-command <command> <expansion>
1029 \end_layout
1031 \begin_layout Standard
1032 Append <expansion> to alias <command>.
1033  If alias does not already exist, it is created.
1034 \end_layout
1036 \begin_layout Subsubsection
1037 unalias-command <command>
1038 \end_layout
1040 \begin_layout Standard
1041 Clear alias expansion for <command>.
1042 \end_layout
1044 \begin_layout Subsubsection
1045 show-aliases
1046 \end_layout
1048 \begin_layout Standard
1049 Print all aliases and their expansions in effect.
1050 \end_layout
1052 \begin_layout Subsection
1053 run-script <script>
1054 \end_layout
1056 \begin_layout Standard
1057 Run <script> as if commands were entered on the command line.
1058 \end_layout
1060 \begin_layout Subsection
1061 Video dumping
1062 \end_layout
1064 \begin_layout Standard
1065 Following commands control video dumping:
1066 \end_layout
1068 \begin_layout Subsubsection
1069 dump-avi <prefix>
1070 \end_layout
1072 \begin_layout Standard
1073 Dump AVI video to prefix <prefix> Notes:
1074 \end_layout
1076 \begin_layout Itemize
1077 The codec is Camstudio Codec in gzip mode.
1078 \end_layout
1080 \begin_layout Itemize
1081 Encoder and muxer are internal, available on all platforms.
1082 \end_layout
1084 \begin_layout Itemize
1085 Audio enable/disable and framerate has no effect.
1086 \end_layout
1088 \begin_layout Itemize
1089 The audio dumped to .avi is low-quality version.
1090  The high-quality version is dumped to .sox file.
1091 \end_layout
1093 \begin_layout Subsubsection
1094 end-avi
1095 \end_layout
1097 \begin_layout Standard
1098 End current AVI video dump (closing the emulator also closes the dump).
1099 \end_layout
1101 \begin_layout Subsubsection
1102 dump-jmd <file>
1103 \end_layout
1105 \begin_layout Standard
1106 Dump JMD video to file <file>.
1107 \end_layout
1109 \begin_layout Subsubsection
1110 end-jmd
1111 \end_layout
1113 \begin_layout Standard
1114 End the current JMD dump in progress.
1115 \end_layout
1117 \begin_layout Subsubsection
1118 dump-sdmp <prefix>
1119 \end_layout
1121 \begin_layout Standard
1122 Dump SDMP to <prefix>, splitting at 2GB.
1123 \end_layout
1125 \begin_layout Subsubsection
1126 dump-sdmp-ss <file>
1127 \end_layout
1129 \begin_layout Standard
1130 Dump SDMP to <file>, no splitting
1131 \end_layout
1133 \begin_layout Subsubsection
1134 end-sdmp
1135 \end_layout
1137 \begin_layout Standard
1138 End the current SDMP dump in progress.
1139 \end_layout
1141 \begin_layout Subsection
1142 Memory manipulation
1143 \end_layout
1145 \begin_layout Standard
1146 <address> may be decimal or hexadecimal (prefixed with '0x').
1147  <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
1148  with '-') decimal.
1149 \end_layout
1151 \begin_layout Standard
1152 The available element <sizes> are:
1153 \end_layout
1155 \begin_layout Itemize
1156 byte: 1 byte
1157 \end_layout
1159 \begin_layout Itemize
1160 word: 2 bytes
1161 \end_layout
1163 \begin_layout Itemize
1164 dword: 4 bytes
1165 \end_layout
1167 \begin_layout Itemize
1168 qword: 8 bytes
1169 \end_layout
1171 \begin_layout Standard
1172 When reading RAM and ROM, multi-byte reads/writes are big-endian.
1173  When dealing with DSP memory, multi-byte reads/writes are native-endian
1174  (do not use operand sizes exceeding DSP bitness, except dword is OK for
1175  24-bit memory).
1176 \end_layout
1178 \begin_layout Subsubsection
1179 read-<size> <address>
1180 \end_layout
1182 \begin_layout Standard
1183 Read the value of byte in <address>.
1184 \end_layout
1186 \begin_layout Subsubsection
1187 read-s<size> <address>
1188 \end_layout
1190 \begin_layout Standard
1191 Read the value of signed byte in <address>.
1192 \end_layout
1194 \begin_layout Subsubsection
1195 write-<size> <address> <value>
1196 \end_layout
1198 \begin_layout Standard
1199 Write <value> to byte in address <address>.
1200 \end_layout
1202 \begin_layout Subsubsection
1203 search-memory reset
1204 \end_layout
1206 \begin_layout Standard
1207 Reset the memory search
1208 \end_layout
1210 \begin_layout Subsubsection
1211 search-memory count
1212 \end_layout
1214 \begin_layout Standard
1215 Print number of candidates remaining
1216 \end_layout
1218 \begin_layout Subsubsection
1219 search-memory print
1220 \end_layout
1222 \begin_layout Standard
1223 Print all candidates remaining
1224 \end_layout
1226 \begin_layout Subsubsection
1227 search-memory <usflag><sizeflag><op>
1228 \end_layout
1230 \begin_layout Standard
1231 Searches memory for addresses satisfying criteria.
1232 \end_layout
1234 \begin_layout Standard
1235 <usflag> can be:
1236 \end_layout
1238 \begin_layout Itemize
1239 u: unsigned
1240 \end_layout
1242 \begin_layout Itemize
1243 s: signed
1244 \end_layout
1246 \begin_layout Standard
1247 <sizeflag> can be:
1248 \end_layout
1250 \begin_layout Itemize
1251 b: byte
1252 \end_layout
1254 \begin_layout Itemize
1255 w: word
1256 \end_layout
1258 \begin_layout Itemize
1259 d: dword
1260 \end_layout
1262 \begin_layout Itemize
1263 q: qword
1264 \end_layout
1266 \begin_layout Standard
1267 <op> can be:
1268 \end_layout
1270 \begin_layout Itemize
1271 lt: < previous value.
1272 \end_layout
1274 \begin_layout Itemize
1275 le: <= previous value.
1276 \end_layout
1278 \begin_layout Itemize
1279 eq: = previous value.
1280 \end_layout
1282 \begin_layout Itemize
1283 ne: != previous value.
1284 \end_layout
1286 \begin_layout Itemize
1287 ge: >= previous value.
1288 \end_layout
1290 \begin_layout Itemize
1291 gt: > previous value.
1292 \end_layout
1294 \begin_layout Subsubsection
1295 search-memory <sizeflag> <value>
1296 \end_layout
1298 \begin_layout Standard
1299 Searches for addresses that currently have value <value>.
1300  <sizeflag> is as in previous command.
1301 \end_layout
1303 \begin_layout Subsection
1304 Main commands
1305 \end_layout
1307 \begin_layout Standard
1308 These commands are not available in lsnesrc, but are available after ROM
1309  has been loaded.
1310 \end_layout
1312 \begin_layout Subsubsection
1313 quit-emulator [/y]
1314 \end_layout
1316 \begin_layout Standard
1317 Quits the emulator (asking for confirmation).
1318  If /y is given, no confirmation is asked.
1319 \end_layout
1321 \begin_layout Subsubsection
1322 pause-emulator
1323 \end_layout
1325 \begin_layout Standard
1326 Toggle paused/unpaused
1327 \end_layout
1329 \begin_layout Subsubsection
1330 +advance-frame 
1331 \end_layout
1333 \begin_layout Standard
1334 Advance frame.
1335  If the button is still held after configurable timeout expires, game unpauses
1336  for the duration frame advance is held.
1337 \end_layout
1339 \begin_layout Subsubsection
1340 +advance-poll 
1341 \end_layout
1343 \begin_layout Standard
1344 Advance subframe.
1345  If the button is still held after configurable timeout expires, game unpauses
1346  for the duration frame advance is held.
1347 \end_layout
1349 \begin_layout Subsubsection
1350 advance-skiplag 
1351 \end_layout
1353 \begin_layout Standard
1354 Skip to first poll in frame after current.
1355 \end_layout
1357 \begin_layout Subsubsection
1358 reset 
1359 \end_layout
1361 \begin_layout Standard
1362 Reset the SNES after this frame.
1363 \end_layout
1365 \begin_layout Subsubsection
1366 load <filename> 
1367 \end_layout
1369 \begin_layout Standard
1370 Load savestate <filename> in current mode.
1371 \end_layout
1373 \begin_layout Subsubsection
1374 load-state <filename> 
1375 \end_layout
1377 \begin_layout Standard
1378 Load savestate <filename> in readwrite mode.
1379 \end_layout
1381 \begin_layout Subsubsection
1382 load-readonly <filename> 
1383 \end_layout
1385 \begin_layout Standard
1386 Load savestate <filename> in readonly mode.
1387 \end_layout
1389 \begin_layout Subsubsection
1390 load-preserve <filename> 
1391 \end_layout
1393 \begin_layout Standard
1394 Load savestate <filename> in readonly mode, preserving current events.
1395 \end_layout
1397 \begin_layout Subsubsection
1398 load-movie <filename> 
1399 \end_layout
1401 \begin_layout Standard
1402 Load savestate <filename>, ignoring save part in readonly mode.
1403 \end_layout
1405 \begin_layout Subsubsection
1406 save-state <filename> 
1407 \end_layout
1409 \begin_layout Standard
1410 Save system state to <filename> as soon as possible.
1411 \end_layout
1413 \begin_layout Subsubsection
1414 save-movie <filename> 
1415 \end_layout
1417 \begin_layout Standard
1418 Save movie to <filename>.
1419 \end_layout
1421 \begin_layout Subsubsection
1422 set-rwmode 
1423 \end_layout
1425 \begin_layout Standard
1426 Set read-write mode.
1427 \end_layout
1429 \begin_layout Subsubsection
1430 set-romode 
1431 \end_layout
1433 \begin_layout Standard
1434 Set read-only mode
1435 \end_layout
1437 \begin_layout Subsubsection
1438 toggle-rwmode 
1439 \end_layout
1441 \begin_layout Standard
1442 Toggle between read-only and read-write modes.
1443 \end_layout
1445 \begin_layout Subsubsection
1446 set-gamename <name> 
1447 \end_layout
1449 \begin_layout Standard
1450 Set name of the game to <name>
1451 \end_layout
1453 \begin_layout Subsubsection
1454 get-gamename 
1455 \end_layout
1457 \begin_layout Standard
1458 Print the name of the game.
1459 \end_layout
1461 \begin_layout Subsubsection
1462 add-author <author> 
1463 \end_layout
1465 \begin_layout Standard
1466 Adds new author <author>.
1467  If <author> does not contain '|' it is full name.
1468  If it contains '|', '|' splits the full name and nickname.
1469 \end_layout
1471 \begin_layout Subsubsection
1472 edit-author <num> <author> 
1473 \end_layout
1475 \begin_layout Standard
1476 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1477  format)
1478 \end_layout
1480 \begin_layout Subsubsection
1481 remove-author <num> 
1482 \end_layout
1484 \begin_layout Standard
1485 Remove author in slot <num>
1486 \end_layout
1488 \begin_layout Subsubsection
1489 print-authors 
1490 \end_layout
1492 \begin_layout Standard
1493 Print authors.
1494 \end_layout
1496 \begin_layout Subsubsection
1497 test-1, test-2, test-3
1498 \end_layout
1500 \begin_layout Standard
1501 Internal test commands.
1502  Don't use.
1503 \end_layout
1505 \begin_layout Subsubsection
1506 take-screenshot <filename> 
1507 \end_layout
1509 \begin_layout Standard
1510 Save screenshot to <filename>.
1511 \end_layout
1513 \begin_layout Subsubsection
1514 +controller<num><button>
1515 \end_layout
1517 \begin_layout Standard
1518 Press button <button> on controller <num> (1-8).
1519  The following button names are known:
1520 \end_layout
1522 \begin_layout Itemize
1523 left
1524 \end_layout
1526 \begin_layout Itemize
1527 right
1528 \end_layout
1530 \begin_layout Itemize
1532 \end_layout
1534 \begin_layout Itemize
1535 down
1536 \end_layout
1538 \begin_layout Itemize
1540 \end_layout
1542 \begin_layout Itemize
1544 \end_layout
1546 \begin_layout Itemize
1548 \end_layout
1550 \begin_layout Itemize
1552 \end_layout
1554 \begin_layout Itemize
1556 \end_layout
1558 \begin_layout Itemize
1560 \end_layout
1562 \begin_layout Itemize
1563 select
1564 \end_layout
1566 \begin_layout Itemize
1567 start
1568 \end_layout
1570 \begin_layout Itemize
1571 trigger
1572 \end_layout
1574 \begin_layout Itemize
1575 cursor
1576 \end_layout
1578 \begin_layout Itemize
1579 pause
1580 \end_layout
1582 \begin_layout Itemize
1583 turbo
1584 \end_layout
1586 \begin_layout Subsubsection
1587 controllerh<num><button>
1588 \end_layout
1590 \begin_layout Standard
1591 Hold/unhold button <button> on controller <num> (1-8).
1592  See +controller for button names.
1593 \end_layout
1595 \begin_layout Subsubsection
1596 autofire (<pattern>|-)...
1597 \end_layout
1599 \begin_layout Standard
1600 Set autofire pattern.
1601  Each parameter is comma-separated list of button names (in form of 1start,
1602  1A, 2B, etc..) to hold on that frame.
1603  After reaching the end of pattern, the pattern restarts from the beginning.
1604 \end_layout
1606 \begin_layout Subsubsection
1607 repaint
1608 \end_layout
1610 \begin_layout Standard
1611 Force a repaint.
1612 \end_layout
1614 \begin_layout Subsection
1615 Save jukebox 
1616 \end_layout
1618 \begin_layout Subsubsection
1619 cycle-jukebox-backward
1620 \end_layout
1622 \begin_layout Standard
1623 Cycle save jukebox backwards.
1624 \end_layout
1626 \begin_layout Subsubsection
1627 cycle-jukebox-forward
1628 \end_layout
1630 \begin_layout Standard
1631 Cycle save jukebox forwards
1632 \end_layout
1634 \begin_layout Subsubsection
1635 add-jukebox-save <filename>
1636 \end_layout
1638 \begin_layout Standard
1639 Add <filename> to jukebox saves.
1640 \end_layout
1642 \begin_layout Subsubsection
1643 load-jukebox
1644 \end_layout
1646 \begin_layout Standard
1647 Do load from jukebox (current mode).
1648 \end_layout
1650 \begin_layout Subsubsection
1651 save-jukebox
1652 \end_layout
1654 \begin_layout Standard
1655 Do state save to jukebox.
1656 \end_layout
1658 \begin_layout Subsection
1659 Lua 
1660 \end_layout
1662 \begin_layout Standard
1663 Only available if lua support is compiled in.
1664 \end_layout
1666 \begin_layout Subsubsection
1667 evaluate-lua <luacode>
1668 \end_layout
1670 \begin_layout Standard
1671 Run Lua code <luacode> using built-in Lua interpretter.
1672 \end_layout
1674 \begin_layout Subsubsection
1675 run-lua <script>
1676 \end_layout
1678 \begin_layout Standard
1679 Run specified lua file using built-in Lua interpretter.
1680 \end_layout
1682 \begin_layout Subsection
1683 Memory watch
1684 \end_layout
1686 \begin_layout Subsubsection
1687 add-watch <name> <expression>
1688 \end_layout
1690 \begin_layout Standard
1691 Adds new watch (or modifies old one).
1692 \end_layout
1694 \begin_layout Subsubsection
1695 remove-watch <name>
1696 \end_layout
1698 \begin_layout Standard
1699 Remove a watch.
1700 \end_layout
1702 \begin_layout Subsection
1703 Sound 
1704 \end_layout
1706 \begin_layout Subsubsection
1707 enable-sound <on/off> 
1708 \end_layout
1710 \begin_layout Standard
1711 Enable/Disable sound.
1712 \end_layout
1714 \begin_layout Subsubsection
1715 set-sound-device <device> 
1716 \end_layout
1718 \begin_layout Standard
1719 Set sound device to <device>
1720 \end_layout
1722 \begin_layout Subsubsection
1723 show-sound-status 
1724 \end_layout
1726 \begin_layout Standard
1727 Show status of sound system.
1728 \end_layout
1730 \begin_layout Subsubsection
1731 show-sound-devices
1732 \end_layout
1734 \begin_layout Standard
1735 Show all available devices.
1736 \end_layout
1738 \begin_layout Subsection
1739 SDL Platform commands 
1740 \end_layout
1742 \begin_layout Standard
1743 The following are valid on SDL platform.
1744 \end_layout
1746 \begin_layout Subsubsection
1747 identify-key
1748 \end_layout
1750 \begin_layout Standard
1751 Asks to press a key and then identifies that (pseudo-)key.
1752 \end_layout
1754 \begin_layout Subsubsection
1755 toggle-console 
1756 \end_layout
1758 \begin_layout Standard
1759 Toggle between windowed/fullscreen console.
1760 \end_layout
1762 \begin_layout Subsubsection
1763 scroll-fullup 
1764 \end_layout
1766 \begin_layout Standard
1767 Scroll messages window as far back as it goes.
1768 \end_layout
1770 \begin_layout Subsubsection
1771 scroll-fulldown 
1772 \end_layout
1774 \begin_layout Standard
1775 Scroll messages window as far forward as it goes.
1776 \end_layout
1778 \begin_layout Subsubsection
1779 scroll-up 
1780 \end_layout
1782 \begin_layout Standard
1783 Scroll messages window back one screenful.
1784 \end_layout
1786 \begin_layout Subsubsection
1787 scroll-down 
1788 \end_layout
1790 \begin_layout Standard
1791 Scroll messages window forward one screenful.
1792 \end_layout
1794 \begin_layout Section
1795 Settings
1796 \end_layout
1798 \begin_layout Subsection
1799 Core settings
1800 \end_layout
1802 \begin_layout Subsubsection
1803 firmwarepath
1804 \end_layout
1806 \begin_layout Standard
1807 Set where bsnes looks for firmware files.
1808  Default is 
1809 \begin_inset Quotes eld
1810 \end_inset
1813 \begin_inset Quotes erd
1814 \end_inset
1817 \end_layout
1819 \begin_layout Subsubsection
1820 targetfps
1821 \end_layout
1823 \begin_layout Standard
1824 Set the target fps.
1825  Numeric, range is 0.001 to 
1826 \begin_inset Quotes eld
1827 \end_inset
1829 infinite
1830 \begin_inset Quotes erd
1831 \end_inset
1834  Default is native framerate.
1835 \end_layout
1837 \begin_layout Subsubsection
1838 savecompression
1839 \end_layout
1841 \begin_layout Standard
1842 Set save compression level (integer 0-9).
1843  Default is 7 (0 is no compression).
1844 \end_layout
1846 \begin_layout Subsubsection
1847 advance-timeout
1848 \end_layout
1850 \begin_layout Standard
1851 Set the frame advance timeout in milliseconds.
1852  Numeric integer, range is 0-999999999.
1853  Default is 500.
1854 \end_layout
1856 \begin_layout Subsection
1857 AVI dumper settings
1858 \end_layout
1860 \begin_layout Subsubsection
1861 avi-large
1862 \end_layout
1864 \begin_layout Standard
1865 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1866  outputs.
1867 \end_layout
1869 \begin_layout Subsubsection
1870 avi-left-border
1871 \end_layout
1873 \begin_layout Standard
1874 AVI dumper: Set the default left border thickness (unless lua overrides)
1875  for dumps.
1876  Range 0-8191.
1877  Default is 0.
1878 \end_layout
1880 \begin_layout Subsubsection
1881 avi-right-border
1882 \end_layout
1884 \begin_layout Standard
1885 AVI dumper: Set the default right border thickness (unless lua overrides)
1886  for dumps.
1887  Range 0-8191.
1888  Default is 0.
1889 \end_layout
1891 \begin_layout Subsubsection
1892 avi-top-border
1893 \end_layout
1895 \begin_layout Standard
1896 AVI dumper: Set the default top border thickness (unless lua overrides)
1897  for dumps.
1898  Range 0-8191.
1899  Default is 0.
1900 \end_layout
1902 \begin_layout Subsubsection
1903 avi-bottom-border
1904 \end_layout
1906 \begin_layout Standard
1907 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1908  for dumps.
1909  Range 0-8191.
1910  Default is 0.
1911 \end_layout
1913 \begin_layout Subsubsection
1914 avi-maxframes
1915 \end_layout
1917 \begin_layout Standard
1918 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1919  Range 0-999999999.
1920  Default is 0.
1921 \end_layout
1923 \begin_layout Subsubsection
1924 avi-compresison
1925 \end_layout
1927 \begin_layout Standard
1928 AVI dumper: Compression level (0-18).
1929 \end_layout
1931 \begin_layout Itemize
1932 Compression levels 10 and above are not compatible with stock CSCD codec.
1933 \end_layout
1935 \begin_layout Itemize
1936 Recomended level is 7.
1937 \end_layout
1939 \begin_layout Subsection
1940 JMD options
1941 \end_layout
1943 \begin_layout Subsubsection
1944 jmd-copression
1945 \end_layout
1947 \begin_layout Standard
1948 JMD dumper: Compression level (0-9).
1949 \end_layout
1951 \begin_layout Subsection
1952 SDL platform settings
1953 \end_layout
1955 \begin_layout Subsubsection
1956 autorepeat-first-delay
1957 \end_layout
1959 \begin_layout Standard
1960 Sets the delay for first character in typematic autorepeat.
1961 \end_layout
1963 \begin_layout Subsubsection
1964 autorepeat-subsequent-delay
1965 \end_layout
1967 \begin_layout Standard
1968 Sets the delay for subsequent characters in typematic autorepeat.
1969 \end_layout
1971 \begin_layout Section
1972 Lua functions
1973 \end_layout
1975 \begin_layout Subsection
1976 Core (in main table)
1977 \end_layout
1979 \begin_layout Subsubsection
1980 print
1981 \end_layout
1983 \begin_layout Standard
1984 Print line to message console.
1985 \end_layout
1987 \begin_layout Subsubsection
1988 exec(string command)
1989 \end_layout
1991 \begin_layout Standard
1992 Run command as it was entered on the command line
1993 \end_layout
1995 \begin_layout Subsection
1996 Table bit:
1997 \end_layout
1999 \begin_layout Standard
2000 Bitwise logical functions and related.
2001 \end_layout
2003 \begin_layout Subsubsection
2004 bit.none(number...) / bit.bnot(number...)
2005 \end_layout
2007 \begin_layout Standard
2008 48-bit bitwise NOT / NONE function (set bits that are set in none of the
2009  arguments).
2010 \end_layout
2012 \begin_layout Subsubsection
2013 bit.any(number...) / bit.bor(number...)
2014 \end_layout
2016 \begin_layout Standard
2017 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
2018 \end_layout
2020 \begin_layout Subsubsection
2021 bit.all(number...) / bit.band(number...)
2022 \end_layout
2024 \begin_layout Standard
2025 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
2027 \end_layout
2029 \begin_layout Subsubsection
2030 bit.parity(number...) / bit.bxor(number...)
2031 \end_layout
2033 \begin_layout Standard
2034 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
2035  of the arguments).
2036 \end_layout
2038 \begin_layout Subsubsection
2039 bit.lrotate(number base[, number amount[, number bits]])
2040 \end_layout
2042 \begin_layout Standard
2043 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
2044 \end_layout
2046 \begin_layout Subsubsection
2047 bit.rrotate(number base[, number amount[, number bits]])
2048 \end_layout
2050 \begin_layout Standard
2051 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
2052  places.
2053 \end_layout
2055 \begin_layout Subsubsection
2056 bit.lshift(number base[, number amount[, number bits]])
2057 \end_layout
2059 \begin_layout Standard
2060 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
2061  The new bits are filled with zeroes.
2062 \end_layout
2064 \begin_layout Subsubsection
2065 bit.lrshift(number base[, number amount[, number bits]])
2066 \end_layout
2068 \begin_layout Standard
2069 Shift bits-bit (max 48, default 48) number logically right by amount (default
2070  1) places.
2071  The new bits are filled with zeroes.
2072 \end_layout
2074 \begin_layout Subsubsection
2075 bit.arshift(number base[, number amount[, number bits]])
2076 \end_layout
2078 \begin_layout Standard
2079 Shift bits-bit (max 48, default 48) number arithmetically right by amount
2080  (default 1) places.
2081  The new bits are shifted in with copy of the high bit.
2082 \end_layout
2084 \begin_layout Subsection
2085 Table gui:
2086 \end_layout
2088 \begin_layout Standard
2089 Most of these functions can only be called in on_paint and on_video callbacks.
2090  Exceptions are noted.
2091 \end_layout
2093 \begin_layout Standard
2094 Colors are 32-bit.
2095  Bits 0-7 are the blue component, bits 8-15 are the green component, bits
2096  16-23 are the red component, bits 24-31 are alpha component (0 is fully
2097  opaque, 255 is almost transparent).
2098  -1 is the fully transparent color.
2099  Alpha values greater than 127 do work.
2100 \end_layout
2102 \begin_layout Standard
2103 Origin of coordinates is at top left corner of game display area.
2104  Left and top gaps correspond to negative coordinates.
2105 \end_layout
2107 \begin_layout Subsubsection
2108 gui.resolution()
2109 \end_layout
2111 \begin_layout Standard
2112 Returns 2-tuple (hresolution, vresolution).
2113 \end_layout
2115 \begin_layout Subsubsection
2116 gui.<class>_gap(number gap)
2117 \end_layout
2119 \begin_layout Standard
2120 Set the <class> (left, right, top, bottom) gap to specified value (max gap
2121  is 8191).
2122 \end_layout
2124 \begin_layout Subsubsection
2125 gui.text(number x, number y, string text[, number fgc[, number bgc]])
2126 \end_layout
2128 \begin_layout Standard
2129 Draw specified text on the GUI (each character cell is 8 or 16 wide and
2130  16 high).
2131  Parameters:
2132 \end_layout
2134 \begin_layout Itemize
2135 x: X-coordinate to start the drawing from (and x-coordinate at begining
2136  of the lines).
2137 \end_layout
2139 \begin_layout Itemize
2140 y: Y-coordinate to start the drawing from.
2141 \end_layout
2143 \begin_layout Itemize
2144 text: The text to draw.
2145 \end_layout
2147 \begin_layout Itemize
2148 fgc: Text color (default is 0xFFFFFF (white))
2149 \end_layout
2151 \begin_layout Itemize
2152 bgc: Background color (default is -1 (transparent))
2153 \end_layout
2155 \begin_layout Subsubsection
2156 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
2157 \end_layout
2159 \begin_layout Standard
2160 Like gui.text, but draw using double-width.
2161 \end_layout
2163 \begin_layout Subsubsection
2164 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
2165 \end_layout
2167 \begin_layout Standard
2168 Like gui.text, but draw using double-height.
2169 \end_layout
2171 \begin_layout Subsubsection
2172 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
2173 \end_layout
2175 \begin_layout Standard
2176 Like gui.text, but draw using double-width/double-height.
2177 \end_layout
2179 \begin_layout Subsubsection
2180 gui.rectangle(number x, number y, number width, number height[, number thickness[
2181 , number outline[, number fill]]])
2182 \end_layout
2184 \begin_layout Standard
2185 Draw rectangle on the GUI.
2186  Parameters:
2187 \end_layout
2189 \begin_layout Itemize
2190 x: X-coordinate of left edge.
2191 \end_layout
2193 \begin_layout Itemize
2194 y: Y-coordinate of upper edge.
2195 \end_layout
2197 \begin_layout Itemize
2198 width: Width of rectangle.
2199 \end_layout
2201 \begin_layout Itemize
2202 height: Height of rectangle.
2203 \end_layout
2205 \begin_layout Itemize
2206 thickness: Thickness of outline (default is 1).
2207 \end_layout
2209 \begin_layout Itemize
2210 outline: Color of outline (default is 0xFFFFFF (white))
2211 \end_layout
2213 \begin_layout Itemize
2214 fill: Color of fil (default is -1 (transparent))
2215 \end_layout
2217 \begin_layout Subsubsection
2218 gui.pixel(number x, number y[, number color])
2219 \end_layout
2221 \begin_layout Standard
2222 Draw one pixel on the GUI.
2223  Parameters:
2224 \end_layout
2226 \begin_layout Itemize
2227 x: X-coordinate of the pixel
2228 \end_layout
2230 \begin_layout Itemize
2231 y: Y-coordinate of the pixel
2232 \end_layout
2234 \begin_layout Itemize
2235 color: Color of the pixel (default is 0xFFFFFF (white))
2236 \end_layout
2238 \begin_layout Subsubsection
2239 gui.crosshair(number x, number y[, number length[, number color]])
2240 \end_layout
2242 \begin_layout Standard
2243 Draw a crosshair.
2244  Parameters:
2245 \end_layout
2247 \begin_layout Itemize
2248 x: X-coordinate of the crosshair
2249 \end_layout
2251 \begin_layout Itemize
2252 y: Y-coordinate of the crosshair
2253 \end_layout
2255 \begin_layout Itemize
2256 length: Length of the crosshair lines (default 10).
2257 \end_layout
2259 \begin_layout Itemize
2260 color: Color of the crosshair (default is 0xFFFFFF (white))
2261 \end_layout
2263 \begin_layout Subsubsection
2264 gui.line(number x1, number y1, number x2, number y2[, number color])
2265 \end_layout
2267 \begin_layout Standard
2268 Draw a thin line.
2269  Parameters:
2270 \end_layout
2272 \begin_layout Itemize
2273 x1: X-coordinate of one end.
2274 \end_layout
2276 \begin_layout Itemize
2277 y1: Y-coordinate of one end.
2278 \end_layout
2280 \begin_layout Itemize
2281 x2: X-coordinate of the other end.
2282 \end_layout
2284 \begin_layout Itemize
2285 y2: Y-coordinate of the other end.
2286 \end_layout
2288 \begin_layout Itemize
2289 color: Color of the line (default is 0xFFFFFF (white)).
2290 \end_layout
2292 \begin_layout Subsubsection
2293 gui.circle(number x, number y, number r[, number thick[, number border[,
2294  number fil]]])
2295 \end_layout
2297 \begin_layout Standard
2298 Draw a circle.
2299  Parameters.
2300 \end_layout
2302 \begin_layout Itemize
2303 x: X-coordinate of the center
2304 \end_layout
2306 \begin_layout Itemize
2307 y: Y-coordinate of the center
2308 \end_layout
2310 \begin_layout Itemize
2311 r: The radius of the circle
2312 \end_layout
2314 \begin_layout Itemize
2315 thick: Border thickness
2316 \end_layout
2318 \begin_layout Itemize
2319 border: Border color (default is 0xFFFFFF (white))
2320 \end_layout
2322 \begin_layout Itemize
2323 fill: Fill color (default is -1 (transparent)).
2324 \end_layout
2326 \begin_layout Subsubsection
2327 gui.repaint()
2328 \end_layout
2330 \begin_layout Standard
2331 Request on_repaint() to happen as soon as possible.
2332  Can be used anywhere.
2333 \end_layout
2335 \begin_layout Subsubsection
2336 gui.subframe_update(boolean on)
2337 \end_layout
2339 \begin_layout Standard
2340 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2341  or not happen (on=false).
2342  Can be used anywhere.
2343 \end_layout
2345 \begin_layout Subsubsection
2346 gui.screenshot(string filename)
2347 \end_layout
2349 \begin_layout Standard
2350 Write PNG screenshot of the current frame (no drawings) to specified file.
2351  Can be used anywhere.
2352 \end_layout
2354 \begin_layout Subsubsection
2355 gui.color(number r, number g, number b[, number a])
2356 \end_layout
2358 \begin_layout Standard
2359 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2360  each component in scale 0-255.
2361  If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2362  opaque).
2363  The default alpha is 256.
2364 \end_layout
2366 \begin_layout Subsubsection
2367 gui.status(string name, string value)
2368 \end_layout
2370 \begin_layout Standard
2371 Set status field 
2372 \begin_inset Quotes eld
2373 \end_inset
2375 L[<name>]
2376 \begin_inset Quotes erd
2377 \end_inset
2379  to <value> in status area.
2380  Can be used anywhere.
2381 \end_layout
2383 \begin_layout Subsection
2384 table input
2385 \end_layout
2387 \begin_layout Standard
2388 Input handling.
2389  Only available in on_input callback.
2390 \end_layout
2392 \begin_layout Subsubsection
2393 input.get(number controller, number index)
2394 \end_layout
2396 \begin_layout Standard
2397 Read the specified index (0-11) from specified controller (0-7).
2398  Notes:
2399 \end_layout
2401 \begin_layout Itemize
2402 Uses physical controller numbering.
2403  Gamepad in port 2 is controller 4, not 1!
2404 \end_layout
2406 \begin_layout Subsubsection
2407 input.set(number controller, number index, number value)
2408 \end_layout
2410 \begin_layout Standard
2411 Write the specified index (0-11) from specified controller (0-7), storing
2412  value.
2413  Notes:
2414 \end_layout
2416 \begin_layout Itemize
2417 Uses physical controller numbering.
2418  Gamepad in port 2 is controller 4, not 1!
2419 \end_layout
2421 \begin_layout Subsubsection
2422 input.reset([number cycles])
2423 \end_layout
2425 \begin_layout Standard
2426 Execute reset.
2427  If cycles is greater than zero, do delayed reset.
2428  0 (or no value) causes immediate reset.
2429 \end_layout
2431 \begin_layout Itemize
2432 Only available with subframe flag false.
2433 \end_layout
2435 \begin_layout Subsubsection
2436 input.raw()
2437 \end_layout
2439 \begin_layout Standard
2440 Returns table of tables of all available keys and axes.
2441  The first table is indexed by key name (platform-dependent!), and the inner
2442  table has the following fields:
2443 \end_layout
2445 \begin_layout Itemize
2446 last_rawval: Last reported raw value for control.
2447 \end_layout
2449 \begin_layout Itemize
2450 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2451  pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2452 \end_layout
2454 \begin_layout Itemize
2455 cal_left: Minimum calibration value.
2456  Only meaningful with axis and pressure types.
2457 \end_layout
2459 \begin_layout Itemize
2460 cal_center: Center calibration value.
2461  Only meaningful with axis and pressure types.
2462 \end_layout
2464 \begin_layout Itemize
2465 cal_right: Maximum calibration value.
2466  Only meaningful with axis and pressure types.
2467 \end_layout
2469 \begin_layout Itemize
2470 cal_tolerance: Dead zone tolerance.
2471  Only meaningful with axis and pressure types.
2472 \end_layout
2474 \begin_layout Subsubsection
2475 input.keyhook(key, state)
2476 \end_layout
2478 \begin_layout Standard
2479 Requests that keyhook events to be sent for key (state=true) or not sent
2480  (state=false).
2481 \end_layout
2483 \begin_layout Subsection
2484 Table hostmemory
2485 \end_layout
2487 \begin_layout Standard
2488 Host memory handling (extra memory saved to savestates).
2489  Host memory starts empty.
2490 \end_layout
2492 \begin_layout Subsubsection
2493 hostmemory.read(number address)
2494 \end_layout
2496 \begin_layout Standard
2497 Reads hostmemory slot address.
2498  Slot numbers out of range return false instead of numeric.
2499 \end_layout
2501 \begin_layout Subsubsection
2502 hostmemory.write(number address, number value)
2503 \end_layout
2505 \begin_layout Standard
2506 Writes hostmemory slot with 0-255.
2507  Slot numbers out of range cause extension of host memory slot space.
2508 \end_layout
2510 \begin_layout Subsubsection
2511 hostmemory.readbyte(number address)
2512 \end_layout
2514 \begin_layout Standard
2515 Read unsigned byte (1 element) from given address.
2516  Slots out of range return false.
2517 \end_layout
2519 \begin_layout Subsubsection
2520 hostmemory.writebyte(number address, number value)
2521 \end_layout
2523 \begin_layout Standard
2524 Write unsigned byte (1 element) to given slot.
2525  Slot numbers out of range cause extension.
2526 \end_layout
2528 \begin_layout Subsubsection
2529 hostmemory.readsbyte(number address)
2530 \end_layout
2532 \begin_layout Standard
2533 Read signed byte (1 element) from given address.
2534  Slots out of range return false.
2535 \end_layout
2537 \begin_layout Subsubsection
2538 hostmemory.writesbyte(number address, number value)
2539 \end_layout
2541 \begin_layout Standard
2542 Write signed byte (1 element) to given slot.
2543  Slot numbers out of range cause extension.
2544 \end_layout
2546 \begin_layout Subsubsection
2547 hostmemory.readword(number address)
2548 \end_layout
2550 \begin_layout Standard
2551 Read unsigned word (2 elements) from given address.
2552  Slots out of range return false.
2553 \end_layout
2555 \begin_layout Subsubsection
2556 hostmemory.writeword(number address, number value)
2557 \end_layout
2559 \begin_layout Standard
2560 Write unsigned word (2 elements) to given slot.
2561  Slot numbers out of range cause extension.
2562 \end_layout
2564 \begin_layout Subsubsection
2565 hostmemory.readsword(number address)
2566 \end_layout
2568 \begin_layout Standard
2569 Read signed word (2 elements) from given address.
2570  Slots out of range return false.
2571 \end_layout
2573 \begin_layout Subsubsection
2574 hostmemory.writesword(number address, number value)
2575 \end_layout
2577 \begin_layout Standard
2578 Write signed word (2 elements) to given slot.
2579  Slot numbers out of range cause extension.
2580 \end_layout
2582 \begin_layout Subsubsection
2583 hostmemory.readdword(number address)
2584 \end_layout
2586 \begin_layout Standard
2587 Read unsigned doubleword (4 elements) from given address.
2588  Slots out of range return false.
2589 \end_layout
2591 \begin_layout Subsubsection
2592 hostmemory.writedword(number address, number value)
2593 \end_layout
2595 \begin_layout Standard
2596 Write unsigned doubleword (4 elements) to given slot.
2597  Slot numbers out of range cause extension.
2598 \end_layout
2600 \begin_layout Subsubsection
2601 hostmemory.readsdword(number address)
2602 \end_layout
2604 \begin_layout Standard
2605 Read signed doubleword (4 elements) from given address.
2606  Slots out of range return false.
2607 \end_layout
2609 \begin_layout Subsubsection
2610 hostmemory.writesdword(number address, number value)
2611 \end_layout
2613 \begin_layout Standard
2614 Write signed doubleword (4 elements) to given slot.
2615  Slot numbers out of range cause extension.
2616 \end_layout
2618 \begin_layout Subsubsection
2619 hostmemory.readqword(number address)
2620 \end_layout
2622 \begin_layout Standard
2623 Read unsigned quadword (8 elements) from given address.
2624  Slots out of range return false.
2625 \end_layout
2627 \begin_layout Subsubsection
2628 hostmemory.writeqword(number address, number value)
2629 \end_layout
2631 \begin_layout Standard
2632 Write unsigned quadword (4 elements) to given slot.
2633  Slot numbers out of range cause extension.
2634 \end_layout
2636 \begin_layout Subsubsection
2637 hostmemory.readsqword(number address)
2638 \end_layout
2640 \begin_layout Standard
2641 Read signed quadword (8 elements) from given address.
2642  Slots out of range return false.
2643 \end_layout
2645 \begin_layout Subsubsection
2646 hostmemory.writesqword(number address, number value)
2647 \end_layout
2649 \begin_layout Standard
2650 Write signed quadword (8 elements) to given slot.
2651  Slot numbers out of range cause extension.
2652 \end_layout
2654 \begin_layout Subsection
2655 Table movie
2656 \end_layout
2658 \begin_layout Standard
2659 Movie handling
2660 \end_layout
2662 \begin_layout Subsubsection
2663 movie.currentframe()
2664 \end_layout
2666 \begin_layout Standard
2667 Return number of current frame.
2668 \end_layout
2670 \begin_layout Subsubsection
2671 movie.framecount()
2672 \end_layout
2674 \begin_layout Standard
2675 Return number of frames in movie.
2676 \end_layout
2678 \begin_layout Subsubsection
2679 movie.readonly()
2680 \end_layout
2682 \begin_layout Standard
2683 Return true if in readonly mode, false if in readwrite.
2684 \end_layout
2686 \begin_layout Subsubsection
2687 movie.set_readwrite()
2688 \end_layout
2690 \begin_layout Standard
2691 Set readwrite mode (does not cause on_readwrite callback).
2692 \end_layout
2694 \begin_layout Subsubsection
2695 movie.frame_subframes(number frame)
2696 \end_layout
2698 \begin_layout Standard
2699 Count number of subframes in specified frame (frame numbers are 1-based)
2700  and return that.
2701 \end_layout
2703 \begin_layout Subsubsection
2704 movie.read_subframe(number frame, number subframe)
2705 \end_layout
2707 \begin_layout Standard
2708 Read specifed subframe in specified frame and return data as array (100
2709  elements, numbered 0-99 currently).
2710 \end_layout
2712 \begin_layout Subsection
2713 Table settings
2714 \end_layout
2716 \begin_layout Standard
2717 Routines for settings manipulation
2718 \end_layout
2720 \begin_layout Subsubsection
2721 settings.get(string name)
2722 \end_layout
2724 \begin_layout Standard
2725 Get value of setting.
2726  If setting is blank, returns false.
2727  If setting value can't be obtained, returns (nil, error message).
2728 \end_layout
2730 \begin_layout Subsubsection
2731 settings.set(string name, string value)
2732 \end_layout
2734 \begin_layout Standard
2735 Set value of setting.
2736  If setting can't be set, returns (nil, error message).
2737 \end_layout
2739 \begin_layout Subsubsection
2740 settings.is_set(string name)
2741 \end_layout
2743 \begin_layout Standard
2744 Returns if setting is set.
2745  If setting does not exist, returns (nil, error message).
2746 \end_layout
2748 \begin_layout Subsubsection
2749 settings.blank(string name)
2750 \end_layout
2752 \begin_layout Standard
2753 Blanks a setting and returns true.
2754  If setting can't be blanked, returns (nil, error message).
2755 \end_layout
2757 \begin_layout Subsection
2758 Table memory
2759 \end_layout
2761 \begin_layout Standard
2762 Contains various functions for managing memory
2763 \end_layout
2765 \begin_layout Subsubsection
2766 memory.vma_count()
2767 \end_layout
2769 \begin_layout Standard
2770 Returns the number of VMAs
2771 \end_layout
2773 \begin_layout Subsubsection
2774 memory.read_vma(number index)
2775 \end_layout
2777 \begin_layout Standard
2778 Reads the specified VMA (indices start from zero).
2779  Trying to read invalid VMA gives nil.
2780  The read VMA is table with the following fields:
2781 \end_layout
2783 \begin_layout Itemize
2784 region_name (string): The readable name of the VMA
2785 \end_layout
2787 \begin_layout Itemize
2788 baseaddr (number): Base address of the VMA
2789 \end_layout
2791 \begin_layout Itemize
2792 lastaddr (number): Last address in the VMA.
2793 \end_layout
2795 \begin_layout Itemize
2796 size (number): The size of VMA in bytes.
2797 \end_layout
2799 \begin_layout Itemize
2800 readonly (boolean): True of the VMA corresponds to ROM.
2801 \end_layout
2803 \begin_layout Itemize
2804 native_endian (boolean): True if the VMA has native endian as opposed to
2805  little endian.
2806 \end_layout
2808 \begin_layout Subsubsection
2809 memory.find_vma(number address)
2810 \end_layout
2812 \begin_layout Standard
2813 Finds the VMA containing specified address.
2814  Returns table in the same format as read_vma or nil if not found.
2815 \end_layout
2817 \begin_layout Subsubsection
2818 memory.readbyte(number address)
2819 \end_layout
2821 \begin_layout Standard
2822 Reads the specified address as unsigned byte and returns the result.
2823 \end_layout
2825 \begin_layout Subsubsection
2826 memory.readsbyte(number address)
2827 \end_layout
2829 \begin_layout Standard
2830 Reads the specified address as signed byte and returns the result.
2831 \end_layout
2833 \begin_layout Subsubsection
2834 memory.writebyte(number address, number value)
2835 \end_layout
2837 \begin_layout Standard
2838 Writes the specified value (negative values undergo 2's complement) to specified
2839  address (as a byte).
2840 \end_layout
2842 \begin_layout Subsubsection
2843 memory.readword(number address)
2844 \end_layout
2846 \begin_layout Standard
2847 Reads the specified address as unsigned word and returns the result.
2848 \end_layout
2850 \begin_layout Subsubsection
2851 memory.readsword(number address)
2852 \end_layout
2854 \begin_layout Standard
2855 Reads the specified address as signed word and returns the result.
2856 \end_layout
2858 \begin_layout Subsubsection
2859 memory.writeword(number address, number value)
2860 \end_layout
2862 \begin_layout Standard
2863 Writes the specified value (negative values undergo 2's complement) to specified
2864  address (as a word).
2865 \end_layout
2867 \begin_layout Subsubsection
2868 memory.readdword(number address)
2869 \end_layout
2871 \begin_layout Standard
2872 Reads the specified address as unsigned doubleword and returns the result.
2873 \end_layout
2875 \begin_layout Subsubsection
2876 memory.readsdword(number address)
2877 \end_layout
2879 \begin_layout Standard
2880 Reads the specified address as signed doubleword and returns the result.
2881 \end_layout
2883 \begin_layout Subsubsection
2884 memory.writedword(number address, number value)
2885 \end_layout
2887 \begin_layout Standard
2888 Writes the specified value (negative values undergo 2's complement) to specified
2889  address (as a doubleword).
2890 \end_layout
2892 \begin_layout Subsubsection
2893 memory.readqword(number address)
2894 \end_layout
2896 \begin_layout Standard
2897 Reads the specified address as unsigned quadword and returns the result.
2898 \end_layout
2900 \begin_layout Subsubsection
2901 memory.readsqword(number address)
2902 \end_layout
2904 \begin_layout Standard
2905 Reads the specified address as signed quadword and returns the result.
2906 \end_layout
2908 \begin_layout Subsubsection
2909 memory.writeqword(number address, number value)
2910 \end_layout
2912 \begin_layout Standard
2913 Writes the specified value (negative values undergo 2's complement) to specified
2914  address (as a quadword).
2915 \end_layout
2917 \begin_layout Subsection
2918 Table _SYSTEM
2919 \end_layout
2921 \begin_layout Standard
2922 Contains copy of global variables from time of Lua initialization.
2923  Non-writeable.
2924 \end_layout
2926 \begin_layout Subsection
2927 Callbacks
2928 \end_layout
2930 \begin_layout Standard
2931 Various callbacks to Lua that can occur.
2932 \end_layout
2934 \begin_layout Subsubsection
2935 Callback: on_paint()
2936 \end_layout
2938 \begin_layout Standard
2939 Called when screen is being painted.
2940  Any gui.* calls requiring graphic context draw on the screen.
2941 \end_layout
2943 \begin_layout Subsubsection
2944 Callback: on_video()
2945 \end_layout
2947 \begin_layout Standard
2948 Called when video dump frame is being painted.
2949  Any gui.* calls requiring graphic context draw on the video.
2950 \end_layout
2952 \begin_layout Subsubsection
2953 Callback: on_frame()
2954 \end_layout
2956 \begin_layout Standard
2957 Called on each starting whole frame.
2958 \end_layout
2960 \begin_layout Subsubsection
2961 Callback: on_startup()
2962 \end_layout
2964 \begin_layout Standard
2965 Called when the emulator is starting (lsnes.rc and --run files has been run).
2966 \end_layout
2968 \begin_layout Subsubsection
2969 Callback: on_pre_load(string name)
2970 \end_layout
2972 \begin_layout Standard
2973 Called just before savestate/movie load occurs (note: loads are always delayed,
2974  so this occurs even when load was initiated by lua).
2975 \end_layout
2977 \begin_layout Subsubsection
2978 Callback: on_err_load(string name)
2979 \end_layout
2981 \begin_layout Standard
2982 Called if loadstate goes wrong.
2983 \end_layout
2985 \begin_layout Subsubsection
2986 Callback: on_post_load(string name, boolean was_savestate)
2987 \end_layout
2989 \begin_layout Standard
2990 Called on successful loadstate.
2991  was_savestate gives if this was a savestate or a movie.
2992 \end_layout
2994 \begin_layout Subsubsection
2995 Callback: on_pre_save(string name, boolean is_savestate)
2996 \end_layout
2998 \begin_layout Standard
2999 Called just before savestate save occurs (note: movie saves are synchronous
3000  and won't trigger these callbacks if called from Lua).
3001 \end_layout
3003 \begin_layout Subsubsection
3004 Callback: on_err_save(string name)
3005 \end_layout
3007 \begin_layout Standard
3008 Called if savestate goes wrong.
3009 \end_layout
3011 \begin_layout Subsubsection
3012 Callback: on_post_save(string name, boolean is_savestate)
3013 \end_layout
3015 \begin_layout Standard
3016 Called on successful savaestate.
3017  is_savestate gives if this was a savestate or a movie.
3018 \end_layout
3020 \begin_layout Subsubsection
3021 Callback: on_quit()
3022 \end_layout
3024 \begin_layout Standard
3025 Called when emulator is shutting down.
3026 \end_layout
3028 \begin_layout Subsubsection
3029 Callback: on_input(boolean subframe)
3030 \end_layout
3032 \begin_layout Standard
3033 Called when emulator is just sending input to bsnes core.
3034  Warning: This is called even in readonly mode, but the results are ignored.
3035 \end_layout
3037 \begin_layout Subsubsection
3038 Callback: on_reset()
3039 \end_layout
3041 \begin_layout Standard
3042 Called when SNES is reset.
3043 \end_layout
3045 \begin_layout Subsubsection
3046 Callback: on_readwrite()
3047 \end_layout
3049 \begin_layout Standard
3050 Called when moving into readwrite mode as result of 
3051 \begin_inset Quotes eld
3052 \end_inset
3054 set-rwmode
3055 \begin_inset Quotes erd
3056 \end_inset
3058  command (note: moving to rwmode by Lua won't trigger this, as per recursive
3059  entry protection).
3060 \end_layout
3062 \begin_layout Subsubsection
3063 Callback: on_snoop(number port, number controller, number index, number
3064  value)
3065 \end_layout
3067 \begin_layout Standard
3068 Called each time bsnes asks for input.
3069  The value is the final value to be sent to bsnes core (readonly mode, autohold
3070  and autofire have been taken into account).
3071  Might be useful when translating movies to format suitable for console
3072  verification.
3073  Note: There is no way to modify the value to be sent.
3074 \end_layout
3076 \begin_layout Subsubsection
3077 Callback: on_keyhook(string keyname, table state)
3078 \end_layout
3080 \begin_layout Standard
3081 Sent when key that has keyhook events requested changes state.
3082  Keyname is name of the key (group) and state is the state (same kind as
3083  table values in input.raw).
3084 \end_layout
3086 \begin_layout Section
3087 Modifier and key names:
3088 \end_layout
3090 \begin_layout Subsection
3091 SDL Platform
3092 \end_layout
3094 \begin_layout Subsubsection
3095 Modifier names
3096 \end_layout
3098 \begin_layout Standard
3099 Following modifier names are known:
3100 \end_layout
3102 \begin_layout Itemize
3103 ctrl, lctrl, rctrl: Control keys
3104 \end_layout
3106 \begin_layout Itemize
3107 alt, lalt, ralt: ALT keys.
3108 \end_layout
3110 \begin_layout Itemize
3111 shift, lshift, rshift: Shift keys.
3112 \end_layout
3114 \begin_layout Itemize
3115 meta, lmeta, rmeta: Meta keys.
3116 \end_layout
3118 \begin_layout Itemize
3119 num, caps: Numlock/Capslock (these are sticky!)
3120 \end_layout
3122 \begin_layout Itemize
3123 mode: Mode select.
3124 \end_layout
3126 \begin_layout Subsubsection
3127 Key names
3128 \end_layout
3130 \begin_layout Standard
3131 Following key names are known:
3132 \end_layout
3134 \begin_layout Itemize
3135 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
3136  hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
3137  comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
3138  less, equals, greater, question, at, leftbracket, backslash, rightbracket,
3139  caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
3140  o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
3141  world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
3142  world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
3143  world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
3144  world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
3145  world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
3146  world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
3147  world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
3148  world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
3149  world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
3150  world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
3151  world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
3152  world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
3153  kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
3154  kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
3155  pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
3156  f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
3157  lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
3158  break, menu, power, euro, undo
3159 \end_layout
3161 \begin_layout Itemize
3162 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
3163  hardware-dependent scan code of <n> (useful to bind those keys that don't
3164  have symbolic names).
3165 \end_layout
3167 \begin_layout Subsubsection
3168 Joystick pseudo-keys:
3169 \end_layout
3171 \begin_layout Itemize
3172 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
3173 \end_layout
3175 \begin_layout Itemize
3176 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
3177 \end_layout
3179 \begin_layout Itemize
3180 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
3181 \end_layout
3183 \begin_layout Itemize
3184 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
3185 \end_layout
3187 \begin_layout Itemize
3188 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
3189 \end_layout
3191 \begin_layout Itemize
3192 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
3193  position (axis modes axis and axis_inverse).
3194 \end_layout
3196 \begin_layout Itemize
3197 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
3198  position (axis modes axis and axis_inverse).
3199 \end_layout
3201 \begin_layout Itemize
3202 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
3203  modes pressure_*).
3204 \end_layout
3206 \begin_layout Subsubsection
3207 Special buttons:
3208 \end_layout
3210 \begin_layout Itemize
3211 Escape: Enter/Exit Command mode, cancel modal dialogs.
3212 \end_layout
3214 \begin_layout Itemize
3215 Return (also KPEnter): Execute command, ok modal dialog.
3216 \end_layout
3218 \begin_layout Itemize
3219 Pgup/Up (also KP8/9 if no num lock; command mode): Previous command in command
3220  history
3221 \end_layout
3223 \begin_layout Itemize
3224 Pgdn/Down(also KP2/3 if no num lock; command mode): Next command in command
3225  history
3226 \end_layout
3228 \begin_layout Itemize
3229 Home (also KP7 if no num lock; command mode): Beginning of command.
3230 \end_layout
3232 \begin_layout Itemize
3233 End (also KP1 if no num lock; command mode): End of command.
3234 \end_layout
3236 \begin_layout Itemize
3237 Left (also KP4 if no num lock; command mode): Move cursor left.
3238 \end_layout
3240 \begin_layout Itemize
3241 Right (also KP6 if no num lock; command mode): Move cursor right.
3242 \end_layout
3244 \begin_layout Itemize
3245 Delete (also KP.
3246  if no num lock; command mode): Delete character to right of cursor.
3247 \end_layout
3249 \begin_layout Itemize
3250 Insert (also KP0 if no num lock; command mode): Toggle between insert /
3251  overwrite modes.
3252 \end_layout
3254 \begin_layout Itemize
3255 Backspace (command mode): Delete character to left of cursor.
3256 \end_layout
3258 \begin_layout Itemize
3259 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
3260 \end_layout
3262 \begin_layout Subsection
3263 wxWidgets platform
3264 \end_layout
3266 \begin_layout Subsubsection
3267 Modifier names:
3268 \end_layout
3270 \begin_layout Standard
3271 Following modifier names are known:
3272 \end_layout
3274 \begin_layout Itemize
3276 \end_layout
3278 \begin_layout Itemize
3279 ctrl
3280 \end_layout
3282 \begin_layout Itemize
3283 shift 
3284 \end_layout
3286 \begin_layout Itemize
3287 meta
3288 \end_layout
3290 \begin_layout Itemize
3291 cmd (Mac OS X only)
3292 \end_layout
3294 \begin_layout Subsubsection
3295 Key names:
3296 \end_layout
3298 \begin_layout Standard
3299 Following key names are known:
3300 \end_layout
3302 \begin_layout Itemize
3303 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
3304  ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
3305  period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
3306  greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3307  q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
3308  underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3309  q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
3310  start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
3311  pause, capital, end, home, lefT, up, right, down, select, print, execute,
3312  snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
3313  numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
3314  decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
3315  f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
3316  pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
3317  numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
3318  numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
3319  numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
3320  numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
3321  windows_right, windows_menu, command, special1, special2, special3, special4,
3322  special5, special6, special7, special8, special9, special10, special11,
3323  special12, special13, special14, special15, special16, special17, special18,
3324  special19, special20
3325 \end_layout
3327 \begin_layout Section
3328 Movie file format
3329 \end_layout
3331 \begin_layout Standard
3332 Movie file is .zip archive in itself, normal ZIP archive tools work on it
3333  (note: If you recompress it, do not use compression methods other than
3334  store and deflate and especially do not use encryption of any kind).
3335 \end_layout
3337 \begin_layout Subsection
3338 Detecting clean start/SRAM/Savestate
3339 \end_layout
3341 \begin_layout Itemize
3342 If file has member 
3343 \begin_inset Quotes eld
3344 \end_inset
3346 savestate
3347 \begin_inset Quotes erd
3348 \end_inset
3350  it is savestate, otherwise:
3351 \end_layout
3353 \begin_layout Itemize
3354 If file has members with names starting 
3355 \begin_inset Quotes eld
3356 \end_inset
3358 moviesram.
3359 \begin_inset Quotes erd
3360 \end_inset
3362  it is movie starting from SRAM, otherwise:
3363 \end_layout
3365 \begin_layout Itemize
3366 It is movie starting from clear state.
3367 \end_layout
3369 \begin_layout Subsection
3370 Member: gametype
3371 \end_layout
3373 \begin_layout Standard
3374 Type of game ROM and region (as one line).
3375  Valid values are:
3376 \end_layout
3378 \begin_layout Standard
3379 \begin_inset Tabular
3380 <lyxtabular version="3" rows="8" columns="3">
3381 <features tabularvalignment="middle">
3382 <column alignment="center" valignment="top" width="0">
3383 <column alignment="center" valignment="top" width="0">
3384 <column alignment="center" valignment="top" width="0">
3385 <row>
3386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3387 \begin_inset Text
3389 \begin_layout Plain Layout
3390 Value
3391 \end_layout
3393 \end_inset
3394 </cell>
3395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3396 \begin_inset Text
3398 \begin_layout Plain Layout
3399 System
3400 \end_layout
3402 \end_inset
3403 </cell>
3404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3405 \begin_inset Text
3407 \begin_layout Plain Layout
3408 Region
3409 \end_layout
3411 \end_inset
3412 </cell>
3413 </row>
3414 <row>
3415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3416 \begin_inset Text
3418 \begin_layout Plain Layout
3419 snes_pal
3420 \end_layout
3422 \end_inset
3423 </cell>
3424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3425 \begin_inset Text
3427 \begin_layout Plain Layout
3428 Super NES
3429 \end_layout
3431 \end_inset
3432 </cell>
3433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3434 \begin_inset Text
3436 \begin_layout Plain Layout
3438 \end_layout
3440 \end_inset
3441 </cell>
3442 </row>
3443 <row>
3444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3445 \begin_inset Text
3447 \begin_layout Plain Layout
3448 sgb_pal
3449 \end_layout
3451 \end_inset
3452 </cell>
3453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3454 \begin_inset Text
3456 \begin_layout Plain Layout
3457 Super Game Boy
3458 \end_layout
3460 \end_inset
3461 </cell>
3462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3463 \begin_inset Text
3465 \begin_layout Plain Layout
3467 \end_layout
3469 \end_inset
3470 </cell>
3471 </row>
3472 <row>
3473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3474 \begin_inset Text
3476 \begin_layout Plain Layout
3477 snes_ntsc
3478 \end_layout
3480 \end_inset
3481 </cell>
3482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3483 \begin_inset Text
3485 \begin_layout Plain Layout
3486 Super NES
3487 \end_layout
3489 \end_inset
3490 </cell>
3491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3492 \begin_inset Text
3494 \begin_layout Plain Layout
3495 NTSC
3496 \end_layout
3498 \end_inset
3499 </cell>
3500 </row>
3501 <row>
3502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3503 \begin_inset Text
3505 \begin_layout Plain Layout
3506 sgb_ntsc
3507 \end_layout
3509 \end_inset
3510 </cell>
3511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3512 \begin_inset Text
3514 \begin_layout Plain Layout
3515 Super Game Boy
3516 \end_layout
3518 \end_inset
3519 </cell>
3520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3521 \begin_inset Text
3523 \begin_layout Plain Layout
3524 NTSC
3525 \end_layout
3527 \end_inset
3528 </cell>
3529 </row>
3530 <row>
3531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3532 \begin_inset Text
3534 \begin_layout Plain Layout
3536 \end_layout
3538 \end_inset
3539 </cell>
3540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3541 \begin_inset Text
3543 \begin_layout Plain Layout
3544 BS-X (non-slotted)
3545 \end_layout
3547 \end_inset
3548 </cell>
3549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3550 \begin_inset Text
3552 \begin_layout Plain Layout
3553 NTSC
3554 \end_layout
3556 \end_inset
3557 </cell>
3558 </row>
3559 <row>
3560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3561 \begin_inset Text
3563 \begin_layout Plain Layout
3564 bsxslotted
3565 \end_layout
3567 \end_inset
3568 </cell>
3569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3570 \begin_inset Text
3572 \begin_layout Plain Layout
3573 BS-X (slotted)
3574 \end_layout
3576 \end_inset
3577 </cell>
3578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3579 \begin_inset Text
3581 \begin_layout Plain Layout
3582 NTSC
3583 \end_layout
3585 \end_inset
3586 </cell>
3587 </row>
3588 <row>
3589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3590 \begin_inset Text
3592 \begin_layout Plain Layout
3593 sufamiturbo
3594 \end_layout
3596 \end_inset
3597 </cell>
3598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3599 \begin_inset Text
3601 \begin_layout Plain Layout
3602 Sufami Turbo
3603 \end_layout
3605 \end_inset
3606 </cell>
3607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3608 \begin_inset Text
3610 \begin_layout Plain Layout
3611 NTSC
3612 \end_layout
3614 \end_inset
3615 </cell>
3616 </row>
3617 </lyxtabular>
3619 \end_inset
3622 \end_layout
3624 \begin_layout Standard
3625 Frame rates are:
3626 \end_layout
3628 \begin_layout Standard
3629 \begin_inset Tabular
3630 <lyxtabular version="3" rows="3" columns="2">
3631 <features tabularvalignment="middle">
3632 <column alignment="center" valignment="top" width="0">
3633 <column alignment="center" valignment="top" width="0">
3634 <row>
3635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3636 \begin_inset Text
3638 \begin_layout Plain Layout
3639 Region
3640 \end_layout
3642 \end_inset
3643 </cell>
3644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3645 \begin_inset Text
3647 \begin_layout Plain Layout
3648 Framerate (fps)
3649 \end_layout
3651 \end_inset
3652 </cell>
3653 </row>
3654 <row>
3655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3656 \begin_inset Text
3658 \begin_layout Plain Layout
3660 \end_layout
3662 \end_inset
3663 </cell>
3664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3665 \begin_inset Text
3667 \begin_layout Plain Layout
3668 322445/6448
3669 \end_layout
3671 \end_inset
3672 </cell>
3673 </row>
3674 <row>
3675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3676 \begin_inset Text
3678 \begin_layout Plain Layout
3679 NTSC
3680 \end_layout
3682 \end_inset
3683 </cell>
3684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3685 \begin_inset Text
3687 \begin_layout Plain Layout
3688 10738636/178683
3689 \end_layout
3691 \end_inset
3692 </cell>
3693 </row>
3694 </lyxtabular>
3696 \end_inset
3699 \end_layout
3701 \begin_layout Subsection
3702 Member: port1
3703 \end_layout
3705 \begin_layout Standard
3706 Contains type of port #1 (as one line).
3707  Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
3708  If not present, defaults to 'gamepad'.
3709 \end_layout
3711 \begin_layout Subsection
3712 Member: port2
3713 \end_layout
3715 \begin_layout Standard
3716 Contains type of port #2 (as one line).
3717  Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
3718  'justifier' and 'justifiers'.
3719  If not present, defaults to 'none'.
3720 \end_layout
3722 \begin_layout Subsection
3723 Member: gamename
3724 \end_layout
3726 \begin_layout Standard
3727 Contains name of the game (as one line).
3728 \end_layout
3730 \begin_layout Subsection
3731 Member: authors
3732 \end_layout
3734 \begin_layout Standard
3735 Contains authors, one per line.
3736  Part before '|' is the full name, part after is the nickname.
3737 \end_layout
3739 \begin_layout Subsection
3740 Member: systemid
3741 \end_layout
3743 \begin_layout Standard
3744 Always 
3745 \begin_inset Quotes eld
3746 \end_inset
3748 lsnes-rr1
3749 \begin_inset Quotes erd
3750 \end_inset
3752  (one line).
3753  Used to reject other saves.
3754 \end_layout
3756 \begin_layout Subsection
3757 Member: controlsversion
3758 \end_layout
3760 \begin_layout Standard
3761 Always 
3762 \begin_inset Quotes eld
3763 \end_inset
3766 \begin_inset Quotes erd
3767 \end_inset
3769  (one line).
3770  Used to identify what controls are there.
3771 \end_layout
3773 \begin_layout Subsection
3774 Member: 
3775 \begin_inset Quotes eld
3776 \end_inset
3778 coreversion
3779 \begin_inset Quotes erd
3780 \end_inset
3783 \end_layout
3785 \begin_layout Standard
3786 Contains bsnes core version number (as one line).
3787 \end_layout
3789 \begin_layout Subsection
3790 Member: projectid
3791 \end_layout
3793 \begin_layout Standard
3794 Contains project ID (as one line).
3795  Used to identify if two movies are part of the same project.
3796 \end_layout
3798 \begin_layout Subsection
3799 Member: {rom,slota,slotb}{,xml}.sha256
3800 \end_layout
3802 \begin_layout Standard
3803 Contains SHA-256 of said ROM or ROM mapping file (as one line).
3804  Absent if corresponding file is absent.
3805 \end_layout
3807 \begin_layout Subsection
3808 Member: moviesram.<name>
3809 \end_layout
3811 \begin_layout Standard
3812 Raw binary startup SRAM of kind <name>.
3813  Only present in savestates and movies starting from SRAM.
3814 \end_layout
3816 \begin_layout Subsection
3817 Member: saveframe
3818 \end_layout
3820 \begin_layout Standard
3821 Contains frame number (as one line) of frame movie was saved on.
3822  Only present in savestates.
3823 \end_layout
3825 \begin_layout Subsection
3826 Member: lagcounter
3827 \end_layout
3829 \begin_layout Standard
3830 Current value of lag counter (as one line).
3831  Only present in savestates.
3832 \end_layout
3834 \begin_layout Subsection
3835 Member: pollcounters
3836 \end_layout
3838 \begin_layout Standard
3839 Contains poll counters (currently 100 of them), one per line.
3840  Each line is raw poll count if DRDY is set for it.
3841  Otherwise it is negative poll count minus one.
3842  Only present in savestates.
3843 \end_layout
3845 \begin_layout Subsection
3846 Member: hostmemory
3847 \end_layout
3849 \begin_layout Standard
3850 Raw binary dump of host memory.
3851  Only present in savestates.
3852 \end_layout
3854 \begin_layout Subsection
3855 Member: savestate
3856 \end_layout
3858 \begin_layout Standard
3859 The raw binary savestate itself.
3860  Savestate detection uses this file, only present in savestates.
3861 \end_layout
3863 \begin_layout Subsection
3864 Member: screenshot
3865 \end_layout
3867 \begin_layout Standard
3868 Screenshot of current frame.
3869  Only present in savestates.
3870  First 2 bytes are big-endian width of image, rest are 24-bit RGB image
3871  data.
3872  Height of image is inferred from the width and size of data.
3873 \end_layout
3875 \begin_layout Subsection
3876 Member: sram.<name>
3877 \end_layout
3879 \begin_layout Standard
3880 Raw binary SRAM of kind <name> at time of savestate.
3881  Only present in savestates.
3882 \end_layout
3884 \begin_layout Subsection
3885 Member: input
3886 \end_layout
3888 \begin_layout Standard
3889 The actual input track, one line per subframe (blank lines are skipped).
3890 \end_layout
3892 \begin_layout Itemize
3893 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
3894  part of same frame as previous, otherwise it starts a new frame.
3895 \end_layout
3897 \begin_layout Itemize
3898 First subframe must start a new frame.
3899 \end_layout
3901 \begin_layout Standard
3902 Length of movie in frames is number of lines in input file that start a
3903  new frame.
3904 \end_layout
3906 \begin_layout Subsection
3907 Member: rerecords
3908 \end_layout
3910 \begin_layout Standard
3911 Contains textual base-10 rerecord count (as one line; emulator just writes
3912  this, it doesn't read it) + 1.
3913 \end_layout
3915 \begin_layout Subsection
3916 Member: rrdata
3917 \end_layout
3919 \begin_layout Standard
3920 This member stores set of load IDs.
3921  There is one load ID per rerecord (plus one corresponding to start of project).
3922 \end_layout
3924 \begin_layout Itemize
3925 This member constists of concatenation of records
3926 \end_layout
3928 \begin_layout Itemize
3929 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
3930  IDs.
3931 \end_layout
3933 \begin_layout Itemize
3934 IDs are interpretted as 256-bit big-endian integers with warparound.
3935 \end_layout
3937 \begin_layout Itemize
3938 Initial predicted ID is all zeroes.
3939 \end_layout
3941 \begin_layout Standard
3942 Format of each record is:
3943 \end_layout
3945 \begin_layout Itemize
3946 1 byte: Opcode byte.
3947  Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
3948  Bit 7 is unused.
3949 \end_layout
3951 \begin_layout Itemize
3952 32-prefixlen bytes of ID.
3953 \end_layout
3955 \begin_layout Itemize
3956 countlen bytes of big-endian count (count).
3957 \end_layout
3959 \begin_layout Standard
3960 Records are processed as follows:
3961 \end_layout
3963 \begin_layout Itemize
3964 To form the first ID encoded by record, take the first prefixlen bytes predicted
3965  ID and append the read ID value to it.
3966  The result is the first ID encoded.
3967 \end_layout
3969 \begin_layout Itemize
3970 If countlen is 0, record encodes 1 ID.
3971 \end_layout
3973 \begin_layout Itemize
3974 If countlen is 1, record encodes 2+count IDs.
3975 \end_layout
3977 \begin_layout Itemize
3978 If countlen is 2, record encodes 258+count IDs.
3979 \end_layout
3981 \begin_layout Itemize
3982 If countlen is 3, record encodes 65794+count IDs.
3983 \end_layout
3985 \begin_layout Itemize
3986 The new predicted ID is the next ID after last one encoded by the record.
3987 \end_layout
3989 \begin_layout Standard
3990 The number of rerecords + 1 is equal to the sum of number of IDs encoded
3991  by all records.
3992 \end_layout
3994 \begin_layout Subsection
3995 Member: starttime.second
3996 \end_layout
3998 \begin_layout Standard
3999 Movie starting time, second part.
4000  Epoch is Unix epoch.
4001  Default is 1,000,000,000.
4002 \end_layout
4004 \begin_layout Subsection
4005 Member: starttime.subsecond
4006 \end_layout
4008 \begin_layout Standard
4009 Movie starting time, subsecond part.
4010  Unit is CPU clocks.
4011  Default is 0.
4012 \end_layout
4014 \begin_layout Subsection
4015 Member: savetime.second
4016 \end_layout
4018 \begin_layout Standard
4019 Movie saving time, second part.
4020  Default is starttime.second.
4021  Only present in savestates.
4022 \end_layout
4024 \begin_layout Subsection
4025 Member: savetime.subsecond
4026 \end_layout
4028 \begin_layout Standard
4029 Movie saving time, subsecond part.
4030  Default is starttime.subsecond.
4031  Only present in savestates.
4032 \end_layout
4034 \begin_layout Section
4035 Quick'n'dirty encode guide
4036 \end_layout
4038 \begin_layout Enumerate
4039 Start the emulator and load the movie file.
4040 \end_layout
4042 \begin_layout Enumerate
4043 Set large AVI option 'set-setting avi-large on'
4044 \end_layout
4046 \begin_layout Enumerate
4047 Enable dumping 'dump-avi tmpdump' 
4048 \end_layout
4050 \begin_layout Enumerate
4051 Unpause and let it run until you want to end dumping.
4052 \end_layout
4054 \begin_layout Enumerate
4055 Close the emulator (closing the window is the easiest way).
4056  Or use 'end-avi'.
4057 \end_layout
4059 \begin_layout Enumerate
4060 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
4061  -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
4062 \end_layout
4064 \begin_layout Enumerate
4065 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
4066 \end_layout
4068 \begin_layout Enumerate
4069 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
4070  + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
4071 \end_layout
4073 \begin_layout Enumerate
4074 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
4075  Now final.mkv contains quick'n'dirty encode.
4076 \end_layout
4078 \begin_layout Section
4079 Axis configurations for some gamepad types:
4080 \end_layout
4082 \begin_layout Subsection
4083 XBox360 controller:
4084 \end_layout
4086 \begin_layout Standard
4087 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
4088 \end_layout
4090 \begin_layout LyX-Code
4091 set-axis joystick0axis2 pressure-+
4092 \end_layout
4094 \begin_layout LyX-Code
4095 set-axis joystick0axis5 pressure-+
4096 \end_layout
4098 \begin_layout Itemize
4099 This is needed for SDL only.
4100  EVDEV sets those types correctly.
4101 \end_layout
4103 \begin_layout Subsection
4104 PS3 
4105 \begin_inset Quotes eld
4106 \end_inset
4108 sixaxis
4109 \begin_inset Quotes erd
4110 \end_inset
4112  controller:
4113 \end_layout
4115 \begin_layout Standard
4116 Axes 8-19 should be disabled.
4117 \end_layout
4119 \begin_layout LyX-Code
4120 set-axis joystick0axis8 disabled
4121 \end_layout
4123 \begin_layout LyX-Code
4124 set-axis joystick0axis9 disabled
4125 \end_layout
4127 \begin_layout LyX-Code
4128 set-axis joystick0axis10 disabled
4129 \end_layout
4131 \begin_layout LyX-Code
4132 set-axis joystick0axis11 disabled
4133 \end_layout
4135 \begin_layout LyX-Code
4136 set-axis joystick0axis12 disabled
4137 \end_layout
4139 \begin_layout LyX-Code
4140 set-axis joystick0axis13 disabled
4141 \end_layout
4143 \begin_layout LyX-Code
4144 set-axis joystick0axis14 disabled
4145 \end_layout
4147 \begin_layout LyX-Code
4148 set-axis joystick0axis15 disabled
4149 \end_layout
4151 \begin_layout LyX-Code
4152 set-axis joystick0axis16 disabled
4153 \end_layout
4155 \begin_layout LyX-Code
4156 set-axis joystick0axis17 disabled
4157 \end_layout
4159 \begin_layout LyX-Code
4160 set-axis joystick0axis18 disabled
4161 \end_layout
4163 \begin_layout LyX-Code
4164 set-axis joystick0axis19 disabled
4165 \end_layout
4167 \begin_layout Section
4168 Errata:
4169 \end_layout
4171 \begin_layout Subsection
4172 Problems from BSNES core:
4173 \end_layout
4175 \begin_layout Itemize
4176 The whole pending save stuff.
4177 \end_layout
4179 \begin_layout Itemize
4180 Lack of layer hiding.
4181 \end_layout
4183 \begin_layout Itemize
4184 It is slow (especially accuracy).
4185 \end_layout
4187 \begin_layout Itemize
4188 Firmwares can't be loaded from ZIP archives.
4189 \end_layout
4191 \begin_layout Subsection
4192 Other problems:
4193 \end_layout
4195 \begin_layout Itemize
4196 Modifiers don't work with pseudo-keys (SDL, EVDEV).
4197 \end_layout
4199 \begin_layout Itemize
4200 Audio for last dumped frame is not itself dumped.
4201 \end_layout
4203 \begin_layout Itemize
4204 Audio in UI is pretty bad in quality if game doesn't run at full speed.
4205 \end_layout
4207 \begin_layout Itemize
4208 AVI compression levels 10-18 are not compatible with AVISynth AVISource.
4209 \end_layout
4211 \begin_layout Itemize
4212 No menus, command based interface (SDL).
4213 \end_layout
4215 \begin_layout Itemize
4216 Long commands don't scroll.
4217 \end_layout
4219 \begin_layout Itemize
4220 The SDL screen drawing is slow.
4221 \end_layout
4223 \begin_layout Itemize
4224 Wxwidgets UI is still pretty buggy.
4225 \end_layout
4227 \begin_layout Section
4228 Changelog:
4229 \end_layout
4231 \begin_layout Subsection
4232 rr0-beta1
4233 \end_layout
4235 \begin_layout Itemize
4236 Fix -Wall warnings
4237 \end_layout
4239 \begin_layout Itemize
4240 Fix dumper video corruption with levels 10-18.
4241 \end_layout
4243 \begin_layout Subsection
4244 rr0-beta2
4245 \end_layout
4247 \begin_layout Itemize
4248 Autofire
4249 \end_layout
4251 \begin_layout Itemize
4252 Lots of code cleanups
4253 \end_layout
4255 \begin_layout Itemize
4256 Lua interface to settings
4257 \end_layout
4259 \begin_layout Itemize
4260 Allow specifying AVI borders without Lua
4261 \end_layout
4263 \begin_layout Itemize
4264 Fix scaling if vscale > 1 and originx > 0 (left border exists)
4265 \end_layout
4267 \begin_layout Itemize
4268 on_snoop lua callback
4269 \end_layout
4271 \begin_layout Itemize
4272 Faster movie loading and saving.
4273 \end_layout
4275 \begin_layout Subsection
4276 rr0-beta3
4277 \end_layout
4279 \begin_layout Itemize
4280 Joystick support
4281 \end_layout
4283 \begin_layout Subsection
4284 rr0-beta4
4285 \end_layout
4287 \begin_layout Itemize
4288 Fix multi-buttons
4289 \end_layout
4291 \begin_layout Itemize
4292 Save jukebox functionality.
4293 \end_layout
4295 \begin_layout Subsection
4296 rr0-beta5
4297 \end_layout
4299 \begin_layout Itemize
4300 Try to fix some nasty failing movie load edge cases
4301 \end_layout
4303 \begin_layout Itemize
4304 Allow specifying scripts to run on command line.
4305 \end_layout
4307 \begin_layout Subsection
4308 rr0-beta6
4309 \end_layout
4311 \begin_layout Itemize
4312 Major source code reorganization.
4313 \end_layout
4315 \begin_layout Itemize
4316 Backup savestates before overwriting.
4317 \end_layout
4319 \begin_layout Itemize
4320 Don't crash if loading initial state fails.
4321 \end_layout
4323 \begin_layout Subsection
4324 rr0-beta7
4325 \end_layout
4327 \begin_layout Itemize
4328 Fix firmware lookup
4329 \end_layout
4331 \begin_layout Itemize
4332 Fix author name parsing
4333 \end_layout
4335 \begin_layout Itemize
4336 Fix rerecord counting
4337 \end_layout
4339 \begin_layout Itemize
4340 (SDL) Print messages to console if SDL is uninitialized
4341 \end_layout
4343 \begin_layout Itemize
4344 Add movieinfo program
4345 \end_layout
4347 \begin_layout Itemize
4348 Fix loading movies starting from SRAM.
4349 \end_layout
4351 \begin_layout Subsection
4352 rr0-beta8
4353 \end_layout
4355 \begin_layout Itemize
4356 Add support for unattended dumping
4357 \end_layout
4359 \begin_layout Itemize
4360 Fix compiling for Win32
4361 \end_layout
4363 \begin_layout Itemize
4364 Don't lock up if sound can't be initialized
4365 \end_layout
4367 \begin_layout Itemize
4368 Strip trailing CR from commands
4369 \end_layout
4371 \begin_layout Itemize
4372 Don't try to do dubious things in global ctors (fix crash on startup)
4373 \end_layout
4375 \begin_layout Subsection
4376 rr0-beta9
4377 \end_layout
4379 \begin_layout Itemize
4380 Small documentation tweaking
4381 \end_layout
4383 \begin_layout Itemize
4384 Fix make clean
4385 \end_layout
4387 \begin_layout Itemize
4388 Fix major bug in modifier matching
4389 \end_layout
4391 \begin_layout Subsection
4392 rr0-beta10
4393 \end_layout
4395 \begin_layout Itemize
4396 Lots of documentation fixes
4397 \end_layout
4399 \begin_layout Itemize
4400 Use dedicated callbacks for event backcomm., not commands.
4401 \end_layout
4403 \begin_layout Itemize
4404 Ensure that the watchdog is not hit when executing delayed reset.
4405 \end_layout
4407 \begin_layout Itemize
4408 Remove errant tab from joystick message.
4409 \end_layout
4411 \begin_layout Subsection
4412 rr0-beta11
4413 \end_layout
4415 \begin_layout Itemize
4416 Make autofire operate in absolute time, not linear time
4417 \end_layout
4419 \begin_layout Itemize
4420 Reinitialize controls when resuming from loadstate
4421 \end_layout
4423 \begin_layout Itemize
4424 Some more code cleanups
4425 \end_layout
4427 \begin_layout Itemize
4428 If Lua allocator fails, call OOM_panic()
4429 \end_layout
4431 \begin_layout Itemize
4432 Byte/word/dword/qword sized host memory write/read functions.
4433 \end_layout
4435 \begin_layout Itemize
4436 Dump at correct framerate if dumping interlaced NTSC (height=448).
4437 \end_layout
4439 \begin_layout Subsection
4440 rr0-beta12
4441 \end_layout
4443 \begin_layout Itemize
4444 Actually include the complete source code
4445 \end_layout
4447 \begin_layout Itemize
4448 Keep track of RTC
4449 \end_layout
4451 \begin_layout Subsection
4452 rr0-beta13
4453 \end_layout
4455 \begin_layout Itemize
4456 Document {save,start}time.{,sub}second.
4457 \end_layout
4459 \begin_layout Itemize
4460 Intercept time() from bsnes core.
4461 \end_layout
4463 \begin_layout Subsection
4464 rr0-beta14
4465 \end_layout
4467 \begin_layout Itemize
4468 Allow disabling time() interception (allow build on Mac OS X)
4469 \end_layout
4471 \begin_layout Itemize
4472 Use SDLMain on Mac OS X (make SDL not crash)
4473 \end_layout
4475 \begin_layout Itemize
4476 Disable delayed resets (just plain too buggy for now).
4477 \end_layout
4479 \begin_layout Itemize
4480 Code cleanups
4481 \end_layout
4483 \begin_layout Itemize
4484 Use 16-bit for graphics/video instead of 32-bit.
4485 \end_layout
4487 \begin_layout Itemize
4488 gui.rectangle/gui.pixel
4489 \end_layout
4491 \begin_layout Itemize
4492 gui.crosshair
4493 \end_layout
4495 \begin_layout Itemize
4496 New CSCD writer implementation.
4497 \end_layout
4499 \begin_layout Subsection
4500 rr0-beta15
4501 \end_layout
4503 \begin_layout Itemize
4504 Fix interaction of * and +.
4505 \end_layout
4507 \begin_layout Itemize
4508 Manual improvements
4509 \end_layout
4511 \begin_layout Itemize
4512 Use gettimeofday()/usleep(), these seem portable enough.
4513 \end_layout
4515 \begin_layout Itemize
4516 Move joystick axis manipulation to keymapper code.
4517 \end_layout
4519 \begin_layout Itemize
4520 Changes to how read-only works.
4521 \end_layout
4523 \begin_layout Itemize
4524 Refactor controller input code.
4525 \end_layout
4527 \begin_layout Subsection
4528 rr0-beta16
4529 \end_layout
4531 \begin_layout Itemize
4532 Fix mouseclick scale compensation.
4533 \end_layout
4535 \begin_layout Itemize
4536 Draw area boundaries correctly in SDL code.
4537 \end_layout
4539 \begin_layout Itemize
4540 gui.screenshot.
4541 \end_layout
4543 \begin_layout Itemize
4544 Fix CSCD output (buffer overrun and race condition).
4545 \end_layout
4547 \begin_layout Subsection
4548 rr0-beta17
4549 \end_layout
4551 \begin_layout Itemize
4552 JMD dumping support.
4553 \end_layout
4555 \begin_layout Itemize
4556 Allow unattended dumping to JMD.
4557 \end_layout
4559 \begin_layout Itemize
4560 Move to BSNES v083.
4561 \end_layout
4563 \begin_layout Itemize
4564 Switch back to 32-bit colors.
4565 \end_layout
4567 \begin_layout Itemize
4568 Add Lua function gui.color.
4569 \end_layout
4571 \begin_layout Itemize
4572 Use some new C++11 features in GCC 4.6.
4573 \end_layout
4575 \begin_layout Itemize
4576 Be prepared for core frequency changes.
4577 \end_layout
4579 \begin_layout Itemize
4580 Pass colors in one chunk from Lua.
4581 \end_layout
4583 \begin_layout Subsection
4584 rr0-beta18
4585 \end_layout
4587 \begin_layout Itemize
4588 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
4589  memory.read_vma() and memory.find_vma().
4590 \end_layout
4592 \begin_layout Itemize
4593 Numerious documentation fixups
4594 \end_layout
4596 \begin_layout Itemize
4597 RTC time format changed
4598 \end_layout
4600 \begin_layout Itemize
4601 Reformat flags display
4602 \end_layout
4604 \begin_layout Itemize
4605 Allow lua package name to be overridden
4606 \end_layout
4608 \begin_layout Itemize
4609 SDUMP (high-quality dumping).
4610 \end_layout
4612 \begin_layout Itemize
4613 Split platform support to plugins.
4614 \end_layout
4616 \begin_layout Itemize
4617 Make all sound plugins support basic sound commands
4618 \end_layout
4620 \begin_layout Itemize
4621 Support portaudio for sound.
4622 \end_layout
4624 \begin_layout Itemize
4625 Allow disable Lua/SDL searching.
4626 \end_layout
4628 \begin_layout Itemize
4629 Upconvert colors when copying lcscreen to screen.
4630 \end_layout
4632 \begin_layout Itemize
4633 Reorganize source tree.
4634 \end_layout
4636 \begin_layout Itemize
4637 Evdev joystick support.
4638 \end_layout
4640 \begin_layout Itemize
4641 Refactor more code into generic window code.
4642 \end_layout
4644 \begin_layout Subsection
4645 rr0-beta19
4646 \end_layout
4648 \begin_layout Itemize
4649 Refactor message handling.
4650 \end_layout
4652 \begin_layout Itemize
4653 Rework makefile
4654 \end_layout
4656 \begin_layout Itemize
4657 Documentation fixes
4658 \end_layout
4660 \begin_layout Itemize
4661 Finish pending saves before load/quit.
4662 \end_layout
4664 \begin_layout Itemize
4665 Wxwidgets graphics plugin.
4666 \end_layout
4668 \begin_layout Subsection
4669 rr0-beta20
4670 \end_layout
4672 \begin_layout Itemize
4673 Get rid of win32-crap.[ch]pp.
4674 \end_layout
4676 \begin_layout Itemize
4677 Move files around a lot.
4678 \end_layout
4680 \begin_layout Itemize
4681 Get rid of need for host C++ compiler.
4682 \end_layout
4684 \begin_layout Itemize
4685 Bsnes v084 core.
4686 \end_layout
4688 \begin_layout Itemize
4689 Refactor inter-component communication.
4690 \end_layout
4692 \begin_layout Itemize
4693 Fix zero luma.
4694 \end_layout
4696 \begin_layout Itemize
4697 Fix crash on multiline aliases.
4698 \end_layout
4700 \begin_layout Itemize
4701 Load/Save settings in wxwidgets gui.
4702 \end_layout
4704 \begin_layout Subsection
4705 rr0-beta21
4706 \end_layout
4708 \begin_layout Itemize
4709 Patch problems in bsnes core
4710 \end_layout
4712 \begin_layout Itemize
4713 SNES is little-endian, not big-endian!
4714 \end_layout
4716 \begin_layout Itemize
4717 Fix memory corruption in lcscreen::load()
4718 \end_layout
4720 \begin_layout Subsection
4721 rr0-beta22
4722 \end_layout
4724 \begin_layout Itemize
4725 Fix interpretting repeat counts in rrdata loading.
4726 \end_layout
4728 \begin_layout Itemize
4729 New lua callback: on_frame()
4730 \end_layout
4732 \begin_layout Itemize
4733 Remove calls to runtosave() that aren't supposed to be there
4734 \end_layout
4736 \begin_layout Itemize
4737 Lua function: movie.read_rtc()
4738 \end_layout
4740 \begin_layout Itemize
4741 Ignore src/fonts/font.cpp
4742 \end_layout
4744 \begin_layout Itemize
4745 Fix more bsnes core problems
4746 \end_layout
4748 \begin_layout Itemize
4749 Control bsnes random seeding
4750 \end_layout
4752 \begin_layout Itemize
4753 Pause-on-end
4754 \end_layout
4756 \begin_layout Itemize
4757 Some bsnes core debugging features (state dump and state hash)
4758 \end_layout
4760 \begin_layout Itemize
4761 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
4762  it was 'lsnes rr0-beta21').
4763 \end_layout
4765 \begin_layout Subsection
4766 rr0-beta23
4767 \end_layout
4769 \begin_layout Itemize
4770 Fix memory corruption due to macro/field mixup
4771 \end_layout
4773 \begin_layout Itemize
4774 search-memory update
4775 \end_layout
4777 \begin_layout Itemize
4778 Allow direct-mapped framebuffer
4779 \end_layout
4781 \begin_layout Itemize
4782 SDL: Use SDL_ANYFORMAT if possible
4783 \end_layout
4785 \begin_layout Itemize
4786 SDMP2SOX: 2s delay modes.
4787 \end_layout
4789 \begin_layout Itemize
4790 Wxwidgets: Cleanups
4791 \end_layout
4793 \begin_layout Itemize
4794 Use sed -E, not sed -r.
4795  Fixes building on Mac OS X.
4796 \end_layout
4798 \begin_layout Itemize
4799 Wxwidgets: Save jukebox on exit
4800 \end_layout
4802 \begin_layout Itemize
4803 Fix RTC if using load-movie on savestate.
4804 \end_layout
4806 \begin_layout Itemize
4807 Fix crash related to full console mode.
4808 \end_layout
4810 \begin_layout Subsection
4811 rr0-beta24
4812 \end_layout
4814 \begin_layout Itemize
4815 Wxwidgets: Allow bringing application to foreground on Mac OS X.
4816 \end_layout
4818 \begin_layout Itemize
4819 Wxwidgets: Allow compiling on Mac OS X.
4820 \end_layout
4822 \begin_layout Itemize
4823 Use movie compare instead of movie hashing (faster save/load).
4824 \end_layout
4826 \begin_layout Itemize
4827 Lua: _SYSTEM table.
4828 \end_layout
4830 \begin_layout Subsection
4831 rr0-beta25
4832 \end_layout
4834 \begin_layout Itemize
4835 sdmp2sox: Pad soundtrack if using -l or -L.
4836 \end_layout
4838 \begin_layout Itemize
4839 sdmp2sox: Fix NTSC overscan.
4840 \end_layout
4842 \begin_layout Itemize
4843 sdmp2sox: Add AR correction mode.
4844 \end_layout
4846 \begin_layout Itemize
4847 call lua_close() when exiting.
4848 \end_layout
4850 \begin_layout Itemize
4851 Fix zip_writer bug causing warnings from info-zip and error from advzip.
4852 \end_layout
4854 \begin_layout Subsection
4855 rr0-beta26
4856 \end_layout
4858 \begin_layout Itemize
4859 Fix IPS patching code (use bsnes core IPS patcher).
4860 \end_layout
4862 \begin_layout Itemize
4863 Implement BPS patching (using bsnes core IPS patcher).
4864 \end_layout
4866 \begin_layout Itemize
4867 Add feature to load headered ROMs.
4868 \end_layout
4870 \begin_layout Subsection
4871 rr0-beta27
4872 \end_layout
4874 \begin_layout Itemize
4875 Show command names when showing keybindings
4876 \end_layout
4878 \begin_layout Subsection
4880 \end_layout
4882 \begin_layout Itemize
4883 Fix pause-on-end to be actually controllable
4884 \end_layout
4886 \begin_layout Itemize
4887 SDL: Poll all events in queue, not just first one (fixes slowness in command
4888  typing)
4889 \end_layout
4891 \begin_layout Itemize
4892 Wxwidgets: Fix ROM loading.
4893 \end_layout
4895 \begin_layout Subsection
4896 rr1-beta0
4897 \end_layout
4899 \begin_layout Itemize
4900 Lua: Add gui.textH, gui.textV, gui.textHV
4901 \end_layout
4903 \begin_layout Itemize
4904 Fix text colors on SDL on Mac OS X
4905 \end_layout
4907 \begin_layout Itemize
4908 Mode 'F' for finished in readonly mode.
4909 \end_layout
4911 \begin_layout Itemize
4912 Fix some WS errors.
4913 \end_layout
4915 \begin_layout Itemize
4916 Reliably pause after skip poll
4917 \end_layout
4919 \begin_layout Itemize
4920 Split UI and core into their own threads
4921 \end_layout
4923 \begin_layout Subsection
4924 rr1-beta1
4925 \end_layout
4927 \begin_layout Itemize
4928 Remove leftover dummy SRAM slot
4929 \end_layout
4931 \begin_layout Itemize
4932 Fix controller numbers.
4933 \end_layout
4935 \begin_layout Subsection
4936 rr1-beta2
4937 \end_layout
4939 \begin_layout Itemize
4940 Fix lsnes-dumpavi after interface change.
4941 \end_layout
4943 \begin_layout Itemize
4944 Also give BSNES patches for v085.
4945 \end_layout
4947 \begin_layout Itemize
4948 Pack movie data in memory.
4949 \end_layout
4951 \begin_layout Subsection
4952 rr1-beta3
4953 \end_layout
4955 \begin_layout Itemize
4956 Fix framecount/length given when loading movies.
4957 \end_layout
4959 \begin_layout Itemize
4960 Controller command memory leak fixes.
4961 \end_layout
4963 \begin_layout Itemize
4964 Don't leak palette if freeing screen object.
4965 \end_layout
4967 \begin_layout Subsection
4968 rr1-beta4
4969 \end_layout
4971 \begin_layout Itemize
4972 Detect revisions.
4973 \end_layout
4975 \begin_layout Itemize
4976 Wxwidgets: Allow controlling dumper from the menu.
4977 \end_layout
4979 \begin_layout Subsection
4980 rr1-beta5
4981 \end_layout
4983 \begin_layout Itemize
4984 Rewrite parts of manual
4985 \end_layout
4987 \begin_layout Itemize
4988 Lua: Make it work with Lua 5.2.
4989 \end_layout
4991 \begin_layout Subsection
4992 rr1-beta6
4993 \end_layout
4995 \begin_layout Itemize
4996 Win32: Fix compile errors.
4997 \end_layout
4999 \begin_layout Subsection
5000 rr1-beta7
5001 \end_layout
5003 \begin_layout Itemize
5004 Refactor controller input code.
5005 \end_layout
5007 \begin_layout Itemize
5008 Fix crash when using command line on SDL / Mac OS X.
5009 \end_layout
5011 \begin_layout Subsection
5012 rr1-beta8
5013 \end_layout
5015 \begin_layout Itemize
5016 Delete core/coroutine (obsolete)
5017 \end_layout
5019 \begin_layout Itemize
5020 Lag input display by one frame.
5021 \end_layout
5023 \begin_layout Itemize
5024 Rewind movie to beginning function.
5025 \end_layout
5027 \begin_layout Itemize
5028 Fix wrong frame number reported to Lua when repainting after loadstate
5029 \end_layout
5031 \begin_layout Itemize
5032 Support UI editing of jukebox
5033 \end_layout
5035 \begin_layout Itemize
5036 Wxwidgets: Save settings on exit.
5037 \end_layout
5039 \begin_layout Itemize
5040 Support ${project} for filenames
5041 \end_layout
5043 \begin_layout Itemize
5044 SDL: Fix command history
5045 \end_layout
5047 \begin_layout Subsection
5048 rr1-beta9
5049 \end_layout
5051 \begin_layout Itemize
5052 Fix some order-of-global-ctor bugs.
5053 \end_layout
5055 \begin_layout Subsection
5056 rr1-beta10
5057 \end_layout
5059 \begin_layout Itemize
5060 Fix crashes when quitting on Win32.
5061 \end_layout
5063 \begin_layout Subsection
5064 rr1-beta11
5065 \end_layout
5067 \begin_layout Itemize
5068 EVDEV: Queue keypresses from joystick, don't send directly
5069 \end_layout
5071 \begin_layout Itemize
5072 Wxwidgets: Load-Preserve that actually works.
5073 \end_layout
5075 \begin_layout Subsection
5076 rr1-beta12
5077 \end_layout
5079 \begin_layout Itemize
5080 Wxwidgets: GUI for memory search.
5081 \end_layout
5083 \begin_layout Itemize
5084 Warn about using synchronous queue in UI callback.
5085 \end_layout
5087 \begin_layout Subsection
5088 rr1-beta13
5089 \end_layout
5091 \begin_layout Itemize
5092 Remember last saved file for each ROM
5093 \end_layout
5095 \begin_layout Itemize
5096 Support MT dumping via boost.
5097 \end_layout
5099 \begin_layout Itemize
5100 Lua: input.raw
5101 \end_layout
5103 \begin_layout Itemize
5104 Lua: input.keyhook
5105 \end_layout
5107 \begin_layout Itemize
5108 Make mouse be ordinary input instead of special-casing
5109 \end_layout
5111 \begin_layout Itemize
5112 SDL: Don't screw up commands with NUL codepoints.
5113 \end_layout
5115 \begin_layout Subsection
5116 rr1-beta14
5117 \end_layout
5119 \begin_layout Itemize
5120 Merge status panel and main window
5121 \end_layout
5123 \begin_layout Itemize
5124 True movie slot support (the rest of it)
5125 \end_layout
5127 \begin_layout Itemize
5128 SDL: Fix compilation error
5129 \end_layout
5131 \begin_layout Itemize
5132 Elminate cross calls in dump menu code.
5133 \end_layout
5135 \begin_layout Subsection
5136 rr1-beta15
5137 \end_layout
5139 \begin_layout Itemize
5140 Cancel pending saves command
5141 \end_layout
5143 \begin_layout Itemize
5144 Wxwidgets: Code refactoring
5145 \end_layout
5147 \begin_layout Itemize
5148 Wxwidgets: Fix system -> reset
5149 \end_layout
5151 \begin_layout Itemize
5152 Wxwidgets: Read watch expressions in the right thread
5153 \end_layout
5155 \end_body
5156 \end_document