1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
6 \use_default_options true
7 \maintain_unincluded_children false
9 \language_package default
14 \font_typewriter default
15 \font_default_family default
16 \use_non_tex_fonts false
23 \default_output_format default
25 \bibtex_command default
26 \index_command default
27 \paperfontsize default
38 \paperorientation portrait
47 \paragraph_separation indent
48 \paragraph_indentation default
49 \quotes_language english
52 \paperpagestyle default
53 \tracking_changes false
66 \begin_layout Standard
67 lsnes is SNES rerecording emulator based on bsnes core.
74 \begin_layout Enumerate
75 bsnes libsnes (for bsnes SNES core)
79 \begin_layout Enumerate
80 v084-v087 (v084 or v085 for delayreset support)
83 \begin_layout Enumerate
84 accuracy or compatiblity core with debugger enabled.
87 \begin_layout Enumerate
88 Patched version (using included 7 patches)
92 \begin_layout Enumerate
93 gambatte (for gambatte core)
97 \begin_layout Enumerate
101 \begin_layout Enumerate
102 Patched with included patches
106 \begin_layout Enumerate
110 \begin_layout Enumerate
114 \begin_layout Enumerate
118 \begin_layout Enumerate
119 boost_thread (if native std::thread is not available)
122 \begin_layout Enumerate
126 \begin_layout Enumerate
127 sdlmain (SDL only, part of SDL)
130 \begin_layout Enumerate
131 boost_conversion (this is header-only library)
134 \begin_layout Enumerate
135 libswscale (wxwidgets graphics only)
138 \begin_layout Enumerate
139 Portaudio (portaudio sound only)
142 \begin_layout Enumerate
143 libao (libao sound only)
146 \begin_layout Enumerate
147 Lua (if Lua support is needed).
151 \begin_layout Itemize
152 Version 5.1.X or 5.2X.
156 \begin_layout Enumerate
157 G++ 4.6 (bsnes doesn't seem to like 4.7, status for gambatte is unknown).
160 \begin_layout Section
164 \begin_layout Itemize
165 Copy bsnes sources (the bsnes subdirectory) to subdirectory 'bsnes' (for
169 \begin_layout Itemize
170 Copy gambatte sources to subdirectory 'gambatte' (for gambatte core).
173 \begin_layout Itemize
174 Patch the bsnes sources with included patches (directory 'bsnes-patches/<version
178 \begin_layout Itemize
179 Patch the gambatte sources with included patches (directory 'gambatte-patches/<v
180 ersion>', gambatte core)
183 \begin_layout Itemize
184 Edit options.build (or copy of that file)
187 \begin_layout Itemize
188 Run make (passing 'OPTIONS=<filename>' if using something else than options.build
192 \begin_layout Section
196 \begin_layout Subsection
200 \begin_layout Subsubsection
201 --rom=<file> (lsnes/SDL, lsnes/wxwidgets, lsnes-avidump)
204 \begin_layout Standard
208 \begin_layout Subsection
212 \begin_layout Subsubsection
216 \begin_layout Standard
220 \begin_layout Subsubsection
221 <filename> (lsnes/SDL, lsnes-avidump, movieinfo)
224 \begin_layout Standard
225 Load <filename> as movie or savestate file.
226 All other session options are ignored.
229 \begin_layout Subsubsection
230 --port1=<device> (lsnes/SDL, bsnes core only)
233 \begin_layout Standard
238 \begin_layout Itemize
239 none: No device connected
242 \begin_layout Itemize
243 gamepad: One gamepad (the default)
246 \begin_layout Itemize
247 multitap: Four gamepads (warning: makes most games refuse to start)
250 \begin_layout Itemize
254 \begin_layout Subsubsection
255 --port2=<type> (lsnes/SDL, bsnes core only)
258 \begin_layout Standard
263 \begin_layout Itemize
264 none: No device connected (the default)
267 \begin_layout Itemize
271 \begin_layout Itemize
272 multitap: Four gamepads.
275 \begin_layout Itemize
279 \begin_layout Itemize
280 superscope: Super Scope
283 \begin_layout Itemize
284 justifier: One justifier
287 \begin_layout Itemize
288 justifiers: Two justifiers
291 \begin_layout Subsubsection
292 --gamename=<name> (lsnes/SDL)
295 \begin_layout Standard
296 Set the name of game to <name>.
300 \begin_layout Subsubsection
301 --author=<name> (lsnes/SDL)
304 \begin_layout Standard
305 Add author with full name of <name> (no nickname).
308 \begin_layout Subsubsection
309 --author=|<name> (lsnes/SDL)
312 \begin_layout Standard
313 Add author with nickname of <name> (no full name).
316 \begin_layout Subsubsection
317 --author=<fullname>|<nickname> (lsnes/SDL)
320 \begin_layout Standard
321 Add author with full name of <fullname> and nickname of <nickname>.
324 \begin_layout Subsubsection
325 --rtc-second=<value> (lsnes/SDL)
328 \begin_layout Standard
329 Set RTC second (0 is 1st January 1970 00:00:00Z).
330 Default is 1,000,000,000.
333 \begin_layout Subsubsection
334 --rtc-subsecond=<value> (lsnes/SDL)
337 \begin_layout Standard
344 \begin_layout Subsubsection
345 --anchor-savestate=<file> (lsnes/SDL)
348 \begin_layout Standard
349 Set the anchor savestate file.
352 \begin_layout Subsubsection
353 --load=<file> (lsnes/wxwidgets)
356 \begin_layout Standard
357 After loading the ROM, load <file> as savestate/movie.
360 \begin_layout Subsection
365 \begin_layout Subsubsection
366 --run=<file> (lsnes/SDL)
369 \begin_layout Standard
370 After running main RC file, run this file.
371 If multiple are specified, these execute in order specified.
374 \begin_layout Subsection
375 dump options (lsnes-dumpavi only)
378 \begin_layout Subsubsection
382 \begin_layout Standard
383 Set the dumper to use (required).
384 Use 'list' for listing of known dumpers.
387 \begin_layout Subsubsection
391 \begin_layout Standard
392 Set the mode to use (required for dumpers with multiple modes, forbidden
394 Use 'list' for known modes.
397 \begin_layout Subsubsection
401 \begin_layout Standard
404 \begin_inset Quotes eld
408 \begin_inset Quotes erd
414 \begin_layout Subsubsection
415 --option=<name>=<value>
418 \begin_layout Standard
419 Set option <name> to value <value>.
422 \begin_layout Subsubsection
426 \begin_layout Standard
427 Set number of frames to dump.
431 \begin_layout Subsubsection
435 \begin_layout Standard
436 Run specified lua script (lsnes-dumpavi does not have initialization files).
439 \begin_layout Subsubsection
440 --load-library=<library>
443 \begin_layout Standard
444 Load the specified shared object / dynamic library / dynamic link library.
447 \begin_layout Section
448 Startup file lsnes.rc
451 \begin_layout Standard
452 Upon startup, lsnes (lsnes/SDL only) executes file lsnes.rc as commands.
453 This file is located in:
456 \begin_layout Itemize
461 lsnes.rc (if %APPDATA% exists)
464 \begin_layout Itemize
465 Unix: $XDG_CONFIG_HOME/lsnes/lsnes.rc (if $XDG_CONFIG_HOME exists)
468 \begin_layout Itemize
469 Unix: $HOME/.config/lsnes/lsnes.rc (if $HOME exists)
472 \begin_layout Itemize
473 All: ./lsnes.rc (fallback default).
476 \begin_layout Standard
477 If leading directories do not exist, attempt to create them is made.
480 \begin_layout Section
484 \begin_layout Itemize
485 Commands beginning with '*' invoke the corresponding command without alias
489 \begin_layout Itemize
490 If command starts with '+' (after possible '*'), the command is executed
491 as-is when button is pressed, and when button is released, it is executed
492 with '+' replaced by '-'.
495 \begin_layout Itemize
496 Commands without '+' execute only on negative edge (release).
499 \begin_layout Subsection
503 \begin_layout Standard
504 Settings control various aspects of emulator behaviour.
507 \begin_layout Subsubsection
508 set-setting <setting> <value>
511 \begin_layout Standard
512 Sets setting <setting> to value <value> (may be empty).
515 \begin_layout Subsubsection
516 unset-setting <setting>
519 \begin_layout Standard
520 Try to unset setting <setting> (not all settings can be unset).
523 \begin_layout Subsubsection
524 get-setting <setting>
527 \begin_layout Standard
528 Read value of setting <setting>
531 \begin_layout Subsubsection
535 \begin_layout Standard
536 Print names and values of all settings.
539 \begin_layout Subsection
543 \begin_layout Standard
544 Keybindings bind commands or aliases to keys (or pseudo-keys).
548 \begin_layout Standard
552 \begin_layout Itemize
553 Do not bind edge active (+/-) commands to keys with modifiers, that won't
557 \begin_layout Itemize
558 Names of keys and modifiers are platform-dependent.
561 \begin_layout Itemize
562 Be careful before binding pseudo-keys (such as joystick axes, buttons or
563 hats) with modifiers.
564 That may or may not work right.
567 \begin_layout Subsubsection
568 bind-key [<mod>/<modmask>] <key> <command>
571 \begin_layout Standard
572 Bind <command> to key <key> (activating if modifiers in <modmask> (comma-seperat
573 ed list) are set as <mod> (comma-seperated list).
576 \begin_layout Standard
577 The names of keys and modifiers are platform-dependent.
580 \begin_layout Subsubsection
581 unbind-key [<mod>/<modmask>] <key>
584 \begin_layout Standard
585 Unbind command from <key> (with specified <mod> and <modmask>).
588 \begin_layout Subsubsection
589 set-axis <axis> [disabled | axis | axis-inverse | pressure0- | pressure0+
590 | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=<val>] [zero=<val>]
591 [plus=<val>] [tolerance=<val>]
594 \begin_layout Standard
595 Set axis parameters for axis <axis>.
598 \begin_layout Itemize
599 disabled: Disable axis
602 \begin_layout Itemize
606 \begin_layout Itemize
607 axis-inverse: Inverse axis
610 \begin_layout Itemize
611 pressure0-: Pressure sensitive.
612 Released at 0, pressed at -.
615 \begin_layout Itemize
616 pressure0+: Pressure sensitive.
617 Released at 0, pressed at +.
620 \begin_layout Itemize
621 pressure-0: Pressure sensitive.
622 Released at -, pressed at 0.
625 \begin_layout Itemize
626 pressure-+: Pressure sensitive.
627 Released at -, pressed at +.
630 \begin_layout Itemize
631 pressure+0: Pressure sensitive.
632 Released at +, pressed at 0.
635 \begin_layout Itemize
636 pressure+-: Pressure sensitive.
637 Released at +, pressed at -.
640 \begin_layout Itemize
641 minus=<val>: Calibration at extreme minus position (-32768-32767)
644 \begin_layout Itemize
645 zero=<val>: Calibration at neutral position (-32768-32767)
648 \begin_layout Itemize
649 plus=<val>: Calibration at extreme plus position (-32768-32767)
652 \begin_layout Itemize
653 tolerance=<value>: Center band tolerance (0<x<1).
654 The smaller the value, the more sensitive the control is.
657 \begin_layout Subsubsection
661 \begin_layout Standard
662 Print all key bindings in effect.
665 \begin_layout Subsection
669 \begin_layout Standard
670 Aliases bind command to sequence of commands.
671 After alias has been defined, it replaces the command it shadows.
674 \begin_layout Standard
678 \begin_layout Itemize
679 You can't alias command to itself.
682 \begin_layout Itemize
683 Aliases starting with +/- are edge active just like ordinary commands starting
687 \begin_layout Itemize
688 One command can be aliased to multiple commands.
691 \begin_layout Subsubsection
692 alias-command <command> <expansion>
695 \begin_layout Standard
696 Append <expansion> to alias <command>.
697 If alias does not already exist, it is created.
700 \begin_layout Subsubsection
701 unalias-command <command>
704 \begin_layout Standard
705 Clear alias expansion for <command>.
708 \begin_layout Subsubsection
712 \begin_layout Standard
713 Print all aliases and their expansions in effect.
716 \begin_layout Subsection
720 \begin_layout Standard
721 Run <script> as if commands were entered on the command line.
724 \begin_layout Subsection
728 \begin_layout Standard
729 <address> may be decimal or hexadecimal (prefixed with '0x').
730 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
734 \begin_layout Standard
735 The available element <sizes> are:
738 \begin_layout Itemize
742 \begin_layout Itemize
746 \begin_layout Itemize
750 \begin_layout Itemize
754 \begin_layout Standard
755 When reading RAM and ROM, multi-byte reads/writes are big-endian.
756 When dealing with DSP memory, multi-byte reads/writes are native-endian
757 (do not use operand sizes exceeding DSP bitness, except dword is OK for
761 \begin_layout Subsubsection
762 read-<size> <address>
765 \begin_layout Standard
766 Read the value of byte in <address>.
769 \begin_layout Subsubsection
770 read-s<size> <address>
773 \begin_layout Standard
774 Read the value of signed byte in <address>.
777 \begin_layout Subsubsection
778 write-<size> <address> <value>
781 \begin_layout Standard
782 Write <value> to byte in address <address>.
785 \begin_layout Subsubsection
789 \begin_layout Standard
790 Reset the memory search
793 \begin_layout Subsubsection
797 \begin_layout Standard
798 Print number of candidates remaining
801 \begin_layout Subsubsection
805 \begin_layout Standard
806 Print all candidates remaining
809 \begin_layout Subsubsection
810 search-memory <usflag><sizeflag><op>
813 \begin_layout Standard
814 Searches memory for addresses satisfying criteria.
817 \begin_layout Standard
821 \begin_layout Itemize
825 \begin_layout Itemize
829 \begin_layout Standard
833 \begin_layout Itemize
837 \begin_layout Itemize
841 \begin_layout Itemize
845 \begin_layout Itemize
849 \begin_layout Standard
853 \begin_layout Itemize
854 lt: < previous value.
857 \begin_layout Itemize
858 le: <= previous value.
861 \begin_layout Itemize
862 eq: = previous value.
865 \begin_layout Itemize
866 ne: != previous value.
869 \begin_layout Itemize
870 ge: >= previous value.
873 \begin_layout Itemize
874 gt: > previous value.
877 \begin_layout Subsubsection
878 search-memory <sizeflag> <value>
881 \begin_layout Standard
882 Searches for addresses that currently have value <value>.
883 <sizeflag> is as in previous command.
886 \begin_layout Subsection
890 \begin_layout Standard
891 These commands are not available in lsnesrc, but are available after ROM
895 \begin_layout Subsubsection
899 \begin_layout Standard
900 Quits the emulator (asking for confirmation).
901 If /y is given, no confirmation is asked.
904 \begin_layout Subsubsection
908 \begin_layout Standard
909 Toggle paused/unpaused
912 \begin_layout Subsubsection
916 \begin_layout Standard
918 If the button is still held after configurable timeout expires, game unpauses
919 for the duration frame advance is held.
922 \begin_layout Subsubsection
926 \begin_layout Standard
928 If the button is still held after configurable timeout expires, game unpauses
929 for the duration frame advance is held.
932 \begin_layout Subsubsection
936 \begin_layout Standard
937 Skip to first poll in frame after current.
940 \begin_layout Subsubsection
944 \begin_layout Standard
945 Reset the SNES after this frame.
948 \begin_layout Subsubsection
952 \begin_layout Standard
953 Load savestate <filename> in current mode.
956 \begin_layout Subsubsection
957 load-state <filename>
960 \begin_layout Standard
961 Load savestate <filename> in readwrite mode.
964 \begin_layout Subsubsection
965 load-readonly <filename>
968 \begin_layout Standard
969 Load savestate <filename> in readonly mode.
972 \begin_layout Subsubsection
973 load-preserve <filename>
976 \begin_layout Standard
977 Load savestate <filename> in readonly mode, preserving current events.
980 \begin_layout Subsubsection
981 load-movie <filename>
984 \begin_layout Standard
985 Load savestate <filename>, ignoring save part in readonly mode.
988 \begin_layout Subsubsection
989 save-state <filename>
992 \begin_layout Standard
993 Save system state to <filename> as soon as possible.
996 \begin_layout Subsubsection
997 save-movie <filename>
1000 \begin_layout Standard
1001 Save movie to <filename>.
1004 \begin_layout Subsubsection
1008 \begin_layout Standard
1009 Set read-write mode.
1012 \begin_layout Subsubsection
1016 \begin_layout Standard
1020 \begin_layout Subsubsection
1024 \begin_layout Standard
1025 Toggle between read-only and read-write modes.
1028 \begin_layout Subsubsection
1032 \begin_layout Standard
1033 Set name of the game to <name>
1036 \begin_layout Subsubsection
1040 \begin_layout Standard
1041 Print the name of the game.
1044 \begin_layout Subsubsection
1048 \begin_layout Standard
1049 Adds new author <author>.
1050 If <author> does not contain '|' it is full name.
1051 If it contains '|', '|' splits the full name and nickname.
1054 \begin_layout Subsubsection
1055 edit-author <num> <author>
1058 \begin_layout Standard
1059 Edit the author in slot <num> (0-based) to be <author> (see add-author for
1063 \begin_layout Subsubsection
1067 \begin_layout Standard
1068 Remove author in slot <num>
1071 \begin_layout Subsubsection
1075 \begin_layout Standard
1079 \begin_layout Subsubsection
1080 test-1, test-2, test-3
1083 \begin_layout Standard
1084 Internal test commands.
1088 \begin_layout Subsubsection
1089 take-screenshot <filename>
1092 \begin_layout Standard
1093 Save screenshot to <filename>.
1096 \begin_layout Subsubsection
1097 +controller<num><button>
1100 \begin_layout Standard
1101 Press button <button> on controller <num> (1-8).
1102 The following button names are known:
1105 \begin_layout Itemize
1109 \begin_layout Itemize
1113 \begin_layout Itemize
1117 \begin_layout Itemize
1121 \begin_layout Itemize
1125 \begin_layout Itemize
1129 \begin_layout Itemize
1133 \begin_layout Itemize
1137 \begin_layout Itemize
1141 \begin_layout Itemize
1145 \begin_layout Itemize
1149 \begin_layout Itemize
1153 \begin_layout Itemize
1157 \begin_layout Itemize
1161 \begin_layout Itemize
1165 \begin_layout Itemize
1169 \begin_layout Subsubsection
1170 controllerh<num><button>
1173 \begin_layout Standard
1174 Hold/unhold button <button> on controller <num> (1-8).
1175 See +controller for button names.
1178 \begin_layout Subsubsection
1179 controllerf<num><button>
1182 \begin_layout Standard
1183 Hold/unhold button <button> on controller <num> (1-8) for the next frame.
1184 See +controller for button names.
1187 \begin_layout Standard
1188 Cauntion: Does not work properly if outside frame advance.
1191 \begin_layout Subsubsection
1192 autofire (<pattern>|-)...
1195 \begin_layout Standard
1196 Set autofire pattern.
1197 Each parameter is comma-separated list of button names (in form of 1start,
1198 1A, 2B, etc..) to hold on that frame.
1199 After reaching the end of pattern, the pattern restarts from the beginning.
1202 \begin_layout Subsubsection
1206 \begin_layout Standard
1210 \begin_layout Subsection
1214 \begin_layout Subsubsection
1215 cycle-jukebox-backward
1218 \begin_layout Standard
1219 Cycle save jukebox backwards.
1222 \begin_layout Subsubsection
1223 cycle-jukebox-forward
1226 \begin_layout Standard
1227 Cycle save jukebox forwards
1230 \begin_layout Subsubsection
1234 \begin_layout Standard
1235 Do load from jukebox (current mode).
1238 \begin_layout Subsubsection
1242 \begin_layout Standard
1243 Do state save to jukebox.
1246 \begin_layout Subsection
1250 \begin_layout Standard
1251 Only available if lua support is compiled in.
1254 \begin_layout Subsubsection
1255 evaluate-lua <luacode>
1258 \begin_layout Standard
1259 Run Lua code <luacode> using built-in Lua interpretter.
1262 \begin_layout Subsubsection
1266 \begin_layout Standard
1267 Run specified lua file using built-in Lua interpretter.
1270 \begin_layout Subsubsection
1274 \begin_layout Standard
1275 Clear the Lua VM state and restore to factory defaults.
1278 \begin_layout Subsection
1282 \begin_layout Subsubsection
1283 add-watch <name> <expression>
1286 \begin_layout Standard
1287 Adds new watch (or modifies old one).
1290 \begin_layout Subsubsection
1294 \begin_layout Standard
1298 \begin_layout Subsection
1302 \begin_layout Subsubsection
1303 enable-sound <on/off>
1306 \begin_layout Standard
1307 Enable/Disable sound.
1310 \begin_layout Subsubsection
1311 set-volume <multiplier>
1314 \begin_layout Standard
1315 Set the volume multiplier to <multiplier>.
1316 1 is normal volume, and higher numbers are louder.
1319 \begin_layout Subsubsection
1320 set-volume <multiplier>%
1323 \begin_layout Standard
1324 Set the volume multiplier to <multiplier> percent.
1325 100 is normal volume, and higher numbers are louder.
1328 \begin_layout Subsubsection
1329 set-volume <multiplier>dB
1332 \begin_layout Standard
1333 Set the volume multiplier to <multiplier> dB.
1334 0 is normal volume, and higher numbers are louder.
1335 The value may be negative.
1338 \begin_layout Subsection
1342 \begin_layout Subsubsection
1346 \begin_layout Standard
1347 Reloads the main ROM image from <file>.
1350 \begin_layout Subsubsection
1354 \begin_layout Standard
1355 Tangent for recording voice for commentary track.
1356 While pressed, record a stream.
1359 \begin_layout Section
1363 \begin_layout Subsection
1367 \begin_layout Subsubsection
1371 \begin_layout Standard
1372 Set where bsnes looks for firmware files.
1374 \begin_inset Quotes eld
1378 \begin_inset Quotes erd
1384 \begin_layout Subsubsection
1388 \begin_layout Standard
1390 Numeric, range is 0.001 to
1391 \begin_inset Quotes eld
1395 \begin_inset Quotes erd
1399 Default is native framerate.
1402 \begin_layout Subsubsection
1406 \begin_layout Standard
1407 Set save compression level (integer 0-9).
1408 Default is 7 (0 is no compression).
1411 \begin_layout Subsubsection
1415 \begin_layout Standard
1416 Set the frame advance timeout in milliseconds.
1417 Numeric integer, range is 0-999999999.
1421 \begin_layout Subsubsection
1422 allow-inconsistent-saves (bsnes only)
1425 \begin_layout Standard
1426 If true, save without synchronization.
1427 Makes games seriously unstable.
1430 \begin_layout Subsubsection
1431 save-every-frame (bsnes only)
1434 \begin_layout Standard
1435 If true, simulate saving on each frame.
1436 Trades off emulation accuracy for sync stability.
1437 Also needed if the movie assumes saving on each frame for rewind.
1440 \begin_layout Subsection
1444 \begin_layout Subsubsection
1448 \begin_layout Standard
1449 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1453 \begin_layout Subsubsection
1457 \begin_layout Standard
1458 AVI dumper: Set the default left border thickness (unless lua overrides)
1464 \begin_layout Subsubsection
1468 \begin_layout Standard
1469 AVI dumper: Set the default right border thickness (unless lua overrides)
1475 \begin_layout Subsubsection
1479 \begin_layout Standard
1480 AVI dumper: Set the default top border thickness (unless lua overrides)
1486 \begin_layout Subsubsection
1490 \begin_layout Standard
1491 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1497 \begin_layout Subsubsection
1501 \begin_layout Standard
1502 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1507 \begin_layout Subsubsection
1511 \begin_layout Standard
1512 AVI dumper: Compression level (0-18).
1515 \begin_layout Itemize
1516 Compression levels 10 and above are not compatible with stock CSCD codec.
1519 \begin_layout Itemize
1520 Recomended level is 7.
1523 \begin_layout Subsubsection
1527 \begin_layout Standard
1528 AVI dumper: Set method of determining the sound rate.
1531 \begin_layout Itemize
1532 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
1533 128, 176.4 and 192 kHz.
1536 \begin_layout Itemize
1537 1: Round down to nearest integer.
1540 \begin_layout Itemize
1541 2: Round up to nearest ingeter.
1544 \begin_layout Subsection
1548 \begin_layout Subsubsection
1552 \begin_layout Standard
1553 JMD dumper: Compression level (0-9).
1556 \begin_layout Subsection
1557 SDL platform settings
1560 \begin_layout Subsubsection
1561 autorepeat-first-delay
1564 \begin_layout Standard
1565 Sets the delay for first character in typematic autorepeat.
1568 \begin_layout Subsubsection
1569 autorepeat-subsequent-delay
1572 \begin_layout Standard
1573 Sets the delay for subsequent characters in typematic autorepeat.
1576 \begin_layout Section
1580 \begin_layout Subsection
1581 Core (in main table)
1584 \begin_layout Subsubsection
1588 \begin_layout Standard
1589 Print line to message console.
1592 \begin_layout Subsubsection
1593 exec(string command)
1596 \begin_layout Standard
1597 Run command as it was entered on the command line
1600 \begin_layout Subsubsection
1604 \begin_layout Standard
1606 First is time since some epoch in seconds, the second is microseconds mod
1607 10^6 since that epoch.
1610 \begin_layout Subsubsection
1614 \begin_layout Standard
1615 Returns true if emulator has finished booting, false if not (on_startup()
1616 will be issued later).
1619 \begin_layout Subsubsection
1620 set_idle_timeout(number timeout)
1623 \begin_layout Standard
1624 Set number of microseconds to block idle for.
1625 After this timeout has expired, on_idle() will be called once.
1628 \begin_layout Subsubsection
1629 set_timer_timeout(number timeout)
1632 \begin_layout Standard
1633 Set number of microseconds to block timer for.
1634 After this timeout has expired, on_timer() will be called once.
1637 \begin_layout Subsubsection
1638 bus_address(number snesaddr)
1641 \begin_layout Standard
1642 Returns virtual address corresponding to specified address on SNES bus.
1645 \begin_layout Subsubsection
1646 loopwrapper(function fun, ...)
1649 \begin_layout Standard
1650 Calls function fun with function and specified arguments.
1651 The function passed suspends execution until the function returned is called.
1652 Handy for linear flow control among multiple invocations of a hook.
1656 \begin_layout LyX-Code
1657 on_paint = loopwrapper(function(wait)
1661 \begin_layout LyX-Code
1666 \begin_layout LyX-Code
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1678 \begin_layout LyX-Code
1683 \begin_layout LyX-Code
1688 \begin_layout LyX-Code
1692 \begin_layout Subsection
1696 \begin_layout Standard
1697 Bitwise logical functions and related.
1700 \begin_layout Subsubsection
1701 bit.none(number...) / bit.bnot(number...)
1704 \begin_layout Standard
1705 48-bit bitwise NOT / NONE function (set bits that are set in none of the
1709 \begin_layout Subsubsection
1710 bit.any(number...) / bit.bor(number...)
1713 \begin_layout Standard
1714 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
1717 \begin_layout Subsubsection
1718 bit.all(number...) / bit.band(number...)
1721 \begin_layout Standard
1722 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
1726 \begin_layout Subsubsection
1727 bit.parity(number...) / bit.bxor(number...)
1730 \begin_layout Standard
1731 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
1735 \begin_layout Subsubsection
1736 bit.lrotate(number base[, number amount[, number bits]])
1739 \begin_layout Standard
1740 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
1743 \begin_layout Subsubsection
1744 bit.rrotate(number base[, number amount[, number bits]])
1747 \begin_layout Standard
1748 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
1752 \begin_layout Subsubsection
1753 bit.lshift(number base[, number amount[, number bits]])
1756 \begin_layout Standard
1757 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
1758 The new bits are filled with zeroes.
1761 \begin_layout Subsubsection
1762 bit.lrshift(number base[, number amount[, number bits]])
1765 \begin_layout Standard
1766 Shift bits-bit (max 48, default 48) number logically right by amount (default
1768 The new bits are filled with zeroes.
1771 \begin_layout Subsubsection
1772 bit.arshift(number base[, number amount[, number bits]])
1775 \begin_layout Standard
1776 Shift bits-bit (max 48, default 48) number arithmetically right by amount
1778 The new bits are shifted in with copy of the high bit.
1781 \begin_layout Subsubsection
1782 bit.extract(number base[, number bit0[, number bit1,...]])
1785 \begin_layout Standard
1786 Returns number that has bit0-th bit as bit 0, bit1-th bit as 1 and so on.
1789 \begin_layout Standard
1793 \begin_layout Itemize
1794 Bit numbers up to 51 should work reliably (then things start falling apart
1795 due to double precision issues).
1798 \begin_layout Itemize
1799 There are two special bit positions, true and false, standing for always
1800 set bit and always clear bit.
1803 \begin_layout Subsubsection
1804 bit.value([number bit1[, number bit2,...]])
1807 \begin_layout Standard
1808 Returns bitwise OR of 1 left shifted by bit1 places, 1 left shifted by bit2
1810 As special value, nil argument is no-op.
1813 \begin_layout Subsection
1817 \begin_layout Standard
1818 Most of these functions can only be called in on_paint and on_video callbacks.
1819 Exceptions are noted.
1822 \begin_layout Standard
1824 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
1825 16-23 are the red component, bits 24-31 are alpha component (0 is fully
1826 opaque, 255 is almost transparent).
1827 -1 is the fully transparent color.
1828 Alpha values greater than 127 do work.
1831 \begin_layout Standard
1832 Origin of coordinates is at top left corner of game display area.
1833 Left and top gaps correspond to negative coordinates.
1836 \begin_layout Subsubsection
1840 \begin_layout Standard
1841 Returns 2-tuple (hresolution, vresolution).
1844 \begin_layout Subsubsection
1845 gui.<class>_gap(number gap)
1848 \begin_layout Standard
1849 Set the <class> (left, right, top, bottom) gap to specified value (max gap
1853 \begin_layout Subsubsection
1854 gui.text(number x, number y, string text[, number fgc[, number bgc]])
1857 \begin_layout Standard
1858 Draw specified text on the GUI (each character cell is 8 or 16 wide and
1863 \begin_layout Itemize
1864 x: X-coordinate to start the drawing from (and x-coordinate at begining
1868 \begin_layout Itemize
1869 y: Y-coordinate to start the drawing from.
1872 \begin_layout Itemize
1873 text: The text to draw.
1876 \begin_layout Itemize
1877 fgc: Text color (default is 0xFFFFFF (white))
1880 \begin_layout Itemize
1881 bgc: Background color (default is -1 (transparent))
1884 \begin_layout Subsubsection
1885 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
1888 \begin_layout Standard
1889 Like gui.text, but draw using double-width.
1892 \begin_layout Subsubsection
1893 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
1896 \begin_layout Standard
1897 Like gui.text, but draw using double-height.
1900 \begin_layout Subsubsection
1901 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
1904 \begin_layout Standard
1905 Like gui.text, but draw using double-width/double-height.
1908 \begin_layout Subsubsection
1909 gui.rectangle(number x, number y, number width, number height[, number thickness[
1910 , number outline[, number fill]]])
1913 \begin_layout Standard
1914 Draw rectangle on the GUI.
1918 \begin_layout Itemize
1919 x: X-coordinate of left edge.
1922 \begin_layout Itemize
1923 y: Y-coordinate of upper edge.
1926 \begin_layout Itemize
1927 width: Width of rectangle.
1930 \begin_layout Itemize
1931 height: Height of rectangle.
1934 \begin_layout Itemize
1935 thickness: Thickness of outline (default is 1).
1938 \begin_layout Itemize
1939 outline: Color of outline (default is 0xFFFFFF (white))
1942 \begin_layout Itemize
1943 fill: Color of fill (default is -1 (transparent))
1946 \begin_layout Subsubsection
1947 gui.box(number x, number y, number width, number height[, number thickness[,
1948 number outline1[,number outline2[, number fill]]]])
1951 \begin_layout Standard
1952 Draw rectangle with 3D effect on the GUI.
1956 \begin_layout Itemize
1957 x: X-coordinate of left edge.
1960 \begin_layout Itemize
1961 y: Y-coordinate of upper edge.
1964 \begin_layout Itemize
1965 width: Width of rectangle.
1968 \begin_layout Itemize
1969 height: Height of rectangle.
1972 \begin_layout Itemize
1973 thickness: Thickness of outline (default is 1).
1976 \begin_layout Itemize
1977 outline1: First color of outline (default is 0xFFFFFF (white))
1980 \begin_layout Itemize
1981 outline2: First color of outline (default is 0x808080 (dark gray))
1984 \begin_layout Itemize
1985 fill: Color of fill (default is 0xC0C0C0 (light grayy))
1988 \begin_layout Subsubsection
1989 gui.pixel(number x, number y[, number color])
1992 \begin_layout Standard
1993 Draw one pixel on the GUI.
1997 \begin_layout Itemize
1998 x: X-coordinate of the pixel
2001 \begin_layout Itemize
2002 y: Y-coordinate of the pixel
2005 \begin_layout Itemize
2006 color: Color of the pixel (default is 0xFFFFFF (white))
2009 \begin_layout Subsubsection
2010 gui.crosshair(number x, number y[, number length[, number color]])
2013 \begin_layout Standard
2018 \begin_layout Itemize
2019 x: X-coordinate of the crosshair
2022 \begin_layout Itemize
2023 y: Y-coordinate of the crosshair
2026 \begin_layout Itemize
2027 length: Length of the crosshair lines (default 10).
2030 \begin_layout Itemize
2031 color: Color of the crosshair (default is 0xFFFFFF (white))
2034 \begin_layout Subsubsection
2035 gui.line(number x1, number y1, number x2, number y2[, number color])
2038 \begin_layout Standard
2043 \begin_layout Itemize
2044 x1: X-coordinate of one end.
2047 \begin_layout Itemize
2048 y1: Y-coordinate of one end.
2051 \begin_layout Itemize
2052 x2: X-coordinate of the other end.
2055 \begin_layout Itemize
2056 y2: Y-coordinate of the other end.
2059 \begin_layout Itemize
2060 color: Color of the line (default is 0xFFFFFF (white)).
2063 \begin_layout Subsubsection
2064 gui.circle(number x, number y, number r[, number thick[, number border[,
2068 \begin_layout Standard
2073 \begin_layout Itemize
2074 x: X-coordinate of the center
2077 \begin_layout Itemize
2078 y: Y-coordinate of the center
2081 \begin_layout Itemize
2082 r: The radius of the circle
2085 \begin_layout Itemize
2086 thick: Border thickness
2089 \begin_layout Itemize
2090 border: Border color (default is 0xFFFFFF (white))
2093 \begin_layout Itemize
2094 fill: Fill color (default is -1 (transparent)).
2097 \begin_layout Subsubsection
2098 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
2101 \begin_layout Standard
2102 Draw a bitmap on screen with specified palette.
2106 \begin_layout Itemize
2107 x: X-coordinate of left edge.
2110 \begin_layout Itemize
2111 y: Y-coordinate of top edge.
2114 \begin_layout Itemize
2115 bitmap: The bitmap to draw
2118 \begin_layout Itemize
2119 palette: The palette to draw the bitmap using.
2122 \begin_layout Subsubsection
2123 gui.bitmap_draw(number x, number y, dbitmap bitmap)
2126 \begin_layout Standard
2127 Draw a bitmap on screen.
2131 \begin_layout Itemize
2132 x: X-coordinate of left edge.
2135 \begin_layout Itemize
2136 y: Y-coordinate of top edge.
2139 \begin_layout Itemize
2140 bitmap: The bitmap to draw
2143 \begin_layout Subsubsection
2147 \begin_layout Standard
2148 Returns a new palette (initially all transparent).
2149 Can be used anywhere.
2152 \begin_layout Subsubsection
2153 gui.bitmap_new(number w, number h, boolean direct[, bool icolor])
2156 \begin_layout Standard
2157 Returns a new bitmap/dbitmap.
2158 Can be used anywhere.
2162 \begin_layout Itemize
2163 w: The width of new bitmap
2166 \begin_layout Itemize
2167 h: The height of new bitmap
2170 \begin_layout Itemize
2171 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
2174 \begin_layout Itemize
2175 icolor: Initital fill color (defaults to 0 on BITMAP, -1 on DBITMAP)
2178 \begin_layout Subsubsection
2179 gui.bitmap_load(string file)
2182 \begin_layout Standard
2183 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
2185 Can be used anywhere.
2189 \begin_layout Itemize
2190 file: The name of file to load.
2193 \begin_layout Subsubsection
2194 gui.palette_set(palette palette, number index, number color)
2197 \begin_layout Standard
2198 Sets color in palette.
2199 Can be used anywhere.
2203 \begin_layout Itemize
2204 palette: The palette to manipulate
2207 \begin_layout Itemize
2208 index: Index of color (0-65535).
2211 \begin_layout Itemize
2212 color: The color value.
2215 \begin_layout Subsubsection
2216 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
2219 \begin_layout Standard
2220 Sets specified pixel in bitmap.
2221 Can be used anywhere.
2225 \begin_layout Itemize
2226 bitmap: The bitmap to manipulate
2229 \begin_layout Itemize
2230 x: The x-coordinate of the pixel.
2233 \begin_layout Itemize
2234 y: The y-coordinate of the pixel.
2237 \begin_layout Itemize
2238 color: If bitmap is a bitmap, color index (0-65535).
2239 Otherwise color value.
2242 \begin_layout Subsubsection
2243 gui.bitmap_size(bitmap/dbitmap bitmap)
2246 \begin_layout Standard
2248 Can be used anywhere.
2252 \begin_layout Itemize
2253 bitmap: The bitmap to query.
2256 \begin_layout Standard
2257 The first return is the width, the second is the height.
2260 \begin_layout Subsubsection
2261 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
2262 src, number sx, number sy, number w, number h[, number ck])
2265 \begin_layout Standard
2266 Blit a part of bitmap to another.
2267 Can be used anywhere.
2271 \begin_layout Itemize
2272 dest: Destination to blit to.
2275 \begin_layout Itemize
2276 dx: left edge of target
2279 \begin_layout Itemize
2280 dy: Top edge of target
2283 \begin_layout Itemize
2284 src: The source to blit from.
2285 Must be of the same type as destination.
2288 \begin_layout Itemize
2289 sx: left edge of source
2292 \begin_layout Itemize
2293 sy: Top edge of source
2296 \begin_layout Itemize
2300 \begin_layout Itemize
2301 h: Height of region.
2304 \begin_layout Itemize
2306 Pixels of this color are not blitted.
2310 \begin_layout Itemize
2311 If bitmaps are bitmaps, this is color index of colorkey.
2312 Values outside range 0-65535 cause no key to be used as colorkey.
2315 \begin_layout Itemize
2316 If bitmaps are dbitmaps, this color value of colorkey.
2319 \begin_layout Itemize
2320 May be absent or nil for no colorkey blit.
2324 \begin_layout Subsubsection
2328 \begin_layout Standard
2329 Request on_repaint() to happen as soon as possible.
2330 Can be used anywhere.
2333 \begin_layout Subsubsection
2334 gui.subframe_update(boolean on)
2337 \begin_layout Standard
2338 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
2339 or not happen (on=false).
2340 Can be used anywhere.
2343 \begin_layout Subsubsection
2344 gui.screenshot(string filename)
2347 \begin_layout Standard
2348 Write PNG screenshot of the current frame (no drawings) to specified file.
2349 Can be used anywhere.
2352 \begin_layout Subsubsection
2353 gui.color(number r, number g, number b[, number a])
2356 \begin_layout Standard
2357 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2358 each component in scale 0-255.
2359 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2361 The default alpha is 256.
2364 \begin_layout Subsubsection
2365 gui.status(string name, string value)
2368 \begin_layout Standard
2370 \begin_inset Quotes eld
2374 \begin_inset Quotes erd
2377 to <value> in status area.
2378 Can be used anywhere.
2381 \begin_layout Subsubsection
2382 gui.rainbow(number step, number steps[, number color])
2385 \begin_layout Standard
2386 Perform hue rotation of color <color> (default bright red), by <step> steps.
2387 The number of steps per full rotation is given by absolute value of <steps>.
2390 \begin_layout Standard
2391 If <steps> is negative, the rotation will be counterclockwise.
2394 \begin_layout Subsubsection
2395 gui.screenshot(string filename)
2398 \begin_layout Standard
2399 Saves a screenshot into specified file.
2402 \begin_layout Subsection
2406 \begin_layout Standard
2408 Only available in on_input callback.
2411 \begin_layout Subsubsection
2412 input.get(number controller, number index)
2415 \begin_layout Standard
2416 Read the specified index (0-11) from specified controller (0-7).
2420 \begin_layout Itemize
2421 Uses physical controller numbering.
2422 Gamepad in port 2 is controller 4, not 1!
2425 \begin_layout Subsubsection
2426 input.set(number controller, number index, number value)
2429 \begin_layout Standard
2430 Write the specified index (0-11) from specified controller (0-7), storing
2435 \begin_layout Itemize
2436 Uses physical controller numbering.
2437 Gamepad in port 2 is controller 4, not 1!
2440 \begin_layout Subsubsection
2441 input.geta(number controller)
2444 \begin_layout Standard
2445 Get input state for entiere controller.
2446 Returns 13 return values.
2449 \begin_layout Itemize
2450 1st return value: Bitmask: bit i is set if i:th index is nonzero
2453 \begin_layout Itemize
2454 2nd-13th return value: value of i:th index.
2457 \begin_layout Subsubsection
2458 input.seta(number controller, number bitmask, number args...)
2461 \begin_layout Standard
2462 Set state for entiere controller.
2463 args is up to 12 values for indices (overriding values in bitmask if specified).
2466 \begin_layout Subsubsection
2467 input.controllertype(number controller)
2470 \begin_layout Standard
2471 Get the type of controller as string.
2475 \begin_layout Itemize
2479 \begin_layout Itemize
2483 \begin_layout Itemize
2487 \begin_layout Itemize
2491 \begin_layout Subsubsection
2492 input.reset([number cycles])
2495 \begin_layout Standard
2497 If cycles is greater than zero, do delayed reset.
2498 0 (or no value) causes immediate reset.
2501 \begin_layout Itemize
2502 Only available with subframe flag false.
2505 \begin_layout Subsubsection
2509 \begin_layout Standard
2510 Returns table of tables of all available keys and axes.
2511 The first table is indexed by key name (platform-dependent!), and the inner
2512 table has the following fields:
2515 \begin_layout Itemize
2516 value: Last reported value for control
2520 \begin_layout Itemize
2521 For keys: 1 for pressed, 0 for released.
2524 \begin_layout Itemize
2525 For axes: -32767...32767.
2528 \begin_layout Itemize
2529 For presure-sensitive buttons: 0...32767.
2532 \begin_layout Itemize
2533 For hats: Bitmask: 1=>Up, 2=>Right, 4=>Down, 8=>Left.
2536 \begin_layout Itemize
2537 For mouse: Coordinates relative to game area.
2541 \begin_layout Itemize
2542 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2543 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2546 \begin_layout Subsubsection
2547 input.keyhook(string key, boolean state)
2550 \begin_layout Standard
2551 Requests that keyhook events to be sent for key (state=true) or not sent
2555 \begin_layout Subsubsection
2556 input.joyget(number controller)
2559 \begin_layout Standard
2560 Returns table for current controls for specified controller.
2561 The names of fields vary by controller type.
2564 \begin_layout Itemize
2565 The buttons have the same name as those are referred to in other contexts
2569 \begin_layout Itemize
2571 \begin_inset Quotes eld
2575 \begin_inset Quotes erd
2579 \begin_inset Quotes eld
2583 \begin_inset Quotes erd
2589 \begin_layout Subsubsection
2590 input.joyset(number controller, table controls)
2593 \begin_layout Standard
2594 Set the the state of specified controller to values specified in specified
2598 \begin_layout Subsubsection
2599 input.lcid_to_pcid(number controller)
2602 \begin_layout Standard
2603 Return the physical index, physical port and controller number in port for
2604 specified (1-based) logical controller.
2607 \begin_layout Subsection
2611 \begin_layout Standard
2615 \begin_layout Subsubsection
2616 subtitle.byindex(number i)
2619 \begin_layout Standard
2620 Read the frame and length of ith subtitle.
2621 Returns nothing if not present.
2624 \begin_layout Subsubsection
2625 subtitle.set(number f, number l, string txt)
2628 \begin_layout Standard
2629 Set the text of subtitle.
2632 \begin_layout Subsubsection
2633 subtitle.get(number f, number l)
2636 \begin_layout Standard
2637 Get the text of subtitle.
2640 \begin_layout Subsubsection
2641 subtitle.delete(number f, number l)
2644 \begin_layout Standard
2645 Delete specified subtitle.
2648 \begin_layout Subsection
2652 \begin_layout Standard
2653 Host memory handling (extra memory saved to savestates).
2654 Host memory starts empty.
2657 \begin_layout Subsubsection
2658 hostmemory.read(number address)
2661 \begin_layout Standard
2662 Reads hostmemory slot address.
2663 Slot numbers out of range return false instead of numeric.
2666 \begin_layout Subsubsection
2667 hostmemory.write(number address, number value)
2670 \begin_layout Standard
2671 Writes hostmemory slot with 0-255.
2672 Slot numbers out of range cause extension of host memory slot space.
2675 \begin_layout Subsubsection
2676 hostmemory.readbyte(number address)
2679 \begin_layout Standard
2680 Read unsigned byte (1 element) from given address.
2681 Slots out of range return false.
2684 \begin_layout Subsubsection
2685 hostmemory.writebyte(number address, number value)
2688 \begin_layout Standard
2689 Write unsigned byte (1 element) to given slot.
2690 Slot numbers out of range cause extension.
2693 \begin_layout Subsubsection
2694 hostmemory.readsbyte(number address)
2697 \begin_layout Standard
2698 Read signed byte (1 element) from given address.
2699 Slots out of range return false.
2702 \begin_layout Subsubsection
2703 hostmemory.writesbyte(number address, number value)
2706 \begin_layout Standard
2707 Write signed byte (1 element) to given slot.
2708 Slot numbers out of range cause extension.
2711 \begin_layout Subsubsection
2712 hostmemory.readword(number address)
2715 \begin_layout Standard
2716 Read unsigned word (2 elements) from given address.
2717 Slots out of range return false.
2720 \begin_layout Subsubsection
2721 hostmemory.writeword(number address, number value)
2724 \begin_layout Standard
2725 Write unsigned word (2 elements) to given slot.
2726 Slot numbers out of range cause extension.
2729 \begin_layout Subsubsection
2730 hostmemory.readsword(number address)
2733 \begin_layout Standard
2734 Read signed word (2 elements) from given address.
2735 Slots out of range return false.
2738 \begin_layout Subsubsection
2739 hostmemory.writesword(number address, number value)
2742 \begin_layout Standard
2743 Write signed word (2 elements) to given slot.
2744 Slot numbers out of range cause extension.
2747 \begin_layout Subsubsection
2748 hostmemory.readdword(number address)
2751 \begin_layout Standard
2752 Read unsigned doubleword (4 elements) from given address.
2753 Slots out of range return false.
2756 \begin_layout Subsubsection
2757 hostmemory.writedword(number address, number value)
2760 \begin_layout Standard
2761 Write unsigned doubleword (4 elements) to given slot.
2762 Slot numbers out of range cause extension.
2765 \begin_layout Subsubsection
2766 hostmemory.readsdword(number address)
2769 \begin_layout Standard
2770 Read signed doubleword (4 elements) from given address.
2771 Slots out of range return false.
2774 \begin_layout Subsubsection
2775 hostmemory.writesdword(number address, number value)
2778 \begin_layout Standard
2779 Write signed doubleword (4 elements) to given slot.
2780 Slot numbers out of range cause extension.
2783 \begin_layout Subsubsection
2784 hostmemory.readqword(number address)
2787 \begin_layout Standard
2788 Read unsigned quadword (8 elements) from given address.
2789 Slots out of range return false.
2792 \begin_layout Subsubsection
2793 hostmemory.writeqword(number address, number value)
2796 \begin_layout Standard
2797 Write unsigned quadword (4 elements) to given slot.
2798 Slot numbers out of range cause extension.
2801 \begin_layout Subsubsection
2802 hostmemory.readsqword(number address)
2805 \begin_layout Standard
2806 Read signed quadword (8 elements) from given address.
2807 Slots out of range return false.
2810 \begin_layout Subsubsection
2811 hostmemory.writesqword(number address, number value)
2814 \begin_layout Standard
2815 Write signed quadword (8 elements) to given slot.
2816 Slot numbers out of range cause extension.
2819 \begin_layout Subsection
2823 \begin_layout Standard
2827 \begin_layout Subsubsection
2828 movie.currentframe()
2831 \begin_layout Standard
2832 Return number of current frame.
2835 \begin_layout Subsubsection
2839 \begin_layout Standard
2840 Return number of frames in movie.
2843 \begin_layout Subsubsection
2847 \begin_layout Standard
2848 Return true if in readonly mode, false if in readwrite.
2851 \begin_layout Subsubsection
2855 \begin_layout Standard
2856 Returns the current value of rerecord count.
2859 \begin_layout Subsubsection
2860 movie.set_readwrite()
2863 \begin_layout Standard
2864 Set readwrite mode (does not cause on_readwrite callback).
2867 \begin_layout Subsubsection
2868 movie.frame_subframes(number frame)
2871 \begin_layout Standard
2872 Count number of subframes in specified frame (frame numbers are 1-based)
2876 \begin_layout Subsubsection
2877 movie.read_subframe(number frame, number subframe)
2880 \begin_layout Standard
2881 Read specifed subframe in specified frame and return data as array (100
2882 elements, numbered 0-99 currently).
2885 \begin_layout Subsubsection
2889 \begin_layout Standard
2890 Returns the current value of the RTC as a pair (second, subsecond).
2893 \begin_layout Subsubsection
2894 movie.unsafe_rewind([UNSAFEREWIND state])
2897 \begin_layout Standard
2898 Start setting point for unsafe rewind or jump to point of unsafe rewind.
2901 \begin_layout Itemize
2902 If called without argument, causes emulator to start process of setting
2903 unsafe rewind point.
2904 When this has finished, callback on_set_rewind occurs, passing the rewind
2905 state to lua script.
2908 \begin_layout Itemize
2909 If called with argument, causes emulator rewind to passed rewind point as
2911 Readwrite mode is implicitly activated.
2914 \begin_layout Standard
2915 The following warnings apply to unsafe rewinding:
2918 \begin_layout Itemize
2919 There are no safety checks against misuse (that's what
2920 \begin_inset Quotes eld
2924 \begin_inset Quotes erd
2930 \begin_layout Itemize
2931 Only call rewind from timeline rewind point was set from.
2934 \begin_layout Itemize
2935 Only call rewind from after the rewind point was set.
2938 \begin_layout Subsection
2942 \begin_layout Standard
2943 Routines for settings manipulation
2946 \begin_layout Subsubsection
2947 settings.get(string name)
2950 \begin_layout Standard
2951 Get value of setting.
2952 If setting is blank, returns false.
2953 If setting value can't be obtained, returns (nil, error message).
2956 \begin_layout Subsubsection
2957 settings.set(string name, string value)
2960 \begin_layout Standard
2961 Set value of setting.
2962 If setting can't be set, returns (nil, error message).
2965 \begin_layout Subsubsection
2966 settings.is_set(string name)
2969 \begin_layout Standard
2970 Returns if setting is set.
2971 If setting does not exist, returns (nil, error message).
2974 \begin_layout Subsubsection
2975 settings.blank(string name)
2978 \begin_layout Standard
2979 Blanks a setting and returns true.
2980 If setting can't be blanked, returns (nil, error message).
2983 \begin_layout Subsection
2987 \begin_layout Standard
2988 Contains various functions for managing memory
2991 \begin_layout Subsubsection
2995 \begin_layout Standard
2996 Returns the number of VMAs
2999 \begin_layout Subsubsection
3000 memory.read_vma(number index)
3003 \begin_layout Standard
3004 Reads the specified VMA (indices start from zero).
3005 Trying to read invalid VMA gives nil.
3006 The read VMA is table with the following fields:
3009 \begin_layout Itemize
3010 region_name (string): The readable name of the VMA
3013 \begin_layout Itemize
3014 baseaddr (number): Base address of the VMA
3017 \begin_layout Itemize
3018 lastaddr (number): Last address in the VMA.
3021 \begin_layout Itemize
3022 size (number): The size of VMA in bytes.
3025 \begin_layout Itemize
3026 readonly (boolean): True of the VMA corresponds to ROM.
3029 \begin_layout Itemize
3030 iospace (boolean): True if the VMA is I/O space.
3033 \begin_layout Itemize
3034 native_endian (boolean): True if the VMA has native endian as opposed to
3038 \begin_layout Subsubsection
3039 memory.find_vma(number address)
3042 \begin_layout Standard
3043 Finds the VMA containing specified address.
3044 Returns table in the same format as read_vma or nil if not found.
3047 \begin_layout Subsubsection
3048 memory.readbyte(number address)
3051 \begin_layout Standard
3052 Reads the specified address as unsigned byte and returns the result.
3055 \begin_layout Subsubsection
3056 memory.readsbyte(number address)
3059 \begin_layout Standard
3060 Reads the specified address as signed byte and returns the result.
3063 \begin_layout Subsubsection
3064 memory.writebyte(number address, number value)
3067 \begin_layout Standard
3068 Writes the specified value (negative values undergo 2's complement) to specified
3069 address (as a byte).
3072 \begin_layout Subsubsection
3073 memory.readword(number address)
3076 \begin_layout Standard
3077 Reads the specified address as unsigned word and returns the result.
3080 \begin_layout Subsubsection
3081 memory.readsword(number address)
3084 \begin_layout Standard
3085 Reads the specified address as signed word and returns the result.
3088 \begin_layout Subsubsection
3089 memory.writeword(number address, number value)
3092 \begin_layout Standard
3093 Writes the specified value (negative values undergo 2's complement) to specified
3094 address (as a word).
3097 \begin_layout Subsubsection
3098 memory.readdword(number address)
3101 \begin_layout Standard
3102 Reads the specified address as unsigned doubleword and returns the result.
3105 \begin_layout Subsubsection
3106 memory.readsdword(number address)
3109 \begin_layout Standard
3110 Reads the specified address as signed doubleword and returns the result.
3113 \begin_layout Subsubsection
3114 memory.writedword(number address, number value)
3117 \begin_layout Standard
3118 Writes the specified value (negative values undergo 2's complement) to specified
3119 address (as a doubleword).
3122 \begin_layout Subsubsection
3123 memory.readqword(number address)
3126 \begin_layout Standard
3127 Reads the specified address as unsigned quadword and returns the result.
3130 \begin_layout Subsubsection
3131 memory.readsqword(number address)
3134 \begin_layout Standard
3135 Reads the specified address as signed quadword and returns the result.
3138 \begin_layout Subsubsection
3139 memory.writeqword(number address, number value)
3142 \begin_layout Standard
3143 Writes the specified value (negative values undergo 2's complement) to specified
3144 address (as a quadword).
3147 \begin_layout Subsubsection
3148 memory.hash_region(number base, number size)
3151 \begin_layout Standard
3152 Hash specified number of bytes starting from specified address and return
3156 \begin_layout Subsubsection
3160 \begin_layout Standard
3161 Hash the current system state.
3162 Mainly useful for debugging savestates.
3165 \begin_layout Subsubsection
3166 memory.readregion(number base, number size)
3169 \begin_layout Standard
3170 Read a region of memory.
3173 \begin_layout Itemize
3174 Warning: If the region crosses VMA boundary, the results are undefined.
3177 \begin_layout Subsubsection
3178 memory.map<type>([number base, number size])
3181 \begin_layout Standard
3182 Returns a table mapping specified memory aperture for read/write.
3183 If parameters are omitted, entiere map space is the aperture.
3186 \begin_layout Itemize
3187 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
3190 \begin_layout Subsubsection
3191 memory.writeregion(number base, number size, table data)
3194 \begin_layout Standard
3195 Write a region of memory.
3198 \begin_layout Itemize
3199 Warning: If the region crosses VMA boundary, the results are undefined.
3202 \begin_layout Subsubsection
3206 \begin_layout Standard
3207 Returns a new mapping structure (MMAP_STRUCT)
3210 \begin_layout Subsubsection
3211 MMAP_STRUCT(string key, number address, string type)
3214 \begin_layout Standard
3215 Bind key in mmap structure to specified address with specified type.
3218 \begin_layout Itemize
3219 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
3222 \begin_layout Subsubsection
3223 memory.read_expr(string expr)
3226 \begin_layout Standard
3227 Evaluate specified watch expression and return result
3230 \begin_layout Subsection
3234 \begin_layout Standard
3235 Contains functions for manipulating subtitles.
3238 \begin_layout Subsubsection
3239 subtitle.byindex(number index)
3242 \begin_layout Standard
3243 Get (basetime, length) pair of specified subtitle index or nothing if index
3247 \begin_layout Subsubsection
3248 subtitle.get(number basetime, number length)
3251 \begin_layout Standard
3252 Read the specified subtitle.
3254 \begin_inset Quotes eld
3258 \begin_inset Quotes erd
3261 if the subtitle does not exist.
3264 \begin_layout Subsubsection
3265 subtitle.set(number basetime, number length, string content)
3268 \begin_layout Standard
3269 Set the specified subtitle.
3272 \begin_layout Subsubsection
3273 subtitle.deltete(number basetime, number length)
3276 \begin_layout Standard
3277 Delete the specified subtitle.
3280 \begin_layout Subsection
3284 \begin_layout Standard
3285 Contains copy of global variables from time of Lua initialization.
3289 \begin_layout Subsection
3293 \begin_layout Standard
3294 Various callbacks to Lua that can occur.
3297 \begin_layout Subsubsection
3298 Callback: on_paint(bool not_synth)
3301 \begin_layout Standard
3302 Called when screen is being painted.
3303 Any gui.* calls requiring graphic context draw on the screen.
3306 \begin_layout Standard
3307 not_synth is true if this hook is being called in response to received frame,
3311 \begin_layout Subsubsection
3312 Callback: on_video()
3315 \begin_layout Standard
3316 Called when video dump frame is being painted.
3317 Any gui.* calls requiring graphic context draw on the video.
3320 \begin_layout Subsubsection
3321 Callback: on_frame_emulated()
3324 \begin_layout Standard
3325 Called when emulating frame has completed and on_paint()/on_video() calls
3326 are about to be issued.
3329 \begin_layout Subsubsection
3330 Callback: on_frame()
3333 \begin_layout Standard
3334 Called on each starting whole frame.
3337 \begin_layout Subsubsection
3338 Callback: on_startup()
3341 \begin_layout Standard
3342 Called when the emulator is starting (lsnes.rc and --run files has been run).
3345 \begin_layout Subsubsection
3346 Callback: on_rewind()
3349 \begin_layout Standard
3350 Called when rewind movie to beginning has completed.
3353 \begin_layout Subsubsection
3354 Callback: on_pre_load(string name)
3357 \begin_layout Standard
3358 Called just before savestate/movie load occurs (note: loads are always delayed,
3359 so this occurs even when load was initiated by lua).
3362 \begin_layout Subsubsection
3363 Callback: on_err_load(string name)
3366 \begin_layout Standard
3367 Called if loadstate goes wrong.
3370 \begin_layout Subsubsection
3371 Callback: on_post_load(string name, boolean was_savestate)
3374 \begin_layout Standard
3375 Called on successful loadstate.
3376 was_savestate gives if this was a savestate or a movie.
3379 \begin_layout Subsubsection
3380 Callback: on_pre_save(string name, boolean is_savestate)
3383 \begin_layout Standard
3384 Called just before savestate save occurs (note: movie saves are synchronous
3385 and won't trigger these callbacks if called from Lua).
3388 \begin_layout Subsubsection
3389 Callback: on_err_save(string name)
3392 \begin_layout Standard
3393 Called if savestate goes wrong.
3396 \begin_layout Subsubsection
3397 Callback: on_post_save(string name, boolean is_savestate)
3400 \begin_layout Standard
3401 Called on successful savaestate.
3402 is_savestate gives if this was a savestate or a movie.
3405 \begin_layout Subsubsection
3409 \begin_layout Standard
3410 Called when emulator is shutting down.
3413 \begin_layout Subsubsection
3414 Callback: on_input(boolean subframe)
3417 \begin_layout Standard
3418 Called when emulator is just sending input to bsnes core.
3419 Warning: This is called even in readonly mode, but the results are ignored.
3422 \begin_layout Subsubsection
3423 Callback: on_reset()
3426 \begin_layout Standard
3427 Called when SNES is reset.
3430 \begin_layout Subsubsection
3431 Callback: on_readwrite()
3434 \begin_layout Standard
3435 Called when moving into readwrite mode as result of
3436 \begin_inset Quotes eld
3440 \begin_inset Quotes erd
3443 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3447 \begin_layout Subsubsection
3448 Callback: on_snoop(number port, number controller, number index, number
3452 \begin_layout Standard
3453 Called each time bsnes asks for input.
3454 The value is the final value to be sent to bsnes core (readonly mode, autohold
3455 and autofire have been taken into account).
3456 Might be useful when translating movies to format suitable for console
3458 Note: There is no way to modify the value to be sent.
3461 \begin_layout Subsubsection
3462 Callback: on_keyhook(string keyname, table state)
3465 \begin_layout Standard
3466 Sent when key that has keyhook events requested changes state.
3467 Keyname is name of the key (group) and state is the state (same kind as
3468 table values in input.raw).
3471 \begin_layout Subsubsection
3475 \begin_layout Standard
3476 Called when requested by set_idle_timeout(), the timeout has expired and
3477 emulator is waiting.
3480 \begin_layout Subsubsection
3481 Callback: on_timer()
3484 \begin_layout Standard
3485 Called when requested by set_idle_timeout() and the timeout has expired
3486 (regardless if emulator is waiting).
3489 \begin_layout Subsubsection
3490 Callback: on_set_rewind(UNSAFEREWIND r)
3493 \begin_layout Standard
3494 Called when unsafe rewind object has been constructed.
3497 \begin_layout Subsubsection
3498 Callback: on_pre_rewind()
3501 \begin_layout Standard
3502 Called just before unsafe rewind is about to occur.
3505 \begin_layout Subsubsection
3506 Callback: on_post_rewind()
3509 \begin_layout Standard
3510 Called just after unsafe rewind has occured.
3513 \begin_layout Section
3514 Memory watch expression syntax
3517 \begin_layout Standard
3518 Memory watch expressions are in RPN (Reverse Polish Notation).
3519 At the end of expression, the top entry on stack is taken as the final
3523 \begin_layout Standard
3527 \begin_layout Itemize
3528 Evaluation order is strictly left to right.
3531 \begin_layout Itemize
3532 a is the entry on top of stack
3535 \begin_layout Itemize
3536 b is the entry immediately below top of stack
3539 \begin_layout Itemize
3540 ; separates values to be pushed (no intermediate pop).
3543 \begin_layout Itemize
3544 After end of element, all used stack slots are popped and all results are
3548 \begin_layout Itemize
3549 When pushing multiple values, the pushes occur in order shown.
3552 \begin_layout Standard
3553 The following operators are available:
3556 \begin_layout Itemize
3560 \begin_layout Itemize
3564 \begin_layout Itemize
3568 \begin_layout Itemize
3572 \begin_layout Itemize
3576 \begin_layout Itemize
3580 \begin_layout Itemize
3581 b : read_signed_byte(a)
3584 \begin_layout Itemize
3588 \begin_layout Itemize
3589 d : read_signed_dword(a)
3592 \begin_layout Itemize
3596 \begin_layout Itemize
3598 \begin_inset Formula $\pi$
3604 \begin_layout Itemize
3605 q : read_signed_qword(a)
3608 \begin_layout Itemize
3612 \begin_layout Itemize
3616 \begin_layout Itemize
3620 \begin_layout Itemize
3624 \begin_layout Itemize
3625 w : read_signed_word(a)
3628 \begin_layout Itemize
3632 \begin_layout Itemize
3633 B : read_unsigned_byte(a)
3636 \begin_layout Itemize
3637 C<number>z : Push number <number> to stack.
3640 \begin_layout Itemize
3641 D : read_unsigned_dword(a)
3644 \begin_layout Itemize
3645 C0x<number>z : Push number <number> (hexadecimal) to stack.
3648 \begin_layout Itemize
3649 Q : read_unsigned_qword(a)
3652 \begin_layout Itemize
3653 R<digit> : round a to <digit> digits.
3656 \begin_layout Itemize
3657 W : read_unsigned_word(a)
3660 \begin_layout Subsection
3664 \begin_layout Standard
3665 C0x007e0878zWC0x007e002czW-
3668 \begin_layout Enumerate
3669 Push value 0x7e0878 on top of stack (C0x007e0878z).
3672 \begin_layout Enumerate
3673 Pop the value on top of stack (0x7e0878), read word value at that address
3674 and push the result,call it x1 (W).
3677 \begin_layout Enumerate
3678 Push value 0x7e002c on top of stack (C0x007e002cz).
3681 \begin_layout Enumerate
3682 Pop the value on top of stack (0x7e002c), read word value at that address
3683 and push the result,call it x2 (W).
3686 \begin_layout Enumerate
3687 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3691 \begin_layout Enumerate
3692 Since the expression ends, the final memory watch result is the top one
3693 on stack, which is x2 - x1.
3696 \begin_layout Section
3697 Modifier and key names:
3700 \begin_layout Subsection
3704 \begin_layout Subsubsection
3708 \begin_layout Standard
3709 Following modifier names are known:
3712 \begin_layout Itemize
3713 ctrl, lctrl, rctrl: Control keys
3716 \begin_layout Itemize
3717 alt, lalt, ralt: ALT keys.
3720 \begin_layout Itemize
3721 shift, lshift, rshift: Shift keys.
3724 \begin_layout Itemize
3725 meta, lmeta, rmeta: Meta keys.
3728 \begin_layout Itemize
3729 num, caps: Numlock/Capslock (these are sticky!)
3732 \begin_layout Itemize
3736 \begin_layout Subsubsection
3740 \begin_layout Standard
3741 Following key names are known:
3744 \begin_layout Itemize
3745 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
3746 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
3747 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
3748 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
3749 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
3750 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
3751 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
3752 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
3753 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
3754 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
3755 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
3756 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
3757 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
3758 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
3759 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
3760 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
3761 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
3762 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
3763 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
3764 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
3765 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
3766 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
3767 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
3768 break, menu, power, euro, undo
3771 \begin_layout Itemize
3772 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
3773 hardware-dependent scan code of <n> (useful to bind those keys that don't
3774 have symbolic names).
3777 \begin_layout Subsubsection
3778 Joystick pseudo-keys:
3781 \begin_layout Itemize
3782 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
3785 \begin_layout Itemize
3786 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
3789 \begin_layout Itemize
3790 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
3793 \begin_layout Itemize
3794 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
3797 \begin_layout Itemize
3798 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
3801 \begin_layout Itemize
3802 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
3803 position (axis modes axis and axis_inverse).
3806 \begin_layout Itemize
3807 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
3808 position (axis modes axis and axis_inverse).
3811 \begin_layout Itemize
3812 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
3816 \begin_layout Subsubsection
3820 \begin_layout Itemize
3821 Escape: Enter/Exit Command mode, cancel modal dialogs.
3824 \begin_layout Itemize
3825 Return (also KPEnter): Execute command, ok modal dialog.
3828 \begin_layout Itemize
3829 Pgup/Up (also KP8/9 if no num lock, CTRL+P; command mode): Previous command
3833 \begin_layout Itemize
3834 Pgdn/Down(also KP2/3 if no num lock, CTRL+N; command mode): Next command
3838 \begin_layout Itemize
3839 Home (also KP7 if no num lock, CTRL+A; command mode): Beginning of command.
3842 \begin_layout Itemize
3843 End (also KP1 if no num lock, CTRL+E; command mode): End of command.
3846 \begin_layout Itemize
3847 Left (also KP4 if no num lock, CTRL+B; command mode): Move cursor left.
3850 \begin_layout Itemize
3851 Right (also KP6 if no num lock, CTRL+F; command mode): Move cursor right.
3854 \begin_layout Itemize
3856 if no num lock; command mode): Delete character to right of cursor.
3859 \begin_layout Itemize
3860 Insert (also KP0 if no num lock; command mode): Toggle between insert /
3864 \begin_layout Itemize
3865 Backspace (command mode): Delete character to left of cursor.
3868 \begin_layout Itemize
3869 CTRL+LEFT (also ALT+B; command mode): Previous word.
3872 \begin_layout Itemize
3873 CTRL+RIGHT (also ALT+F; command mode): Next word.
3876 \begin_layout Itemize
3877 ALT+D (also CTRL+W; command mode): Delete word.
3880 \begin_layout Itemize
3881 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
3884 \begin_layout Subsection
3888 \begin_layout Subsubsection
3892 \begin_layout Standard
3893 Following modifier names are known:
3896 \begin_layout Itemize
3900 \begin_layout Itemize
3904 \begin_layout Itemize
3908 \begin_layout Itemize
3912 \begin_layout Itemize
3916 \begin_layout Subsubsection
3920 \begin_layout Standard
3921 Following key names are known:
3924 \begin_layout Itemize
3925 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
3926 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
3927 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
3928 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3929 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
3930 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3931 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
3932 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
3933 pause, capital, end, home, lefT, up, right, down, select, print, execute,
3934 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
3935 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
3936 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
3937 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
3938 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
3939 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
3940 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
3941 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
3942 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
3943 windows_right, windows_menu, command, special1, special2, special3, special4,
3944 special5, special6, special7, special8, special9, special10, special11,
3945 special12, special13, special14, special15, special16, special17, special18,
3946 special19, special20
3949 \begin_layout Section
3953 \begin_layout Standard
3954 Movie file is .zip archive in itself, normal ZIP archive tools work on it
3955 (note: If you recompress it, do not use compression methods other than
3956 store and deflate and especially do not use encryption of any kind).
3959 \begin_layout Subsection
3960 Detecting clean start/SRAM/Savestate
3963 \begin_layout Itemize
3965 \begin_inset Quotes eld
3969 \begin_inset Quotes erd
3972 it is savestate, otherwise:
3975 \begin_layout Itemize
3976 If file has members with names starting
3977 \begin_inset Quotes eld
3981 \begin_inset Quotes erd
3984 it is movie starting from SRAM, otherwise:
3987 \begin_layout Itemize
3988 It is movie starting from clear state.
3991 \begin_layout Subsection
3995 \begin_layout Standard
3996 Type of game ROM and region (as one line).
4000 \begin_layout Standard
4001 \begin_inset Tabular
4002 <lyxtabular version="3" rows="8" columns="3">
4003 <features tabularvalignment="middle">
4004 <column alignment="center" valignment="top" width="0">
4005 <column alignment="center" valignment="top" width="0">
4006 <column alignment="center" valignment="top" width="0">
4008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4011 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4020 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4029 \begin_layout Plain Layout
4037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4040 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4058 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4069 \begin_layout Plain Layout
4075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4078 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4098 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4136 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4145 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4156 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4165 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4174 \begin_layout Plain Layout
4182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4185 \begin_layout Plain Layout
4191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4194 \begin_layout Plain Layout
4200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4203 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4214 \begin_layout Plain Layout
4220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4223 \begin_layout Plain Layout
4229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4232 \begin_layout Plain Layout
4246 \begin_layout Standard
4250 \begin_layout Standard
4251 \begin_inset Tabular
4252 <lyxtabular version="3" rows="3" columns="2">
4253 <features tabularvalignment="middle">
4254 <column alignment="center" valignment="top" width="0">
4255 <column alignment="center" valignment="top" width="0">
4257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4260 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4280 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4289 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4300 \begin_layout Plain Layout
4306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4309 \begin_layout Plain Layout
4323 \begin_layout Subsection
4327 \begin_layout Standard
4328 Contains type of port #1 (as one line).
4329 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
4330 If not present, defaults to 'gamepad'.
4333 \begin_layout Subsection
4337 \begin_layout Standard
4338 Contains type of port #2 (as one line).
4339 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
4340 'justifier' and 'justifiers'.
4341 If not present, defaults to 'none'.
4344 \begin_layout Subsection
4348 \begin_layout Standard
4349 Contains name of the game (as one line).
4352 \begin_layout Subsection
4356 \begin_layout Standard
4357 Contains authors, one per line.
4358 Part before '|' is the full name, part after is the nickname.
4361 \begin_layout Subsection
4365 \begin_layout Standard
4367 \begin_inset Quotes eld
4371 \begin_inset Quotes erd
4375 Used to reject other saves.
4378 \begin_layout Subsection
4379 Member: controlsversion
4382 \begin_layout Standard
4384 \begin_inset Quotes eld
4388 \begin_inset Quotes erd
4392 Used to identify what controls are there.
4395 \begin_layout Subsection
4397 \begin_inset Quotes eld
4401 \begin_inset Quotes erd
4407 \begin_layout Standard
4408 Contains bsnes core version number (as one line).
4411 \begin_layout Subsection
4415 \begin_layout Standard
4416 Contains project ID (as one line).
4417 Used to identify if two movies are part of the same project.
4420 \begin_layout Subsection
4421 Member: {rom,slota,slotb}{,xml}.sha256
4424 \begin_layout Standard
4425 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4426 Absent if corresponding file is absent.
4429 \begin_layout Subsection
4430 Member: moviesram.<name>
4433 \begin_layout Standard
4434 Raw binary startup SRAM of kind <name>.
4435 Only present in savestates and movies starting from SRAM.
4438 \begin_layout Subsection
4442 \begin_layout Standard
4443 Contains frame number (as one line) of frame movie was saved on.
4444 Only present in savestates.
4447 \begin_layout Subsection
4451 \begin_layout Standard
4452 Current value of lag counter (as one line).
4453 Only present in savestates.
4456 \begin_layout Subsection
4457 Member: pollcounters
4460 \begin_layout Standard
4461 Contains poll counters (currently 100 of them), one per line.
4462 Each line is raw poll count if DRDY is set for it.
4463 Otherwise it is negative poll count minus one.
4464 Only present in savestates.
4467 \begin_layout Subsection
4471 \begin_layout Standard
4472 Raw binary dump of host memory.
4473 Only present in savestates.
4476 \begin_layout Subsection
4480 \begin_layout Standard
4481 The raw binary savestate itself.
4482 Savestate detection uses this file, only present in savestates.
4485 \begin_layout Subsection
4489 \begin_layout Standard
4490 Screenshot of current frame.
4491 Only present in savestates.
4492 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4494 Height of image is inferred from the width and size of data.
4497 \begin_layout Subsection
4501 \begin_layout Standard
4502 Raw binary SRAM of kind <name> at time of savestate.
4503 Only present in savestates.
4506 \begin_layout Subsection
4510 \begin_layout Standard
4511 The actual input track, one line per subframe (blank lines are skipped).
4514 \begin_layout Itemize
4515 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4516 part of same frame as previous, otherwise it starts a new frame.
4519 \begin_layout Itemize
4520 First subframe must start a new frame.
4523 \begin_layout Standard
4524 Length of movie in frames is number of lines in input file that start a
4528 \begin_layout Subsection
4532 \begin_layout Standard
4537 \begin_layout Itemize
4538 Each line is in form <firstframe> <numframes> <text>.
4541 \begin_layout Itemize
4542 Linefeed is encoded as
4544 n, backslash is encoded as
4551 \begin_layout Subsection
4555 \begin_layout Standard
4556 Contains textual base-10 rerecord count (as one line; emulator just writes
4557 this, it doesn't read it) + 1.
4560 \begin_layout Subsection
4564 \begin_layout Standard
4565 This member stores set of load IDs.
4566 There is one load ID per rerecord (plus one corresponding to start of project).
4569 \begin_layout Itemize
4570 This member constists of concatenation of records
4573 \begin_layout Itemize
4574 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4578 \begin_layout Itemize
4579 IDs are interpretted as 256-bit big-endian integers with warparound.
4582 \begin_layout Itemize
4583 Initial predicted ID is all zeroes.
4586 \begin_layout Standard
4587 Format of each record is:
4590 \begin_layout Itemize
4591 1 byte: Opcode byte.
4592 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4596 \begin_layout Itemize
4597 32-prefixlen bytes of ID.
4600 \begin_layout Itemize
4601 countlen bytes of big-endian count (count).
4604 \begin_layout Standard
4605 Records are processed as follows:
4608 \begin_layout Itemize
4609 To form the first ID encoded by record, take the first prefixlen bytes predicted
4610 ID and append the read ID value to it.
4611 The result is the first ID encoded.
4614 \begin_layout Itemize
4615 If countlen is 0, record encodes 1 ID.
4618 \begin_layout Itemize
4619 If countlen is 1, record encodes 2+count IDs.
4622 \begin_layout Itemize
4623 If countlen is 2, record encodes 258+count IDs.
4626 \begin_layout Itemize
4627 If countlen is 3, record encodes 65794+count IDs.
4630 \begin_layout Itemize
4631 The new predicted ID is the next ID after last one encoded by the record.
4634 \begin_layout Standard
4635 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4639 \begin_layout Subsection
4640 Member: starttime.second
4643 \begin_layout Standard
4644 Movie starting time, second part.
4645 Epoch is Unix epoch.
4646 Default is 1,000,000,000.
4649 \begin_layout Subsection
4650 Member: starttime.subsecond
4653 \begin_layout Standard
4654 Movie starting time, subsecond part.
4659 \begin_layout Subsection
4660 Member: savetime.second
4663 \begin_layout Standard
4664 Movie saving time, second part.
4665 Default is starttime.second.
4666 Only present in savestates.
4669 \begin_layout Subsection
4670 Member: savetime.subsecond
4673 \begin_layout Standard
4674 Movie saving time, subsecond part.
4675 Default is starttime.subsecond.
4676 Only present in savestates.
4679 \begin_layout Section
4680 lsvs file format (commentary tracks)
4683 \begin_layout Subsection
4687 \begin_layout Itemize
4688 Each cluster is 8kB (8192 bytes) in size.
4691 \begin_layout Itemize
4692 Cluster n starts at offset 8192*n in file.
4695 \begin_layout Itemize
4696 The following clusters are system special:
4700 \begin_layout Itemize
4701 Cluster 0 and all clusters with number multiple of 2048 (cluster tables)
4704 \begin_layout Itemize
4705 Cluster 1 (superblock)
4709 \begin_layout Subsection
4713 \begin_layout Itemize
4714 The cluster table describing cluster n is stored in cluster n & ~0x7FF (zero
4718 \begin_layout Itemize
4719 This cluster table consists of 2048 4-byte big-endian integers.
4722 \begin_layout Itemize
4723 Each entry describes a cluster in 16MB supercluster, in order.
4726 \begin_layout Itemize
4727 The valid values for entries are:
4731 \begin_layout Itemize
4732 0x00000000: Free cluster
4735 \begin_layout Itemize
4736 0x00000001: Last cluster in chain.
4739 \begin_layout Itemize
4740 0xFFFFFFFF: System cluster (cluster tables and superblock)
4743 \begin_layout Itemize
4744 (anything else): Number of next cluster in chain.
4745 Must not be multiple of 2048.
4749 \begin_layout Itemize
4750 Due to limitations of the format, there can be at most 2097052 superclusters,
4751 giving maximum file size of 16TB.
4754 \begin_layout Subsection
4758 \begin_layout Itemize
4759 The stream table chain always starts in cluster 2.
4762 \begin_layout Itemize
4763 Otherwise, it follows normal chaining.
4766 \begin_layout Itemize
4767 The stream table consists of 16-byte entries:
4771 \begin_layout Itemize
4772 The first 8 bytes of entry give big-endian beginning position of stream
4773 in units of 1/48000 s.
4776 \begin_layout Itemize
4777 The next 4 bytes of entry give big-endian beginning cluster for control
4779 0 here marks the entry as not present.
4782 \begin_layout Itemize
4783 The last 4 bytes of entry give big-endian beginning cluster for codec data.
4787 \begin_layout Itemize
4788 Stream table clusters are normal clusters, following normal chaining.
4791 \begin_layout Itemize
4792 The stream begnning position is not guarenteed unique.
4793 There can be multiple streams with the same starting position in the file.
4796 \begin_layout Subsection
4800 \begin_layout Itemize
4801 The stream control data consists of entries 4 bytes each:
4805 \begin_layout Itemize
4806 The first 2 bytes of entry gives big-endian length of packet
4809 \begin_layout Itemize
4810 The next byte of entry gives audio length of packet in units of 1/400 s.
4813 \begin_layout Itemize
4814 The last byte is control byte.
4818 \begin_layout Itemize
4819 0 means this entry is not present and the control data ends.
4822 \begin_layout Itemize
4823 1 is valid control entry.
4828 \begin_layout Itemize
4829 The stream control data can also end by running into end of the readable
4834 \begin_layout Itemize
4835 This happens if there happens to be exact multiple of 2048 packets in stream
4836 and number of packets is nonzero.
4840 \begin_layout Itemize
4841 These clusters follow normal chaining.
4844 \begin_layout Subsection
4848 \begin_layout Itemize
4849 Stream codec data consists of raw Opus data packets packed back to back
4850 with nothing in between.
4853 \begin_layout Itemize
4854 Warning: Due to internal limitations, this data must reside in the first
4855 65536 superclusters (that is, the first 1TB of the file).
4858 \begin_layout Subsection
4862 \begin_layout Itemize
4863 The superblock is stored in cluster 1.
4867 \begin_layout Itemize
4868 The first 11 bytes are
4869 \begin_inset Quotes eld
4873 \begin_inset Quotes erd
4879 \begin_layout Itemize
4880 The rest are unused.
4883 \begin_layout Itemize
4884 This cluster 1 is marked as system special.
4887 \begin_layout Section
4888 Known ROM extensions
4891 \begin_layout Itemize
4892 SNES cartridge ROMs: sfc, smc, swc, fig, ufo, sf2, gd3, gd7, dx2, mgd, mgh.
4895 \begin_layout Itemize
4896 DMG cartridge ROMs: dmg, gb.
4899 \begin_layout Itemize
4900 GBC cartridge ROMs: cgb, gbc.
4903 \begin_layout Section
4907 \begin_layout Itemize
4908 The first line must be:
4909 \begin_inset Quotes eld
4913 \begin_inset Quotes erd
4919 \begin_layout Itemize
4920 There is one needed line:
4921 \begin_inset Quotes eld
4925 \begin_inset Quotes erd
4929 This sets system type to <systype>.
4930 The following system types are valid:
4934 \begin_layout Itemize
4938 \begin_layout Itemize
4939 bsx (BS-X non-slotted)
4942 \begin_layout Itemize
4943 bsxslotted (BS-X slotted)
4946 \begin_layout Itemize
4947 sufamiturbo (Sufami Turbo)
4950 \begin_layout Itemize
4951 sgb (Super Game Boy)
4954 \begin_layout Itemize
4958 \begin_layout Itemize
4959 gbc (Game Boy Color)
4962 \begin_layout Itemize
4963 gbc_gba (Game Boy Color with GBA initial register values)
4967 \begin_layout Itemize
4968 Optionally a region can be specified:
4969 \begin_inset Quotes eld
4973 \begin_inset Quotes erd
4977 The following values are valid:
4981 \begin_layout Itemize
4982 autodetect (Autodetect region: snes and sgb only)
4985 \begin_layout Itemize
4986 ntsc (NTSC: snes, bsx, bsxslotted, sufamiturbo, sgb)
4989 \begin_layout Itemize
4990 pal (PAL: snes, sgb)
4993 \begin_layout Itemize
4994 world (World: dmg, gbc, gbc_gba)
4998 \begin_layout Itemize
4999 ROM images are loaded as:
5000 \begin_inset Quotes eld
5004 \begin_inset Quotes erd
5008 The following types are valid:
5012 \begin_layout Itemize
5013 rom (Cartridge ROM in snes, dmg, gbc, gbc_gba.
5014 BIOS in bsx, bsxslotted, sufamiturbo)
5017 \begin_layout Itemize
5018 bsx (Cartridge ROM in bsx, bsxslotted)
5021 \begin_layout Itemize
5022 slot-a (Cartridge ROM in sufamiturbo)
5025 \begin_layout Itemize
5026 slot-b (Cartridge ROM in sufamiturbo)
5030 \begin_layout Itemize
5031 ROM markup can be loaded as:
5032 \begin_inset Quotes eld
5036 \begin_inset Quotes erd
5040 The types valid are the same as for ROMs.
5043 \begin_layout Itemize
5044 Patches can be loaded as
5045 \begin_inset Quotes eld
5048 patch[<offset>] <type> <file>
5049 \begin_inset Quotes erd
5053 The types are the same as for ROMs.
5057 \begin_layout Itemize
5058 Offset is given in form [+-]<number>.
5059 Usually offset is either +0 or -512.
5062 \begin_layout Itemize
5063 Default offset is +0.
5067 \begin_layout Subsection
5071 \begin_layout LyX-Code
5075 \begin_layout LyX-Code
5079 \begin_layout LyX-Code
5080 rom rom speedygonzales.sfc
5083 \begin_layout LyX-Code
5084 patch-512 rom sonicthehedgehog.ips
5087 \begin_layout Subsection
5091 \begin_layout LyX-Code
5095 \begin_layout LyX-Code
5099 \begin_layout LyX-Code
5100 rom rom supergameboy.sfc
5103 \begin_layout LyX-Code
5104 rom dmg megamanV.dmg
5107 \begin_layout Section
5108 Quick'n'dirty encode guide
5111 \begin_layout Enumerate
5112 Start the emulator and load the ROM and movie file.
5115 \begin_layout Enumerate
5116 Set large AVI option 'set-setting avi-large on'
5119 \begin_layout Enumerate
5120 Enable dumping 'dump-avi tmpdump'
5123 \begin_layout Enumerate
5124 Unpause and let it run until you want to end dumping.
5127 \begin_layout Enumerate
5128 Close the emulator (closing the window is the easiest way).
5132 \begin_layout Enumerate
5133 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
5134 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
5137 \begin_layout Enumerate
5138 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
5141 \begin_layout Enumerate
5142 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
5143 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
5146 \begin_layout Enumerate
5147 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
5148 Now final.mkv contains quick'n'dirty encode.
5151 \begin_layout Section
5152 Axis configurations for some gamepad types:
5155 \begin_layout Subsection
5159 \begin_layout Standard
5160 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
5163 \begin_layout LyX-Code
5164 set-axis joystick0axis2 pressure-+
5167 \begin_layout LyX-Code
5168 set-axis joystick0axis5 pressure-+
5171 \begin_layout Itemize
5172 This is needed for SDL only.
5173 EVDEV sets those types correctly.
5176 \begin_layout Subsection
5178 \begin_inset Quotes eld
5182 \begin_inset Quotes erd
5188 \begin_layout Standard
5189 Axes 8-19 should be disabled.
5192 \begin_layout LyX-Code
5193 set-axis joystick0axis8 disabled
5196 \begin_layout LyX-Code
5197 set-axis joystick0axis9 disabled
5200 \begin_layout LyX-Code
5201 set-axis joystick0axis10 disabled
5204 \begin_layout LyX-Code
5205 set-axis joystick0axis11 disabled
5208 \begin_layout LyX-Code
5209 set-axis joystick0axis12 disabled
5212 \begin_layout LyX-Code
5213 set-axis joystick0axis13 disabled
5216 \begin_layout LyX-Code
5217 set-axis joystick0axis14 disabled
5220 \begin_layout LyX-Code
5221 set-axis joystick0axis15 disabled
5224 \begin_layout LyX-Code
5225 set-axis joystick0axis16 disabled
5228 \begin_layout LyX-Code
5229 set-axis joystick0axis17 disabled
5232 \begin_layout LyX-Code
5233 set-axis joystick0axis18 disabled
5236 \begin_layout LyX-Code
5237 set-axis joystick0axis19 disabled
5240 \begin_layout Section
5244 \begin_layout Subsection
5245 Problems from BSNES core:
5248 \begin_layout Itemize
5249 The whole pending save stuff.
5252 \begin_layout Itemize
5253 Lack of layer hiding.
5256 \begin_layout Itemize
5257 It is slow (especially accuracy).
5260 \begin_layout Itemize
5261 Firmwares can't be loaded from ZIP archives.
5264 \begin_layout Subsection
5268 \begin_layout Itemize
5269 Modifiers don't work with pseudo-keys (SDL, EVDEV).
5272 \begin_layout Itemize
5273 Audio for last dumped frame is not itself dumped.
5276 \begin_layout Itemize
5277 Audio in UI is pretty bad in quality if game doesn't run at full speed.
5280 \begin_layout Itemize
5281 No menus, command based interface (SDL).
5284 \begin_layout Itemize
5285 Long commands don't scroll.
5288 \begin_layout Section
5292 \begin_layout Subsection
5296 \begin_layout Itemize
5300 \begin_layout Itemize
5301 Fix dumper video corruption with levels 10-18.
5304 \begin_layout Subsection
5308 \begin_layout Itemize
5312 \begin_layout Itemize
5313 Lots of code cleanups
5316 \begin_layout Itemize
5317 Lua interface to settings
5320 \begin_layout Itemize
5321 Allow specifying AVI borders without Lua
5324 \begin_layout Itemize
5325 Fix scaling if vscale > 1 and originx > 0 (left border exists)
5328 \begin_layout Itemize
5329 on_snoop lua callback
5332 \begin_layout Itemize
5333 Faster movie loading and saving.
5336 \begin_layout Subsection
5340 \begin_layout Itemize
5344 \begin_layout Subsection
5348 \begin_layout Itemize
5352 \begin_layout Itemize
5353 Save jukebox functionality.
5356 \begin_layout Subsection
5360 \begin_layout Itemize
5361 Try to fix some nasty failing movie load edge cases
5364 \begin_layout Itemize
5365 Allow specifying scripts to run on command line.
5368 \begin_layout Subsection
5372 \begin_layout Itemize
5373 Major source code reorganization.
5376 \begin_layout Itemize
5377 Backup savestates before overwriting.
5380 \begin_layout Itemize
5381 Don't crash if loading initial state fails.
5384 \begin_layout Subsection
5388 \begin_layout Itemize
5392 \begin_layout Itemize
5393 Fix author name parsing
5396 \begin_layout Itemize
5397 Fix rerecord counting
5400 \begin_layout Itemize
5401 (SDL) Print messages to console if SDL is uninitialized
5404 \begin_layout Itemize
5405 Add movieinfo program
5408 \begin_layout Itemize
5409 Fix loading movies starting from SRAM.
5412 \begin_layout Subsection
5416 \begin_layout Itemize
5417 Add support for unattended dumping
5420 \begin_layout Itemize
5421 Fix compiling for Win32
5424 \begin_layout Itemize
5425 Don't lock up if sound can't be initialized
5428 \begin_layout Itemize
5429 Strip trailing CR from commands
5432 \begin_layout Itemize
5433 Don't try to do dubious things in global ctors (fix crash on startup)
5436 \begin_layout Subsection
5440 \begin_layout Itemize
5441 Small documentation tweaking
5444 \begin_layout Itemize
5448 \begin_layout Itemize
5449 Fix major bug in modifier matching
5452 \begin_layout Subsection
5456 \begin_layout Itemize
5457 Lots of documentation fixes
5460 \begin_layout Itemize
5461 Use dedicated callbacks for event backcomm., not commands.
5464 \begin_layout Itemize
5465 Ensure that the watchdog is not hit when executing delayed reset.
5468 \begin_layout Itemize
5469 Remove errant tab from joystick message.
5472 \begin_layout Subsection
5476 \begin_layout Itemize
5477 Make autofire operate in absolute time, not linear time
5480 \begin_layout Itemize
5481 Reinitialize controls when resuming from loadstate
5484 \begin_layout Itemize
5485 Some more code cleanups
5488 \begin_layout Itemize
5489 If Lua allocator fails, call OOM_panic()
5492 \begin_layout Itemize
5493 Byte/word/dword/qword sized host memory write/read functions.
5496 \begin_layout Itemize
5497 Dump at correct framerate if dumping interlaced NTSC (height=448).
5500 \begin_layout Subsection
5504 \begin_layout Itemize
5505 Actually include the complete source code
5508 \begin_layout Itemize
5512 \begin_layout Subsection
5516 \begin_layout Itemize
5517 Document {save,start}time.{,sub}second.
5520 \begin_layout Itemize
5521 Intercept time() from bsnes core.
5524 \begin_layout Subsection
5528 \begin_layout Itemize
5529 Allow disabling time() interception (allow build on Mac OS X)
5532 \begin_layout Itemize
5533 Use SDLMain on Mac OS X (make SDL not crash)
5536 \begin_layout Itemize
5537 Disable delayed resets (just plain too buggy for now).
5540 \begin_layout Itemize
5544 \begin_layout Itemize
5545 Use 16-bit for graphics/video instead of 32-bit.
5548 \begin_layout Itemize
5549 gui.rectangle/gui.pixel
5552 \begin_layout Itemize
5556 \begin_layout Itemize
5557 New CSCD writer implementation.
5560 \begin_layout Subsection
5564 \begin_layout Itemize
5565 Fix interaction of * and +.
5568 \begin_layout Itemize
5572 \begin_layout Itemize
5573 Use gettimeofday()/usleep(), these seem portable enough.
5576 \begin_layout Itemize
5577 Move joystick axis manipulation to keymapper code.
5580 \begin_layout Itemize
5581 Changes to how read-only works.
5584 \begin_layout Itemize
5585 Refactor controller input code.
5588 \begin_layout Subsection
5592 \begin_layout Itemize
5593 Fix mouseclick scale compensation.
5596 \begin_layout Itemize
5597 Draw area boundaries correctly in SDL code.
5600 \begin_layout Itemize
5604 \begin_layout Itemize
5605 Fix CSCD output (buffer overrun and race condition).
5608 \begin_layout Subsection
5612 \begin_layout Itemize
5613 JMD dumping support.
5616 \begin_layout Itemize
5617 Allow unattended dumping to JMD.
5620 \begin_layout Itemize
5624 \begin_layout Itemize
5625 Switch back to 32-bit colors.
5628 \begin_layout Itemize
5629 Add Lua function gui.color.
5632 \begin_layout Itemize
5633 Use some new C++11 features in GCC 4.6.
5636 \begin_layout Itemize
5637 Be prepared for core frequency changes.
5640 \begin_layout Itemize
5641 Pass colors in one chunk from Lua.
5644 \begin_layout Subsection
5648 \begin_layout Itemize
5649 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
5650 memory.read_vma() and memory.find_vma().
5653 \begin_layout Itemize
5654 Numerious documentation fixups
5657 \begin_layout Itemize
5658 RTC time format changed
5661 \begin_layout Itemize
5662 Reformat flags display
5665 \begin_layout Itemize
5666 Allow lua package name to be overridden
5669 \begin_layout Itemize
5670 SDUMP (high-quality dumping).
5673 \begin_layout Itemize
5674 Split platform support to plugins.
5677 \begin_layout Itemize
5678 Make all sound plugins support basic sound commands
5681 \begin_layout Itemize
5682 Support portaudio for sound.
5685 \begin_layout Itemize
5686 Allow disable Lua/SDL searching.
5689 \begin_layout Itemize
5690 Upconvert colors when copying lcscreen to screen.
5693 \begin_layout Itemize
5694 Reorganize source tree.
5697 \begin_layout Itemize
5698 Evdev joystick support.
5701 \begin_layout Itemize
5702 Refactor more code into generic window code.
5705 \begin_layout Subsection
5709 \begin_layout Itemize
5710 Refactor message handling.
5713 \begin_layout Itemize
5717 \begin_layout Itemize
5721 \begin_layout Itemize
5722 Finish pending saves before load/quit.
5725 \begin_layout Itemize
5726 Wxwidgets graphics plugin.
5729 \begin_layout Subsection
5733 \begin_layout Itemize
5734 Get rid of win32-crap.[ch]pp.
5737 \begin_layout Itemize
5738 Move files around a lot.
5741 \begin_layout Itemize
5742 Get rid of need for host C++ compiler.
5745 \begin_layout Itemize
5749 \begin_layout Itemize
5750 Refactor inter-component communication.
5753 \begin_layout Itemize
5757 \begin_layout Itemize
5758 Fix crash on multiline aliases.
5761 \begin_layout Itemize
5762 Load/Save settings in wxwidgets gui.
5765 \begin_layout Subsection
5769 \begin_layout Itemize
5770 Patch problems in bsnes core
5773 \begin_layout Itemize
5774 SNES is little-endian, not big-endian!
5777 \begin_layout Itemize
5778 Fix memory corruption in lcscreen::load()
5781 \begin_layout Subsection
5785 \begin_layout Itemize
5786 Fix interpretting repeat counts in rrdata loading.
5789 \begin_layout Itemize
5790 New lua callback: on_frame()
5793 \begin_layout Itemize
5794 Remove calls to runtosave() that aren't supposed to be there
5797 \begin_layout Itemize
5798 Lua function: movie.read_rtc()
5801 \begin_layout Itemize
5802 Ignore src/fonts/font.cpp
5805 \begin_layout Itemize
5806 Fix more bsnes core problems
5809 \begin_layout Itemize
5810 Control bsnes random seeding
5813 \begin_layout Itemize
5817 \begin_layout Itemize
5818 Some bsnes core debugging features (state dump and state hash)
5821 \begin_layout Itemize
5822 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
5823 it was 'lsnes rr0-beta21').
5826 \begin_layout Subsection
5830 \begin_layout Itemize
5831 Fix memory corruption due to macro/field mixup
5834 \begin_layout Itemize
5835 search-memory update
5838 \begin_layout Itemize
5839 Allow direct-mapped framebuffer
5842 \begin_layout Itemize
5843 SDL: Use SDL_ANYFORMAT if possible
5846 \begin_layout Itemize
5847 SDMP2SOX: 2s delay modes.
5850 \begin_layout Itemize
5854 \begin_layout Itemize
5855 Use sed -E, not sed -r.
5856 Fixes building on Mac OS X.
5859 \begin_layout Itemize
5860 Wxwidgets: Save jukebox on exit
5863 \begin_layout Itemize
5864 Fix RTC if using load-movie on savestate.
5867 \begin_layout Itemize
5868 Fix crash related to full console mode.
5871 \begin_layout Subsection
5875 \begin_layout Itemize
5876 Wxwidgets: Allow bringing application to foreground on Mac OS X.
5879 \begin_layout Itemize
5880 Wxwidgets: Allow compiling on Mac OS X.
5883 \begin_layout Itemize
5884 Use movie compare instead of movie hashing (faster save/load).
5887 \begin_layout Itemize
5891 \begin_layout Subsection
5895 \begin_layout Itemize
5896 sdmp2sox: Pad soundtrack if using -l or -L.
5899 \begin_layout Itemize
5900 sdmp2sox: Fix NTSC overscan.
5903 \begin_layout Itemize
5904 sdmp2sox: Add AR correction mode.
5907 \begin_layout Itemize
5908 call lua_close() when exiting.
5911 \begin_layout Itemize
5912 Fix zip_writer bug causing warnings from info-zip and error from advzip.
5915 \begin_layout Subsection
5919 \begin_layout Itemize
5920 Fix IPS patching code (use bsnes core IPS patcher).
5923 \begin_layout Itemize
5924 Implement BPS patching (using bsnes core IPS patcher).
5927 \begin_layout Itemize
5928 Add feature to load headered ROMs.
5931 \begin_layout Subsection
5935 \begin_layout Itemize
5936 Show command names when showing keybindings
5939 \begin_layout Subsection
5943 \begin_layout Itemize
5944 Fix pause-on-end to be actually controllable
5947 \begin_layout Itemize
5948 SDL: Poll all events in queue, not just first one (fixes slowness in command
5952 \begin_layout Itemize
5953 Wxwidgets: Fix ROM loading.
5956 \begin_layout Subsection
5960 \begin_layout Itemize
5961 Lua: Add gui.textH, gui.textV, gui.textHV
5964 \begin_layout Itemize
5965 Fix text colors on SDL on Mac OS X
5968 \begin_layout Itemize
5969 Mode 'F' for finished in readonly mode.
5972 \begin_layout Itemize
5976 \begin_layout Itemize
5977 Reliably pause after skip poll
5980 \begin_layout Itemize
5981 Split UI and core into their own threads
5984 \begin_layout Subsection
5988 \begin_layout Itemize
5989 Remove leftover dummy SRAM slot
5992 \begin_layout Itemize
5993 Fix controller numbers.
5996 \begin_layout Subsection
6000 \begin_layout Itemize
6001 Fix lsnes-dumpavi after interface change.
6004 \begin_layout Itemize
6005 Also give BSNES patches for v085.
6008 \begin_layout Itemize
6009 Pack movie data in memory.
6012 \begin_layout Subsection
6016 \begin_layout Itemize
6017 Fix framecount/length given when loading movies.
6020 \begin_layout Itemize
6021 Controller command memory leak fixes.
6024 \begin_layout Itemize
6025 Don't leak palette if freeing screen object.
6028 \begin_layout Subsection
6032 \begin_layout Itemize
6036 \begin_layout Itemize
6037 Wxwidgets: Allow controlling dumper from the menu.
6040 \begin_layout Subsection
6044 \begin_layout Itemize
6045 Rewrite parts of manual
6048 \begin_layout Itemize
6049 Lua: Make it work with Lua 5.2.
6052 \begin_layout Subsection
6056 \begin_layout Itemize
6057 Win32: Fix compile errors.
6060 \begin_layout Subsection
6064 \begin_layout Itemize
6065 Refactor controller input code.
6068 \begin_layout Itemize
6069 Fix crash when using command line on SDL / Mac OS X.
6072 \begin_layout Subsection
6076 \begin_layout Itemize
6077 Delete core/coroutine (obsolete)
6080 \begin_layout Itemize
6081 Lag input display by one frame.
6084 \begin_layout Itemize
6085 Rewind movie to beginning function.
6088 \begin_layout Itemize
6089 Fix wrong frame number reported to Lua when repainting after loadstate
6092 \begin_layout Itemize
6093 Support UI editing of jukebox
6096 \begin_layout Itemize
6097 Wxwidgets: Save settings on exit.
6100 \begin_layout Itemize
6101 Support ${project} for filenames
6104 \begin_layout Itemize
6105 SDL: Fix command history
6108 \begin_layout Subsection
6112 \begin_layout Itemize
6113 Fix some order-of-global-ctor bugs.
6116 \begin_layout Subsection
6120 \begin_layout Itemize
6121 Fix crashes when quitting on Win32.
6124 \begin_layout Subsection
6128 \begin_layout Itemize
6129 EVDEV: Queue keypresses from joystick, don't send directly
6132 \begin_layout Itemize
6133 Wxwidgets: Load-Preserve that actually works.
6136 \begin_layout Subsection
6140 \begin_layout Itemize
6141 Wxwidgets: GUI for memory search.
6144 \begin_layout Itemize
6145 Warn about using synchronous queue in UI callback.
6148 \begin_layout Subsection
6152 \begin_layout Itemize
6153 Remember last saved file for each ROM
6156 \begin_layout Itemize
6157 Support MT dumping via boost.
6160 \begin_layout Itemize
6164 \begin_layout Itemize
6168 \begin_layout Itemize
6169 Make mouse be ordinary input instead of special-casing
6172 \begin_layout Itemize
6173 SDL: Don't screw up commands with NUL codepoints.
6176 \begin_layout Subsection
6180 \begin_layout Itemize
6181 Merge status panel and main window
6184 \begin_layout Itemize
6185 True movie slot support (the rest of it)
6188 \begin_layout Itemize
6189 SDL: Fix compilation error
6192 \begin_layout Itemize
6193 Elminate cross calls in dump menu code.
6196 \begin_layout Subsection
6200 \begin_layout Itemize
6201 Cancel pending saves command
6204 \begin_layout Itemize
6205 Wxwidgets: Code refactoring
6208 \begin_layout Itemize
6209 Wxwidgets: Fix system -> reset
6212 \begin_layout Itemize
6213 Wxwidgets: Read watch expressions in the right thread
6216 \begin_layout Subsection
6220 \begin_layout Itemize
6221 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
6225 \begin_layout Itemize
6226 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
6229 \begin_layout Itemize
6230 Don't append trailing '-' to prefix when saving movie.
6233 \begin_layout Itemize
6234 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
6237 \begin_layout Subsection
6241 \begin_layout Itemize
6242 Document memory watch syntax.
6245 \begin_layout Subsection
6249 \begin_layout Itemize
6250 Fix unattended dumping (lsnes-dumpavi)
6253 \begin_layout Itemize
6257 \begin_layout Itemize
6258 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
6261 \begin_layout Itemize
6262 Add option to control sample rate preturbation in AVI dumper
6265 \begin_layout Subsection
6269 \begin_layout Itemize
6270 Wxwidgets: Fix dumper submodes
6273 \begin_layout Itemize
6274 Set core controller types before loadstate
6277 \begin_layout Subsection
6281 \begin_layout Itemize
6282 Fix compiling with bsnes v086.
6285 \begin_layout Subsection
6289 \begin_layout Itemize
6290 Don't prompt before quitting
6293 \begin_layout Itemize
6294 Start unpaused, preserve pause/unpause over load.
6297 \begin_layout Itemize
6298 Try to autodetect if ROM is headered.
6301 \begin_layout Itemize
6302 Wxwidgets: Only bring up ROM patching screen if specifically requested.
6305 \begin_layout Itemize
6306 Allow configuring some hotkeys.
6309 \begin_layout Subsection
6313 \begin_layout Itemize
6314 Lots of code cleanups
6317 \begin_layout Itemize
6318 Fix JMD compression (JMD dumping was broken)
6321 \begin_layout Itemize
6322 Don't crash if Lua C function throws an exception.
6325 \begin_layout Itemize
6326 Support bitmap drawing in Lua.
6329 \begin_layout Itemize
6330 Fix bsnes v085/v086 patches.
6333 \begin_layout Itemize
6334 Improve stability on win32.
6337 \begin_layout Subsection
6341 \begin_layout Itemize
6342 Don't corrupt movie if movie length is integer multiple of frames per page.
6345 \begin_layout Subsection
6349 \begin_layout Itemize
6350 New Lua hooks: on_rewind, on_frame_emulated, on_idle, on_timer
6353 \begin_layout Itemize
6354 New Lua functions: emulator_ready(), utime(), set_idle_timeout(), set_timer_time
6355 out(), bit.extract(), bit.value(), input.geta(), input.seta() and input.controllertyp
6359 \begin_layout Itemize
6360 Wxwidgets: Fix internal focus lost (hotkeys stop working)
6363 \begin_layout Itemize
6364 Wxwidgets: Fix broken modifiers
6367 \begin_layout Itemize
6368 on_paint has parameter now.
6371 \begin_layout Itemize
6372 Optional initital fill for bitmaps
6375 \begin_layout Itemize
6376 Fix palette changing.
6379 \begin_layout Itemize
6380 Optimize rendering a bit.
6383 \begin_layout Itemize
6387 \begin_layout Subsection
6391 \begin_layout Itemize
6392 Movieinfo: Fix display of port #2 type.
6395 \begin_layout Itemize
6396 Call on_input() after loadstate.
6399 \begin_layout Subsection
6403 \begin_layout Itemize
6404 Fix writing port2 data to movie.
6407 \begin_layout Itemize
6408 Fix SRAM handling with Bsnes v087.
6411 \begin_layout Subsection
6415 \begin_layout Itemize
6416 Library loading support
6419 \begin_layout Itemize
6420 Built-in TSCC encoder
6423 \begin_layout Itemize
6424 Hi-color (256T colors) dumping.
6427 \begin_layout Itemize
6428 Dump over TCP/IP(v6)
6431 \begin_layout Itemize
6432 Hidable status panel
6435 \begin_layout Itemize
6439 \begin_layout Itemize
6440 Adjustable sound volume
6443 \begin_layout Itemize
6447 \begin_layout Itemize
6448 Allow DnD into filename boxes
6451 \begin_layout Itemize
6455 \begin_layout Itemize
6456 Portaudio: Fix speaker popping at start
6459 \begin_layout Itemize
6463 \begin_layout Itemize
6464 Speed adjustment menu
6467 \begin_layout Itemize
6468 Win32 joystick support
6471 \begin_layout Itemize
6472 Lua: gui.rainbow and gui.box
6475 \begin_layout Itemize
6476 Split key lists into classes (the key list was large!)
6479 \begin_layout Itemize
6480 More save slots support
6483 \begin_layout Itemize
6484 Wxwidgets (wxJoystick) joystick support
6487 \begin_layout Subsection
6491 \begin_layout Itemize
6492 Lots of internal joystick refactoring
6495 \begin_layout Itemize
6496 Evdev: Add mapping for BTN_TOOL_QUINTTAP
6499 \begin_layout Itemize
6500 Wxwidgets: Settings mode (open settings without ROM)
6503 \begin_layout Itemize
6504 Wxwidgets: Prompt key to use option
6507 \begin_layout Itemize
6508 Wxwidgets: Fix crash if key goes away underneath
6511 \begin_layout Itemize
6512 Wxwidgets: Fix mouse position in presence of scaling
6515 \begin_layout Itemize
6516 AVI dumper: Mode 4 (high-quality resampling to common rate using SRC)
6519 \begin_layout Itemize
6520 Wxwidgets: Redesign hotkeys dialog to avoid tree control (tree control doesn't
6521 seem to work well on WinXP)
6524 \begin_layout Itemize
6525 Start paused option.
6528 \begin_layout Subsection
6532 \begin_layout Itemize
6536 \begin_layout Itemize
6537 lsnes-dumpavi: Start Lua before starting dumper
6540 \begin_layout Itemize
6541 AVI: Fix secondary audio in mode 4.
6544 \begin_layout Subsection
6548 \begin_layout Itemize
6549 AVI: Refactor ZMBV a bit.
6552 \begin_layout Itemize
6553 Fix error reading analog values from movie file
6556 \begin_layout Subsection
6560 \begin_layout Itemize
6561 Delayed reset support
6564 \begin_layout Itemize
6565 Lua: memory.hash_region
6568 \begin_layout Subsection
6572 \begin_layout Itemize
6573 Rework the build system
6576 \begin_layout Itemize
6577 Typing input support
6580 \begin_layout Itemize
6581 Fix building with bsnes v086 and v087.
6584 \begin_layout Itemize
6585 SDL: Save settings on exit
6588 \begin_layout Itemize
6589 SDL: Command to enter command line mode with given command.
6592 \begin_layout Itemize
6593 SDL: More advanced command editing.
6596 \begin_layout Subsection
6600 \begin_layout Itemize
6602 \begin_inset Quotes eld
6605 arrow keys and enter don't work
6606 \begin_inset Quotes erd
6612 \begin_layout Itemize
6616 \begin_layout Itemize
6617 Show mode changes due to rewinding.
6620 \begin_layout Itemize
6621 Unsafe rewind support
6624 \begin_layout Itemize
6625 Fix directory transversal.
6628 \begin_layout Subsection
6632 \begin_layout Itemize
6633 AVI: Sound mode 5 (48kHz high-quality)
6636 \begin_layout Itemize
6640 \begin_layout Itemize
6641 Map the SNES bus into address space
6644 \begin_layout Itemize
6645 Fix loading memory watch files with CRLF line endings
6648 \begin_layout Subsection
6652 \begin_layout Itemize
6653 Map bsnes internal state into memory space
6656 \begin_layout Itemize
6658 \begin_inset Quotes eld
6661 click on panel wedges the emulator
6662 \begin_inset Quotes erd
6668 \begin_layout Itemize
6669 DnD movies/saves on the main window.
6672 \begin_layout Subsection
6676 \begin_layout Itemize
6677 Split core bindings into own module.
6680 \begin_layout Itemize
6681 Remember invalid settings
6684 \begin_layout Itemize
6685 Support for modified Gambatte core for GB/GBC emulation.
6688 \begin_layout Itemize
6689 Reload/swap ROM function
6692 \begin_layout Subsection
6696 \begin_layout Itemize
6697 Fix step poll function
6700 \begin_layout Subsection
6704 \begin_layout Itemize
6705 Non-insane savestate anchoring
6708 \begin_layout Subsection
6712 \begin_layout Itemize
6713 More Memory search methods
6716 \begin_layout Itemize
6717 Preserve movie if loading in RO mode.
6720 \begin_layout Itemize
6721 Fix a obscure case in timeline check
6724 \begin_layout Itemize
6725 Revamp the entiere ROM loading code
6728 \begin_layout Itemize
6732 \begin_layout Itemize
6736 \begin_layout Itemize
6737 Standalone hotkey config dialog
6740 \begin_layout Itemize
6741 Show bindings in more user-friendly format
6744 \begin_layout Subsection
6748 \begin_layout Itemize
6752 \begin_layout Itemize
6753 Fix uninitialized variables in bsnes v085
6756 \begin_layout Subsection
6760 \begin_layout Itemize
6761 Merge gambatte core into mainline (from its own branch)
6764 \begin_layout Itemize
6765 Wxwidgets: Show expected dump file formats
6768 \begin_layout Itemize
6769 Memory watch: Data typing
6772 \begin_layout Itemize
6773 lsnes internal MMIO area.
6776 \begin_layout Itemize
6777 Wxwidgets: New memory watch editor
6780 \begin_layout Itemize
6781 Hexadecimal memory watches
6784 \begin_layout Itemize
6785 Wxwidgets: Monospaced panel
6788 \begin_layout Itemize
6789 Wxwidgets: Split memory watches in panel
6792 \begin_layout Itemize
6793 Wxwidgets: Disable VMAs in memory search
6796 \begin_layout Itemize
6797 lsnes-dumpavi: Fix speed bug
6800 \begin_layout Itemize
6801 Movie subtitle support
6804 \begin_layout Itemize
6805 Fix rerecord count reporting
6808 \begin_layout Itemize
6809 Don't trash movie when loading in readonly mode.
6812 \begin_layout Subsection
6816 \begin_layout Itemize
6817 Wxwidgets: Fix crashes on closing settings dialogs on Mac OS X.
6820 \begin_layout Itemize
6821 Fix build on Mac OS X.
6824 \begin_layout Itemize
6828 \begin_layout Itemize
6829 Wxwidgets: Hidable messages window
6832 \begin_layout Itemize
6836 \begin_layout Itemize
6837 Bsnes: Support inconsistent saves
6840 \begin_layout Itemize
6841 Bsnes: Allow simulating saving every frame
6844 \begin_layout Itemize
6845 Fix desync if savestate is loaded in readonly mode in certain conditions.
6848 \begin_layout Itemize
6849 Wxwidgets: Fix save dialogs on Mac OS X.
6852 \begin_layout Itemize
6853 Wxwidgets: Fix insane status width on Win32.
6856 \begin_layout Itemize
6857 Wxwidgets: Fix autohold processing to be faster.
6860 \begin_layout Itemize
6861 Wxwidgets: Allow loading ROMs and movies from commandline.
6864 \begin_layout Subsection
6868 \begin_layout Itemize
6869 Be a bit smarter with --load
6872 \begin_layout Itemize
6873 Rewrote higher-level parts of audio system
6876 \begin_layout Itemize
6877 Tool to build commentary tracks
6880 \begin_layout Itemize
6884 \begin_layout Itemize
6885 Gambatte: Add support for SVN358
6888 \begin_layout Itemize
6889 Use builtin font when rendering status panel.
6892 \begin_layout Itemize
6893 Option to detach memory watch to its own window.
6896 \begin_layout Itemize
6897 Recent ROMs/Movies menu
6900 \begin_layout Itemize
6904 \begin_layout Itemize
6905 Useful lag counter for SNES games that autopoll
6908 \begin_layout Itemize
6909 Fix buffer overflow in gambatte sound output
6912 \begin_layout Subsection
6916 \begin_layout Itemize
6917 Don't blow up on wxGTK if the window is hidden somehow
6920 \begin_layout Itemize
6921 Support simultaneous drop of ROM and movie.
6924 \begin_layout Itemize
6925 Gambatte: Don't save spurious SRAMs.
6928 \begin_layout Itemize
6929 Make SGB ROMs actually usable.
6932 \begin_layout Itemize
6933 Fix so that saved movies appear in recent movies.
6936 \begin_layout Itemize
6937 Don't open multiple commentary editors at once.
6940 \begin_layout Subsection
6944 \begin_layout Itemize
6945 Lua: memory.readregion/memory.writeregion
6948 \begin_layout Itemize
6949 Lua: memory.map{,s}{byte,word,dword,qword}
6952 \begin_layout Itemize
6953 Lua: memory.map_structure
6956 \begin_layout Itemize
6957 Lua: Fix bus_address for gambatte
6960 \begin_layout Itemize
6961 Fix features dependent of bsnes debugger
6964 \begin_layout Itemize
6965 Cleanup bsnes debugger logic
6968 \begin_layout Itemize
6969 Fix resets in presence of save every frame
6972 \begin_layout Subsection
6976 \begin_layout Itemize
6977 Lua: input.lcid_to_pcid
6980 \begin_layout Itemize
6981 Fix off-by-one bug with slot hashes
6984 \begin_layout Itemize
6985 Fix crashes on certain memory watch expressions
6988 \begin_layout Itemize
6989 Lua: memory.read_expr
6992 \begin_layout Itemize
6993 Lua: Fix memory.read_expr on nil argument
6996 \begin_layout Itemize
6997 Fix the code to compile on G++ 4.7
7000 \begin_layout Itemize
7001 Change button_id to be a function pointer field, not a virtual method
7004 \begin_layout Itemize
7005 Add bsnes patches to fix libsnes to compile on GCC 4.7
7008 \begin_layout Itemize
7009 Gambatte: Always use legacy lag counting
7012 \begin_layout Itemize
7013 Memory commands: Memory addresses are up to 16 hex digits, not up to 8
7016 \begin_layout Itemize
7017 Fix analog controllers
7020 \begin_layout Itemize
7024 \begin_layout Itemize
7025 Fix button symbols in input display
7028 \begin_layout Itemize
7029 Compensate for nuts bsnes superscope/justifier handling
7032 \begin_layout Itemize
7033 Lua: Fix bit.extract boolean handling