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 Run <script> as if commands were entered on the command line.
507 \begin_layout Subsection
511 \begin_layout Standard
512 <address> may be decimal or hexadecimal (prefixed with '0x').
513 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
517 \begin_layout Standard
518 The available element <sizes> are:
521 \begin_layout Itemize
525 \begin_layout Itemize
529 \begin_layout Itemize
533 \begin_layout Itemize
537 \begin_layout Standard
538 When reading RAM and ROM, multi-byte reads/writes are big-endian.
539 When dealing with DSP memory, multi-byte reads/writes are native-endian
540 (do not use operand sizes exceeding DSP bitness, except dword is OK for
544 \begin_layout Subsubsection
545 read-<size> <address>
548 \begin_layout Standard
549 Read the value of byte in <address>.
552 \begin_layout Subsubsection
553 read-s<size> <address>
556 \begin_layout Standard
557 Read the value of signed byte in <address>.
560 \begin_layout Subsubsection
561 write-<size> <address> <value>
564 \begin_layout Standard
565 Write <value> to byte in address <address>.
568 \begin_layout Subsection
572 \begin_layout Standard
573 These commands are not available in lsnesrc, but are available after ROM
577 \begin_layout Subsubsection
581 \begin_layout Standard
582 Quits the emulator (asking for confirmation).
583 If /y is given, no confirmation is asked.
586 \begin_layout Subsubsection
590 \begin_layout Standard
591 Toggle paused/unpaused
594 \begin_layout Subsubsection
598 \begin_layout Standard
600 If the button is still held after configurable timeout expires, game unpauses
601 for the duration frame advance is held.
604 \begin_layout Subsubsection
608 \begin_layout Standard
610 If the button is still held after configurable timeout expires, game unpauses
611 for the duration frame advance is held.
614 \begin_layout Subsubsection
618 \begin_layout Standard
619 Skip to first poll in frame after current.
622 \begin_layout Subsubsection
626 \begin_layout Standard
627 Reset the SNES after this frame.
630 \begin_layout Subsubsection
634 \begin_layout Standard
635 Load savestate <filename> in current mode.
638 \begin_layout Subsubsection
639 load-state <filename>
642 \begin_layout Standard
643 Load savestate <filename> in readwrite mode.
646 \begin_layout Subsubsection
647 load-readonly <filename>
650 \begin_layout Standard
651 Load savestate <filename> in readonly mode.
654 \begin_layout Subsubsection
655 load-preserve <filename>
658 \begin_layout Standard
659 Load savestate <filename> in readonly mode, preserving current events.
662 \begin_layout Subsubsection
663 load-movie <filename>
666 \begin_layout Standard
667 Load savestate <filename>, ignoring save part in readonly mode.
670 \begin_layout Subsubsection
671 save-state <filename>
674 \begin_layout Standard
675 Save system state to <filename> as soon as possible.
678 \begin_layout Subsubsection
679 save-movie <filename>
682 \begin_layout Standard
683 Save movie to <filename>.
686 \begin_layout Subsubsection
690 \begin_layout Standard
694 \begin_layout Subsubsection
698 \begin_layout Standard
702 \begin_layout Subsubsection
706 \begin_layout Standard
707 Toggle between read-only and read-write modes.
710 \begin_layout Subsubsection
711 test-1, test-2, test-3
714 \begin_layout Standard
715 Internal test commands.
719 \begin_layout Subsubsection
720 take-screenshot <filename>
723 \begin_layout Standard
724 Save screenshot to <filename>.
727 \begin_layout Subsubsection
728 +controller <class>-<#>-<button>
731 \begin_layout Standard
732 Press button <button> on controller <num> of class <class>.
735 \begin_layout Itemize
736 Class 'gamepad': A, B, X, Y, L, R, select, start, up, down, left, right,
737 ext0, ext1, ext2, ext3
740 \begin_layout Itemize
744 \begin_layout Itemize
745 Class 'superscope': trigger, cursor, turbo, pause
748 \begin_layout Itemize
749 Class 'justifier': trigger, start
752 \begin_layout Itemize
753 Class 'gb': A, B, select, start, up, down, left, right
756 \begin_layout Subsubsection
757 hold-controller <class>-<#>-<button>
760 \begin_layout Standard
761 Hold/unhold button <button> on controller <num> of class <class>.
764 \begin_layout Subsubsection
765 type-controller <class>-<#>-<button>
768 \begin_layout Standard
769 Hold/unhold button <button> on controller <num> of class <class> for the
771 See +controller for button names.
774 \begin_layout Standard
775 Cauntion: Does not work properly if outside frame advance.
778 \begin_layout Subsubsection
779 designate-position <class>-<#>-analog<n>
782 \begin_layout Standard
783 Designate position for analog pair.
784 <n> is only there if there are multiple axis pairs.
787 \begin_layout Subsubsection
788 autofire (<pattern>|-)...
791 \begin_layout Standard
792 Set autofire pattern.
793 Each parameter is comma-separated list of button names to hold on that
795 After reaching the end of pattern, the pattern restarts from the beginning.
798 \begin_layout Subsubsection
802 \begin_layout Standard
806 \begin_layout Subsection
810 \begin_layout Subsubsection
811 cycle-jukebox-backward
814 \begin_layout Standard
815 Cycle save jukebox backwards.
818 \begin_layout Subsubsection
819 cycle-jukebox-forward
822 \begin_layout Standard
823 Cycle save jukebox forwards
826 \begin_layout Subsubsection
830 \begin_layout Standard
831 Do load from jukebox (current mode).
834 \begin_layout Subsubsection
838 \begin_layout Standard
839 Do state save to jukebox.
842 \begin_layout Subsection
846 \begin_layout Standard
847 Only available if lua support is compiled in.
850 \begin_layout Subsubsection
851 evaluate-lua <luacode>
854 \begin_layout Standard
855 Run Lua code <luacode> using built-in Lua interpretter.
858 \begin_layout Subsubsection
862 \begin_layout Standard
863 Run specified lua file using built-in Lua interpretter.
866 \begin_layout Subsubsection
870 \begin_layout Standard
871 Clear the Lua VM state and restore to factory defaults.
874 \begin_layout Subsection
878 \begin_layout Subsubsection
879 add-watch <name> <expression>
882 \begin_layout Standard
883 Adds new watch (or modifies old one).
886 \begin_layout Subsubsection
890 \begin_layout Standard
894 \begin_layout Subsection
898 \begin_layout Subsubsection
899 enable-sound <on/off>
902 \begin_layout Standard
903 Enable/Disable sound.
906 \begin_layout Subsubsection
907 set-volume <multiplier>
910 \begin_layout Standard
911 Set the volume multiplier to <multiplier>.
912 1 is normal volume, and higher numbers are louder.
915 \begin_layout Subsubsection
916 set-volume <multiplier>%
919 \begin_layout Standard
920 Set the volume multiplier to <multiplier> percent.
921 100 is normal volume, and higher numbers are louder.
924 \begin_layout Subsubsection
925 set-volume <multiplier>dB
928 \begin_layout Standard
929 Set the volume multiplier to <multiplier> dB.
930 0 is normal volume, and higher numbers are louder.
931 The value may be negative.
934 \begin_layout Subsection
938 \begin_layout Subsubsection
942 \begin_layout Standard
943 Reloads the main ROM image from <file>.
946 \begin_layout Subsubsection
950 \begin_layout Standard
951 Tangent for recording voice for commentary track.
952 While pressed, record a stream.
955 \begin_layout Section
959 \begin_layout Subsection
963 \begin_layout Subsubsection
967 \begin_layout Standard
968 Set where bsnes looks for firmware files.
970 \begin_inset Quotes eld
974 \begin_inset Quotes erd
980 \begin_layout Subsubsection
984 \begin_layout Standard
986 Numeric, range is 0.001 to
987 \begin_inset Quotes eld
991 \begin_inset Quotes erd
995 Default is native framerate.
998 \begin_layout Subsubsection
1002 \begin_layout Standard
1003 Set save compression level (integer 0-9).
1004 Default is 7 (0 is no compression).
1007 \begin_layout Subsubsection
1011 \begin_layout Standard
1012 Set the frame advance timeout in milliseconds.
1013 Numeric integer, range is 0-999999999.
1017 \begin_layout Subsubsection
1018 allow-inconsistent-saves (bsnes only)
1021 \begin_layout Standard
1022 If true, save without synchronization.
1023 Makes games seriously unstable.
1026 \begin_layout Subsubsection
1027 save-every-frame (bsnes only)
1030 \begin_layout Standard
1031 If true, simulate saving on each frame.
1032 Trades off emulation accuracy for sync stability.
1033 Also needed if the movie assumes saving on each frame for rewind.
1036 \begin_layout Subsection
1040 \begin_layout Subsubsection
1044 \begin_layout Standard
1045 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
1049 \begin_layout Subsubsection
1053 \begin_layout Standard
1054 AVI dumper: Set the default left border thickness (unless lua overrides)
1060 \begin_layout Subsubsection
1064 \begin_layout Standard
1065 AVI dumper: Set the default right border thickness (unless lua overrides)
1071 \begin_layout Subsubsection
1075 \begin_layout Standard
1076 AVI dumper: Set the default top border thickness (unless lua overrides)
1082 \begin_layout Subsubsection
1086 \begin_layout Standard
1087 AVI dumper: Set the default bottom border thickness (unless lua overrides)
1093 \begin_layout Subsubsection
1097 \begin_layout Standard
1098 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
1103 \begin_layout Subsubsection
1107 \begin_layout Standard
1108 AVI dumper: Compression level (0-18).
1111 \begin_layout Itemize
1112 Compression levels 10 and above are not compatible with stock CSCD codec.
1115 \begin_layout Itemize
1116 Recomended level is 7.
1119 \begin_layout Subsubsection
1123 \begin_layout Standard
1124 AVI dumper: Set method of determining the sound rate.
1127 \begin_layout Itemize
1128 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
1129 128, 176.4 and 192 kHz.
1132 \begin_layout Itemize
1133 1: Round down to nearest integer.
1136 \begin_layout Itemize
1137 2: Round up to nearest ingeter.
1140 \begin_layout Subsection
1144 \begin_layout Subsubsection
1148 \begin_layout Standard
1149 JMD dumper: Compression level (0-9).
1152 \begin_layout Subsection
1153 SDL platform settings
1156 \begin_layout Subsubsection
1157 autorepeat-first-delay
1160 \begin_layout Standard
1161 Sets the delay for first character in typematic autorepeat.
1164 \begin_layout Subsubsection
1165 autorepeat-subsequent-delay
1168 \begin_layout Standard
1169 Sets the delay for subsequent characters in typematic autorepeat.
1172 \begin_layout Section
1176 \begin_layout Subsection
1177 Core (in main table)
1180 \begin_layout Subsubsection
1184 \begin_layout Standard
1185 Print line to message console.
1188 \begin_layout Subsubsection
1189 exec(string command)
1192 \begin_layout Standard
1193 Run command as it was entered on the command line
1196 \begin_layout Subsubsection
1200 \begin_layout Standard
1202 First is time since some epoch in seconds, the second is microseconds mod
1203 10^6 since that epoch.
1206 \begin_layout Subsubsection
1210 \begin_layout Standard
1211 Returns true if emulator has finished booting, false if not (on_startup()
1212 will be issued later).
1215 \begin_layout Subsubsection
1216 set_idle_timeout(number timeout)
1219 \begin_layout Standard
1220 Set number of microseconds to block idle for.
1221 After this timeout has expired, on_idle() will be called once.
1224 \begin_layout Subsubsection
1225 set_timer_timeout(number timeout)
1228 \begin_layout Standard
1229 Set number of microseconds to block timer for.
1230 After this timeout has expired, on_timer() will be called once.
1233 \begin_layout Subsubsection
1234 bus_address(number snesaddr)
1237 \begin_layout Standard
1238 Returns virtual address corresponding to specified address on SNES bus.
1241 \begin_layout Subsubsection
1242 loopwrapper(function fun, ...)
1245 \begin_layout Standard
1246 Calls function fun with function and specified arguments.
1247 The function passed suspends execution until the function returned is called.
1248 Handy for linear flow control among multiple invocations of a hook.
1252 \begin_layout LyX-Code
1253 on_paint = loopwrapper(function(wait)
1257 \begin_layout LyX-Code
1262 \begin_layout LyX-Code
1264 \begin_inset Quotes eld
1268 \begin_inset Quotes erd
1274 \begin_layout LyX-Code
1279 \begin_layout LyX-Code
1284 \begin_layout LyX-Code
1288 \begin_layout Subsection
1292 \begin_layout Standard
1293 Bitwise logical functions and related.
1296 \begin_layout Subsubsection
1297 bit.none(number...) / bit.bnot(number...)
1300 \begin_layout Standard
1301 48-bit bitwise NOT / NONE function (set bits that are set in none of the
1305 \begin_layout Subsubsection
1306 bit.any(number...) / bit.bor(number...)
1309 \begin_layout Standard
1310 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
1313 \begin_layout Subsubsection
1314 bit.all(number...) / bit.band(number...)
1317 \begin_layout Standard
1318 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
1322 \begin_layout Subsubsection
1323 bit.parity(number...) / bit.bxor(number...)
1326 \begin_layout Standard
1327 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
1331 \begin_layout Subsubsection
1332 bit.lrotate(number base[, number amount[, number bits]])
1335 \begin_layout Standard
1336 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
1339 \begin_layout Subsubsection
1340 bit.rrotate(number base[, number amount[, number bits]])
1343 \begin_layout Standard
1344 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
1348 \begin_layout Subsubsection
1349 bit.lshift(number base[, number amount[, number bits]])
1352 \begin_layout Standard
1353 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
1354 The new bits are filled with zeroes.
1357 \begin_layout Subsubsection
1358 bit.lrshift(number base[, number amount[, number bits]])
1361 \begin_layout Standard
1362 Shift bits-bit (max 48, default 48) number logically right by amount (default
1364 The new bits are filled with zeroes.
1367 \begin_layout Subsubsection
1368 bit.arshift(number base[, number amount[, number bits]])
1371 \begin_layout Standard
1372 Shift bits-bit (max 48, default 48) number arithmetically right by amount
1374 The new bits are shifted in with copy of the high bit.
1377 \begin_layout Subsubsection
1378 bit.extract(number base[, number bit0[, number bit1,...]])
1381 \begin_layout Standard
1382 Returns number that has bit0-th bit as bit 0, bit1-th bit as 1 and so on.
1385 \begin_layout Standard
1389 \begin_layout Itemize
1390 Bit numbers up to 51 should work reliably (then things start falling apart
1391 due to double precision issues).
1394 \begin_layout Itemize
1395 There are two special bit positions, true and false, standing for always
1396 set bit and always clear bit.
1399 \begin_layout Subsubsection
1400 bit.value([number bit1[, number bit2,...]])
1403 \begin_layout Standard
1404 Returns bitwise OR of 1 left shifted by bit1 places, 1 left shifted by bit2
1406 As special value, nil argument is no-op.
1409 \begin_layout Subsubsection
1410 bit.test_any(number a, number b)
1413 \begin_layout Standard
1414 Returns true if bitwise and of a and b is nonzero, otherwise false.
1417 \begin_layout Subsubsection
1418 bit.test_all(number a, number b)
1421 \begin_layout Standard
1422 Returns true if bitwise and of a and b is equals b, otherwise false.
1425 \begin_layout Subsubsection
1426 bit.popcount(number a)
1429 \begin_layout Standard
1430 Returns number of set bits in a.
1433 \begin_layout Subsubsection
1434 bit.clshift(number a, number b, [number amount,[number bits]])
1437 \begin_layout Standard
1438 Does chained left shift on a, b by amount positions, assuming numbers to
1439 be of specified number of bits.
1442 \begin_layout Subsubsection
1443 bit.crshift(number a, number b, [number amount,[number bits]])
1446 \begin_layout Standard
1447 Does chained right shift on a, b by amount positions, assuming numbers to
1448 be of specified number of bits.
1451 \begin_layout Subsubsection
1452 bit.flagdecode(number a, number bits, [string on, [string off]])
1455 \begin_layout Standard
1456 Return string of length bits where ith character is ith character of on
1457 if bit i is on, otherwise ith character of off.
1458 Out of range reads give last character, or '*'/'-' if empty.
1461 \begin_layout Subsubsection
1462 bit.rflagdecode(number a, number bits, [string on, [string off]])
1465 \begin_layout Standard
1466 Like bit.flagdecode, but outputs the string in the opposite order (most significa
1470 \begin_layout Subsection
1474 \begin_layout Standard
1475 Most of these functions can only be called in on_paint and on_video callbacks.
1476 Exceptions are noted.
1479 \begin_layout Standard
1481 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
1482 16-23 are the red component, bits 24-31 are alpha component (0 is fully
1483 opaque, 255 is almost transparent).
1484 -1 is the fully transparent color.
1485 Alpha values greater than 127 do work.
1488 \begin_layout Standard
1489 Origin of coordinates is at top left corner of game display area.
1490 Left and top gaps correspond to negative coordinates.
1493 \begin_layout Subsubsection
1497 \begin_layout Standard
1498 Returns 2-tuple (hresolution, vresolution).
1501 \begin_layout Subsubsection
1502 gui.<class>_gap(number gap)
1505 \begin_layout Standard
1506 Set the <class> (left, right, top, bottom) gap to specified value (max gap
1510 \begin_layout Subsubsection
1511 gui.text(number x, number y, string text[, number fgc[, number bgc]])
1514 \begin_layout Standard
1515 Draw specified text on the GUI (each character cell is 8 or 16 wide and
1520 \begin_layout Itemize
1521 x: X-coordinate to start the drawing from (and x-coordinate at begining
1525 \begin_layout Itemize
1526 y: Y-coordinate to start the drawing from.
1529 \begin_layout Itemize
1530 text: The text to draw.
1533 \begin_layout Itemize
1534 fgc: Text color (default is 0xFFFFFF (white))
1537 \begin_layout Itemize
1538 bgc: Background color (default is -1 (transparent))
1541 \begin_layout Subsubsection
1542 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
1545 \begin_layout Standard
1546 Like gui.text, but draw using double-width.
1549 \begin_layout Subsubsection
1550 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
1553 \begin_layout Standard
1554 Like gui.text, but draw using double-height.
1557 \begin_layout Subsubsection
1558 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
1561 \begin_layout Standard
1562 Like gui.text, but draw using double-width/double-height.
1565 \begin_layout Subsubsection
1566 gui.rectangle(number x, number y, number width, number height[, number thickness[
1567 , number outline[, number fill]]])
1570 \begin_layout Standard
1571 Draw rectangle on the GUI.
1575 \begin_layout Itemize
1576 x: X-coordinate of left edge.
1579 \begin_layout Itemize
1580 y: Y-coordinate of upper edge.
1583 \begin_layout Itemize
1584 width: Width of rectangle.
1587 \begin_layout Itemize
1588 height: Height of rectangle.
1591 \begin_layout Itemize
1592 thickness: Thickness of outline (default is 1).
1595 \begin_layout Itemize
1596 outline: Color of outline (default is 0xFFFFFF (white))
1599 \begin_layout Itemize
1600 fill: Color of fill (default is -1 (transparent))
1603 \begin_layout Subsubsection
1604 gui.box(number x, number y, number width, number height[, number thickness[,
1605 number outline1[,number outline2[, number fill]]]])
1608 \begin_layout Standard
1609 Draw rectangle with 3D effect on the GUI.
1613 \begin_layout Itemize
1614 x: X-coordinate of left edge.
1617 \begin_layout Itemize
1618 y: Y-coordinate of upper edge.
1621 \begin_layout Itemize
1622 width: Width of rectangle.
1625 \begin_layout Itemize
1626 height: Height of rectangle.
1629 \begin_layout Itemize
1630 thickness: Thickness of outline (default is 1).
1633 \begin_layout Itemize
1634 outline1: First color of outline (default is 0xFFFFFF (white))
1637 \begin_layout Itemize
1638 outline2: First color of outline (default is 0x808080 (dark gray))
1641 \begin_layout Itemize
1642 fill: Color of fill (default is 0xC0C0C0 (light grayy))
1645 \begin_layout Subsubsection
1646 gui.pixel(number x, number y[, number color])
1649 \begin_layout Standard
1650 Draw one pixel on the GUI.
1654 \begin_layout Itemize
1655 x: X-coordinate of the pixel
1658 \begin_layout Itemize
1659 y: Y-coordinate of the pixel
1662 \begin_layout Itemize
1663 color: Color of the pixel (default is 0xFFFFFF (white))
1666 \begin_layout Subsubsection
1667 gui.crosshair(number x, number y[, number length[, number color]])
1670 \begin_layout Standard
1675 \begin_layout Itemize
1676 x: X-coordinate of the crosshair
1679 \begin_layout Itemize
1680 y: Y-coordinate of the crosshair
1683 \begin_layout Itemize
1684 length: Length of the crosshair lines (default 10).
1687 \begin_layout Itemize
1688 color: Color of the crosshair (default is 0xFFFFFF (white))
1691 \begin_layout Subsubsection
1692 gui.line(number x1, number y1, number x2, number y2[, number color])
1695 \begin_layout Standard
1700 \begin_layout Itemize
1701 x1: X-coordinate of one end.
1704 \begin_layout Itemize
1705 y1: Y-coordinate of one end.
1708 \begin_layout Itemize
1709 x2: X-coordinate of the other end.
1712 \begin_layout Itemize
1713 y2: Y-coordinate of the other end.
1716 \begin_layout Itemize
1717 color: Color of the line (default is 0xFFFFFF (white)).
1720 \begin_layout Subsubsection
1721 gui.circle(number x, number y, number r[, number thick[, number border[,
1725 \begin_layout Standard
1730 \begin_layout Itemize
1731 x: X-coordinate of the center
1734 \begin_layout Itemize
1735 y: Y-coordinate of the center
1738 \begin_layout Itemize
1739 r: The radius of the circle
1742 \begin_layout Itemize
1743 thick: Border thickness
1746 \begin_layout Itemize
1747 border: Border color (default is 0xFFFFFF (white))
1750 \begin_layout Itemize
1751 fill: Fill color (default is -1 (transparent)).
1754 \begin_layout Subsubsection
1755 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
1758 \begin_layout Standard
1759 Draw a bitmap on screen with specified palette.
1763 \begin_layout Itemize
1764 x: X-coordinate of left edge.
1767 \begin_layout Itemize
1768 y: Y-coordinate of top edge.
1771 \begin_layout Itemize
1772 bitmap: The bitmap to draw
1775 \begin_layout Itemize
1776 palette: The palette to draw the bitmap using.
1779 \begin_layout Subsubsection
1780 gui.bitmap_draw(number x, number y, dbitmap bitmap)
1783 \begin_layout Standard
1784 Draw a bitmap on screen.
1788 \begin_layout Itemize
1789 x: X-coordinate of left edge.
1792 \begin_layout Itemize
1793 y: Y-coordinate of top edge.
1796 \begin_layout Itemize
1797 bitmap: The bitmap to draw
1800 \begin_layout Subsubsection
1804 \begin_layout Standard
1805 Returns a new palette (initially all transparent).
1806 Can be used anywhere.
1809 \begin_layout Subsubsection
1810 gui.bitmap_new(number w, number h, boolean direct[, bool icolor])
1813 \begin_layout Standard
1814 Returns a new bitmap/dbitmap.
1815 Can be used anywhere.
1819 \begin_layout Itemize
1820 w: The width of new bitmap
1823 \begin_layout Itemize
1824 h: The height of new bitmap
1827 \begin_layout Itemize
1828 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
1831 \begin_layout Itemize
1832 icolor: Initital fill color (defaults to 0 on BITMAP, -1 on DBITMAP)
1835 \begin_layout Subsubsection
1836 gui.bitmap_load(string file)
1839 \begin_layout Standard
1840 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
1842 Can be used anywhere.
1846 \begin_layout Itemize
1847 file: The name of file to load.
1850 \begin_layout Subsubsection
1851 gui.palette_set(palette palette, number index, number color)
1854 \begin_layout Standard
1855 Sets color in palette.
1856 Can be used anywhere.
1860 \begin_layout Itemize
1861 palette: The palette to manipulate
1864 \begin_layout Itemize
1865 index: Index of color (0-65535).
1868 \begin_layout Itemize
1869 color: The color value.
1872 \begin_layout Subsubsection
1873 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
1876 \begin_layout Standard
1877 Sets specified pixel in bitmap.
1878 Can be used anywhere.
1882 \begin_layout Itemize
1883 bitmap: The bitmap to manipulate
1886 \begin_layout Itemize
1887 x: The x-coordinate of the pixel.
1890 \begin_layout Itemize
1891 y: The y-coordinate of the pixel.
1894 \begin_layout Itemize
1895 color: If bitmap is a bitmap, color index (0-65535).
1896 Otherwise color value.
1899 \begin_layout Subsubsection
1900 gui.bitmap_size(bitmap/dbitmap bitmap)
1903 \begin_layout Standard
1905 Can be used anywhere.
1909 \begin_layout Itemize
1910 bitmap: The bitmap to query.
1913 \begin_layout Standard
1914 The first return is the width, the second is the height.
1917 \begin_layout Subsubsection
1918 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
1919 src, number sx, number sy, number w, number h[, number ck])
1922 \begin_layout Standard
1923 Blit a part of bitmap to another.
1924 Can be used anywhere.
1928 \begin_layout Itemize
1929 dest: Destination to blit to.
1932 \begin_layout Itemize
1933 dx: left edge of target
1936 \begin_layout Itemize
1937 dy: Top edge of target
1940 \begin_layout Itemize
1941 src: The source to blit from.
1942 Must be of the same type as destination.
1945 \begin_layout Itemize
1946 sx: left edge of source
1949 \begin_layout Itemize
1950 sy: Top edge of source
1953 \begin_layout Itemize
1957 \begin_layout Itemize
1958 h: Height of region.
1961 \begin_layout Itemize
1963 Pixels of this color are not blitted.
1967 \begin_layout Itemize
1968 If bitmaps are bitmaps, this is color index of colorkey.
1969 Values outside range 0-65535 cause no key to be used as colorkey.
1972 \begin_layout Itemize
1973 If bitmaps are dbitmaps, this color value of colorkey.
1976 \begin_layout Itemize
1977 May be absent or nil for no colorkey blit.
1981 \begin_layout Subsubsection
1985 \begin_layout Standard
1986 Request on_repaint() to happen as soon as possible.
1987 Can be used anywhere.
1990 \begin_layout Subsubsection
1991 gui.subframe_update(boolean on)
1994 \begin_layout Standard
1995 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
1996 or not happen (on=false).
1997 Can be used anywhere.
2000 \begin_layout Subsubsection
2001 gui.screenshot(string filename)
2004 \begin_layout Standard
2005 Write PNG screenshot of the current frame (no drawings) to specified file.
2006 Can be used anywhere.
2009 \begin_layout Subsubsection
2010 gui.color(number r, number g, number b[, number a])
2013 \begin_layout Standard
2014 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
2015 each component in scale 0-255.
2016 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
2018 The default alpha is 256.
2021 \begin_layout Subsubsection
2022 gui.status(string name, string value)
2025 \begin_layout Standard
2027 \begin_inset Quotes eld
2031 \begin_inset Quotes erd
2034 to <value> in status area.
2035 Can be used anywhere.
2038 \begin_layout Subsubsection
2039 gui.rainbow(number step, number steps[, number color])
2042 \begin_layout Standard
2043 Perform hue rotation of color <color> (default bright red), by <step> steps.
2044 The number of steps per full rotation is given by absolute value of <steps>.
2047 \begin_layout Standard
2048 If <steps> is negative, the rotation will be counterclockwise.
2051 \begin_layout Subsubsection
2052 gui.screenshot(string filename)
2055 \begin_layout Standard
2056 Saves a screenshot into specified file.
2059 \begin_layout Subsubsection
2060 gui.renderq_new(number width, number height)
2063 \begin_layout Standard
2064 Create render queue with specified reported size and return it.
2067 \begin_layout Subsubsection
2068 gui.renderq_clear(RENDERQUEUE queue)
2071 \begin_layout Standard
2072 Clear specified render queue.
2075 \begin_layout Subsubsection
2076 gui.renderq_set(RENDERQUEUE queue)
2079 \begin_layout Standard
2080 Switch to specified render queue.
2081 Use nil as queue to switch to default queue.
2084 \begin_layout Itemize
2085 When switched to another queue, all drawing functions work and draw there,
2086 even outside on_video/on_paint.
2089 \begin_layout Subsubsection
2090 gui.renderq_run(RENDERQUEUE queue)
2093 \begin_layout Standard
2094 Run specified render queue, copying the objects to current render queue.
2098 \begin_layout Itemize
2099 Warning: Don't try to run the current render queue.
2102 \begin_layout Subsubsection
2103 gui.loadfont(string filename)
2106 \begin_layout Standard
2107 Loads font from specified file (CUSTOMFONT object).
2110 \begin_layout Subsubsection
2111 CUSTOMFONT(number x, number y, string text[, number fgc[, number bgc]])
2114 \begin_layout Standard
2115 Draw string with custom font to screen.
2116 The parameters are the same as in gui.text.
2119 \begin_layout Subsection
2123 \begin_layout Standard
2125 Only available in on_input callback.
2128 \begin_layout Subsubsection
2129 input.get(number controller, number index)
2132 \begin_layout Standard
2133 Read the specified index (0-11) from specified controller (0-7).
2137 \begin_layout Itemize
2138 Uses physical controller numbering.
2139 Gamepad in port 2 is controller 4, not 1!
2142 \begin_layout Subsubsection
2143 input.set(number controller, number index, number value)
2146 \begin_layout Standard
2147 Write the specified index (0-11) from specified controller (0-7), storing
2152 \begin_layout Itemize
2153 Uses physical controller numbering.
2154 Gamepad in port 2 is controller 4, not 1!
2157 \begin_layout Subsubsection
2158 input.geta(number controller)
2161 \begin_layout Standard
2162 Get input state for entiere controller.
2163 Returns 13 return values.
2166 \begin_layout Itemize
2167 1st return value: Bitmask: bit i is set if i:th index is nonzero
2170 \begin_layout Itemize
2171 2nd-13th return value: value of i:th index.
2174 \begin_layout Subsubsection
2175 input.seta(number controller, number bitmask, number args...)
2178 \begin_layout Standard
2179 Set state for entiere controller.
2180 args is up to 12 values for indices (overriding values in bitmask if specified).
2183 \begin_layout Subsubsection
2184 input.controllertype(number controller)
2187 \begin_layout Standard
2188 Get the type of controller as string.
2192 \begin_layout Itemize
2196 \begin_layout Itemize
2200 \begin_layout Itemize
2204 \begin_layout Itemize
2208 \begin_layout Subsubsection
2209 input.reset([number cycles])
2212 \begin_layout Standard
2214 If cycles is greater than zero, do delayed reset.
2215 0 (or no value) causes immediate reset.
2218 \begin_layout Itemize
2219 Only available with subframe flag false.
2222 \begin_layout Subsubsection
2226 \begin_layout Standard
2227 Returns table of tables of all available keys and axes.
2228 The first table is indexed by key name (platform-dependent!), and the inner
2229 table has the following fields:
2232 \begin_layout Itemize
2233 value: Last reported value for control
2237 \begin_layout Itemize
2238 For keys: 1 for pressed, 0 for released.
2241 \begin_layout Itemize
2242 For axes: -32767...32767.
2245 \begin_layout Itemize
2246 For presure-sensitive buttons: 0...32767.
2249 \begin_layout Itemize
2250 For hats: Bitmask: 1=>Up, 2=>Right, 4=>Down, 8=>Left.
2253 \begin_layout Itemize
2254 For mouse: Coordinates relative to game area.
2258 \begin_layout Itemize
2259 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2260 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2263 \begin_layout Subsubsection
2264 input.keyhook(string key, boolean state)
2267 \begin_layout Standard
2268 Requests that keyhook events to be sent for key (state=true) or not sent
2272 \begin_layout Subsubsection
2273 input.joyget(number controller)
2276 \begin_layout Standard
2277 Returns table for current controls for specified controller.
2278 The names of fields vary by controller type.
2281 \begin_layout Itemize
2282 The buttons have the same name as those are referred to in other contexts
2286 \begin_layout Itemize
2288 \begin_inset Quotes eld
2292 \begin_inset Quotes erd
2296 \begin_inset Quotes eld
2300 \begin_inset Quotes erd
2306 \begin_layout Subsubsection
2307 input.joyset(number controller, table controls)
2310 \begin_layout Standard
2311 Set the the state of specified controller to values specified in specified
2315 \begin_layout Subsubsection
2316 input.lcid_to_pcid(number controller)
2319 \begin_layout Standard
2320 Return the physical index, physical port and controller number in port for
2321 specified (1-based) logical controller.
2324 \begin_layout Subsection
2328 \begin_layout Standard
2329 Various keybinding-related functions
2332 \begin_layout Subsubsection
2333 keyboard.bind(string mod, string mask, string key, string cmd)
2336 \begin_layout Standard
2337 Bind specified key with specified modifers to specified command.
2340 \begin_layout Subsubsection
2341 keyboard.unbind(string mod, string mask, string key)
2344 \begin_layout Standard
2345 Unbind specified key with specified modifers.
2348 \begin_layout Subsubsection
2349 keyboard.alias(string alias, string expansion)
2352 \begin_layout Standard
2353 Set expansion of given command.
2356 \begin_layout Subsection
2360 \begin_layout Standard
2364 \begin_layout Subsubsection
2365 subtitle.byindex(number i)
2368 \begin_layout Standard
2369 Read the frame and length of ith subtitle.
2370 Returns nothing if not present.
2373 \begin_layout Subsubsection
2374 subtitle.set(number f, number l, string txt)
2377 \begin_layout Standard
2378 Set the text of subtitle.
2381 \begin_layout Subsubsection
2382 subtitle.get(number f, number l)
2385 \begin_layout Standard
2386 Get the text of subtitle.
2389 \begin_layout Subsubsection
2390 subtitle.delete(number f, number l)
2393 \begin_layout Standard
2394 Delete specified subtitle.
2397 \begin_layout Subsection
2401 \begin_layout Standard
2402 Host memory handling (extra memory saved to savestates).
2403 Host memory starts empty.
2406 \begin_layout Subsubsection
2407 hostmemory.read(number address)
2410 \begin_layout Standard
2411 Reads hostmemory slot address.
2412 Slot numbers out of range return false instead of numeric.
2415 \begin_layout Subsubsection
2416 hostmemory.write(number address, number value)
2419 \begin_layout Standard
2420 Writes hostmemory slot with 0-255.
2421 Slot numbers out of range cause extension of host memory slot space.
2424 \begin_layout Subsubsection
2425 hostmemory.readbyte(number address)
2428 \begin_layout Standard
2429 Read unsigned byte (1 element) from given address.
2430 Slots out of range return false.
2433 \begin_layout Subsubsection
2434 hostmemory.writebyte(number address, number value)
2437 \begin_layout Standard
2438 Write unsigned byte (1 element) to given slot.
2439 Slot numbers out of range cause extension.
2442 \begin_layout Subsubsection
2443 hostmemory.readsbyte(number address)
2446 \begin_layout Standard
2447 Read signed byte (1 element) from given address.
2448 Slots out of range return false.
2451 \begin_layout Subsubsection
2452 hostmemory.writesbyte(number address, number value)
2455 \begin_layout Standard
2456 Write signed byte (1 element) to given slot.
2457 Slot numbers out of range cause extension.
2460 \begin_layout Subsubsection
2461 hostmemory.readword(number address)
2464 \begin_layout Standard
2465 Read unsigned word (2 elements) from given address.
2466 Slots out of range return false.
2469 \begin_layout Subsubsection
2470 hostmemory.writeword(number address, number value)
2473 \begin_layout Standard
2474 Write unsigned word (2 elements) to given slot.
2475 Slot numbers out of range cause extension.
2478 \begin_layout Subsubsection
2479 hostmemory.readsword(number address)
2482 \begin_layout Standard
2483 Read signed word (2 elements) from given address.
2484 Slots out of range return false.
2487 \begin_layout Subsubsection
2488 hostmemory.writesword(number address, number value)
2491 \begin_layout Standard
2492 Write signed word (2 elements) to given slot.
2493 Slot numbers out of range cause extension.
2496 \begin_layout Subsubsection
2497 hostmemory.readdword(number address)
2500 \begin_layout Standard
2501 Read unsigned doubleword (4 elements) from given address.
2502 Slots out of range return false.
2505 \begin_layout Subsubsection
2506 hostmemory.writedword(number address, number value)
2509 \begin_layout Standard
2510 Write unsigned doubleword (4 elements) to given slot.
2511 Slot numbers out of range cause extension.
2514 \begin_layout Subsubsection
2515 hostmemory.readsdword(number address)
2518 \begin_layout Standard
2519 Read signed doubleword (4 elements) from given address.
2520 Slots out of range return false.
2523 \begin_layout Subsubsection
2524 hostmemory.writesdword(number address, number value)
2527 \begin_layout Standard
2528 Write signed doubleword (4 elements) to given slot.
2529 Slot numbers out of range cause extension.
2532 \begin_layout Subsubsection
2533 hostmemory.readqword(number address)
2536 \begin_layout Standard
2537 Read unsigned quadword (8 elements) from given address.
2538 Slots out of range return false.
2541 \begin_layout Subsubsection
2542 hostmemory.writeqword(number address, number value)
2545 \begin_layout Standard
2546 Write unsigned quadword (4 elements) to given slot.
2547 Slot numbers out of range cause extension.
2550 \begin_layout Subsubsection
2551 hostmemory.readsqword(number address)
2554 \begin_layout Standard
2555 Read signed quadword (8 elements) from given address.
2556 Slots out of range return false.
2559 \begin_layout Subsubsection
2560 hostmemory.writesqword(number address, number value)
2563 \begin_layout Standard
2564 Write signed quadword (8 elements) to given slot.
2565 Slot numbers out of range cause extension.
2568 \begin_layout Subsection
2572 \begin_layout Standard
2576 \begin_layout Subsubsection
2577 movie.currentframe()
2580 \begin_layout Standard
2581 Return number of current frame.
2584 \begin_layout Subsubsection
2588 \begin_layout Standard
2589 Return number of frames in movie.
2592 \begin_layout Subsubsection
2596 \begin_layout Standard
2597 Return true if in readonly mode, false if in readwrite.
2600 \begin_layout Subsubsection
2604 \begin_layout Standard
2605 Returns the current value of rerecord count.
2608 \begin_layout Subsubsection
2609 movie.set_readwrite()
2612 \begin_layout Standard
2613 Set readwrite mode (does not cause on_readwrite callback).
2616 \begin_layout Subsubsection
2617 movie.frame_subframes(number frame)
2620 \begin_layout Standard
2621 Count number of subframes in specified frame (frame numbers are 1-based)
2625 \begin_layout Subsubsection
2626 movie.read_subframe(number frame, number subframe)
2629 \begin_layout Standard
2630 Read specifed subframe in specified frame and return data as array (100
2631 elements, numbered 0-99 currently).
2634 \begin_layout Subsubsection
2638 \begin_layout Standard
2639 Returns the current value of the RTC as a pair (second, subsecond).
2642 \begin_layout Subsubsection
2643 movie.unsafe_rewind([UNSAFEREWIND state])
2646 \begin_layout Standard
2647 Start setting point for unsafe rewind or jump to point of unsafe rewind.
2650 \begin_layout Itemize
2651 If called without argument, causes emulator to start process of setting
2652 unsafe rewind point.
2653 When this has finished, callback on_set_rewind occurs, passing the rewind
2654 state to lua script.
2657 \begin_layout Itemize
2658 If called with argument, causes emulator rewind to passed rewind point as
2660 Readwrite mode is implicitly activated.
2663 \begin_layout Standard
2664 The following warnings apply to unsafe rewinding:
2667 \begin_layout Itemize
2668 There are no safety checks against misuse (that's what
2669 \begin_inset Quotes eld
2673 \begin_inset Quotes erd
2679 \begin_layout Itemize
2680 Only call rewind from timeline rewind point was set from.
2683 \begin_layout Itemize
2684 Only call rewind from after the rewind point was set.
2687 \begin_layout Subsection
2691 \begin_layout Standard
2692 Routines for settings manipulation
2695 \begin_layout Subsubsection
2696 settings.get(string name)
2699 \begin_layout Standard
2700 Get value of setting.
2701 If setting is blank, returns false.
2702 If setting value can't be obtained, returns (nil, error message).
2705 \begin_layout Subsubsection
2706 settings.set(string name, string value)
2709 \begin_layout Standard
2710 Set value of setting.
2711 If setting can't be set, returns (nil, error message).
2714 \begin_layout Subsubsection
2715 settings.is_set(string name)
2718 \begin_layout Standard
2719 Returns if setting is set.
2720 If setting does not exist, returns (nil, error message).
2723 \begin_layout Subsubsection
2724 settings.blank(string name)
2727 \begin_layout Standard
2728 Blanks a setting and returns true.
2729 If setting can't be blanked, returns (nil, error message).
2732 \begin_layout Subsection
2736 \begin_layout Standard
2737 Contains various functions for managing memory
2740 \begin_layout Subsubsection
2744 \begin_layout Standard
2745 Returns the number of VMAs
2748 \begin_layout Subsubsection
2749 memory.read_vma(number index)
2752 \begin_layout Standard
2753 Reads the specified VMA (indices start from zero).
2754 Trying to read invalid VMA gives nil.
2755 The read VMA is table with the following fields:
2758 \begin_layout Itemize
2759 region_name (string): The readable name of the VMA
2762 \begin_layout Itemize
2763 baseaddr (number): Base address of the VMA
2766 \begin_layout Itemize
2767 lastaddr (number): Last address in the VMA.
2770 \begin_layout Itemize
2771 size (number): The size of VMA in bytes.
2774 \begin_layout Itemize
2775 readonly (boolean): True of the VMA corresponds to ROM.
2778 \begin_layout Itemize
2779 iospace (boolean): True if the VMA is I/O space.
2782 \begin_layout Itemize
2783 native_endian (boolean): True if the VMA has native endian as opposed to
2787 \begin_layout Subsubsection
2788 memory.find_vma(number address)
2791 \begin_layout Standard
2792 Finds the VMA containing specified address.
2793 Returns table in the same format as read_vma or nil if not found.
2796 \begin_layout Subsubsection
2797 memory.readbyte(number address)
2800 \begin_layout Standard
2801 Reads the specified address as unsigned byte and returns the result.
2804 \begin_layout Subsubsection
2805 memory.readsbyte(number address)
2808 \begin_layout Standard
2809 Reads the specified address as signed byte and returns the result.
2812 \begin_layout Subsubsection
2813 memory.writebyte(number address, number value)
2816 \begin_layout Standard
2817 Writes the specified value (negative values undergo 2's complement) to specified
2818 address (as a byte).
2821 \begin_layout Subsubsection
2822 memory.readword(number address)
2825 \begin_layout Standard
2826 Reads the specified address as unsigned word and returns the result.
2829 \begin_layout Subsubsection
2830 memory.readsword(number address)
2833 \begin_layout Standard
2834 Reads the specified address as signed word and returns the result.
2837 \begin_layout Subsubsection
2838 memory.writeword(number address, number value)
2841 \begin_layout Standard
2842 Writes the specified value (negative values undergo 2's complement) to specified
2843 address (as a word).
2846 \begin_layout Subsubsection
2847 memory.readdword(number address)
2850 \begin_layout Standard
2851 Reads the specified address as unsigned doubleword and returns the result.
2854 \begin_layout Subsubsection
2855 memory.readsdword(number address)
2858 \begin_layout Standard
2859 Reads the specified address as signed doubleword and returns the result.
2862 \begin_layout Subsubsection
2863 memory.writedword(number address, number value)
2866 \begin_layout Standard
2867 Writes the specified value (negative values undergo 2's complement) to specified
2868 address (as a doubleword).
2871 \begin_layout Subsubsection
2872 memory.readqword(number address)
2875 \begin_layout Standard
2876 Reads the specified address as unsigned quadword and returns the result.
2879 \begin_layout Subsubsection
2880 memory.readsqword(number address)
2883 \begin_layout Standard
2884 Reads the specified address as signed quadword and returns the result.
2887 \begin_layout Subsubsection
2888 memory.writeqword(number address, number value)
2891 \begin_layout Standard
2892 Writes the specified value (negative values undergo 2's complement) to specified
2893 address (as a quadword).
2896 \begin_layout Subsubsection
2897 memory.hash_region(number base, number size)
2900 \begin_layout Standard
2901 Hash specified number of bytes starting from specified address and return
2905 \begin_layout Subsubsection
2909 \begin_layout Standard
2910 Hash the current system state.
2911 Mainly useful for debugging savestates.
2914 \begin_layout Subsubsection
2915 memory.readregion(number base, number size)
2918 \begin_layout Standard
2919 Read a region of memory.
2922 \begin_layout Itemize
2923 Warning: If the region crosses VMA boundary, the results are undefined.
2926 \begin_layout Subsubsection
2927 memory.map<type>([number base, number size])
2930 \begin_layout Standard
2931 Returns a table mapping specified memory aperture for read/write.
2932 If parameters are omitted, entiere map space is the aperture.
2935 \begin_layout Itemize
2936 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
2939 \begin_layout Subsubsection
2940 memory.writeregion(number base, number size, table data)
2943 \begin_layout Standard
2944 Write a region of memory.
2947 \begin_layout Itemize
2948 Warning: If the region crosses VMA boundary, the results are undefined.
2951 \begin_layout Subsubsection
2952 memory.map_structure()
2955 \begin_layout Standard
2956 Returns a new mapping structure (MMAP_STRUCT)
2959 \begin_layout Subsubsection
2960 MMAP_STRUCT(string key, number address, string type)
2963 \begin_layout Standard
2964 Bind key in mmap structure to specified address with specified type.
2967 \begin_layout Itemize
2968 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
2971 \begin_layout Subsubsection
2972 memory.read_expr(string expr)
2975 \begin_layout Standard
2976 Evaluate specified watch expression and return result
2979 \begin_layout Subsection
2983 \begin_layout Standard
2984 Contains functions for manipulating subtitles.
2987 \begin_layout Subsubsection
2988 subtitle.byindex(number index)
2991 \begin_layout Standard
2992 Get (basetime, length) pair of specified subtitle index or nothing if index
2996 \begin_layout Subsubsection
2997 subtitle.get(number basetime, number length)
3000 \begin_layout Standard
3001 Read the specified subtitle.
3003 \begin_inset Quotes eld
3007 \begin_inset Quotes erd
3010 if the subtitle does not exist.
3013 \begin_layout Subsubsection
3014 subtitle.set(number basetime, number length, string content)
3017 \begin_layout Standard
3018 Set the specified subtitle.
3021 \begin_layout Subsubsection
3022 subtitle.deltete(number basetime, number length)
3025 \begin_layout Standard
3026 Delete the specified subtitle.
3029 \begin_layout Subsection
3033 \begin_layout Standard
3034 Contains copy of global variables from time of Lua initialization.
3038 \begin_layout Subsection
3042 \begin_layout Standard
3043 Various callbacks to Lua that can occur.
3046 \begin_layout Subsubsection
3047 Callback: on_paint(bool not_synth)
3050 \begin_layout Standard
3051 Called when screen is being painted.
3052 Any gui.* calls requiring graphic context draw on the screen.
3055 \begin_layout Standard
3056 not_synth is true if this hook is being called in response to received frame,
3060 \begin_layout Subsubsection
3061 Callback: on_video()
3064 \begin_layout Standard
3065 Called when video dump frame is being painted.
3066 Any gui.* calls requiring graphic context draw on the video.
3069 \begin_layout Subsubsection
3070 Callback: on_frame_emulated()
3073 \begin_layout Standard
3074 Called when emulating frame has completed and on_paint()/on_video() calls
3075 are about to be issued.
3078 \begin_layout Subsubsection
3079 Callback: on_frame()
3082 \begin_layout Standard
3083 Called on each starting whole frame.
3086 \begin_layout Subsubsection
3087 Callback: on_startup()
3090 \begin_layout Standard
3091 Called when the emulator is starting (lsnes.rc and --run files has been run).
3094 \begin_layout Subsubsection
3095 Callback: on_rewind()
3098 \begin_layout Standard
3099 Called when rewind movie to beginning has completed.
3102 \begin_layout Subsubsection
3103 Callback: on_pre_load(string name)
3106 \begin_layout Standard
3107 Called just before savestate/movie load occurs (note: loads are always delayed,
3108 so this occurs even when load was initiated by lua).
3111 \begin_layout Subsubsection
3112 Callback: on_err_load(string name)
3115 \begin_layout Standard
3116 Called if loadstate goes wrong.
3119 \begin_layout Subsubsection
3120 Callback: on_post_load(string name, boolean was_savestate)
3123 \begin_layout Standard
3124 Called on successful loadstate.
3125 was_savestate gives if this was a savestate or a movie.
3128 \begin_layout Subsubsection
3129 Callback: on_pre_save(string name, boolean is_savestate)
3132 \begin_layout Standard
3133 Called just before savestate save occurs (note: movie saves are synchronous
3134 and won't trigger these callbacks if called from Lua).
3137 \begin_layout Subsubsection
3138 Callback: on_err_save(string name)
3141 \begin_layout Standard
3142 Called if savestate goes wrong.
3145 \begin_layout Subsubsection
3146 Callback: on_post_save(string name, boolean is_savestate)
3149 \begin_layout Standard
3150 Called on successful savaestate.
3151 is_savestate gives if this was a savestate or a movie.
3154 \begin_layout Subsubsection
3158 \begin_layout Standard
3159 Called when emulator is shutting down.
3162 \begin_layout Subsubsection
3163 Callback: on_input(boolean subframe)
3166 \begin_layout Standard
3167 Called when emulator is just sending input to bsnes core.
3168 Warning: This is called even in readonly mode, but the results are ignored.
3171 \begin_layout Subsubsection
3172 Callback: on_reset()
3175 \begin_layout Standard
3176 Called when SNES is reset.
3179 \begin_layout Subsubsection
3180 Callback: on_readwrite()
3183 \begin_layout Standard
3184 Called when moving into readwrite mode as result of
3185 \begin_inset Quotes eld
3189 \begin_inset Quotes erd
3192 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3196 \begin_layout Subsubsection
3197 Callback: on_snoop(number port, number controller, number index, number
3201 \begin_layout Standard
3202 Called each time bsnes asks for input.
3203 The value is the final value to be sent to bsnes core (readonly mode, autohold
3204 and autofire have been taken into account).
3205 Might be useful when translating movies to format suitable for console
3207 Note: There is no way to modify the value to be sent.
3210 \begin_layout Subsubsection
3211 Callback: on_keyhook(string keyname, table state)
3214 \begin_layout Standard
3215 Sent when key that has keyhook events requested changes state.
3216 Keyname is name of the key (group) and state is the state (same kind as
3217 table values in input.raw).
3220 \begin_layout Subsubsection
3224 \begin_layout Standard
3225 Called when requested by set_idle_timeout(), the timeout has expired and
3226 emulator is waiting.
3229 \begin_layout Subsubsection
3230 Callback: on_timer()
3233 \begin_layout Standard
3234 Called when requested by set_idle_timeout() and the timeout has expired
3235 (regardless if emulator is waiting).
3238 \begin_layout Subsubsection
3239 Callback: on_set_rewind(UNSAFEREWIND r)
3242 \begin_layout Standard
3243 Called when unsafe rewind object has been constructed.
3246 \begin_layout Subsubsection
3247 Callback: on_pre_rewind()
3250 \begin_layout Standard
3251 Called just before unsafe rewind is about to occur.
3254 \begin_layout Subsubsection
3255 Callback: on_post_rewind()
3258 \begin_layout Standard
3259 Called just after unsafe rewind has occured.
3262 \begin_layout Section
3263 Memory watch expression syntax
3266 \begin_layout Standard
3267 Memory watch expressions are in RPN (Reverse Polish Notation).
3268 At the end of expression, the top entry on stack is taken as the final
3272 \begin_layout Standard
3276 \begin_layout Itemize
3277 Evaluation order is strictly left to right.
3280 \begin_layout Itemize
3281 a is the entry on top of stack
3284 \begin_layout Itemize
3285 b is the entry immediately below top of stack
3288 \begin_layout Itemize
3289 ; separates values to be pushed (no intermediate pop).
3292 \begin_layout Itemize
3293 After end of element, all used stack slots are popped and all results are
3297 \begin_layout Itemize
3298 When pushing multiple values, the pushes occur in order shown.
3301 \begin_layout Standard
3302 The following operators are available:
3305 \begin_layout Itemize
3309 \begin_layout Itemize
3313 \begin_layout Itemize
3317 \begin_layout Itemize
3321 \begin_layout Itemize
3325 \begin_layout Itemize
3329 \begin_layout Itemize
3330 b : read_signed_byte(a)
3333 \begin_layout Itemize
3337 \begin_layout Itemize
3338 d : read_signed_dword(a)
3341 \begin_layout Itemize
3345 \begin_layout Itemize
3347 \begin_inset Formula $\pi$
3353 \begin_layout Itemize
3354 q : read_signed_qword(a)
3357 \begin_layout Itemize
3361 \begin_layout Itemize
3365 \begin_layout Itemize
3369 \begin_layout Itemize
3373 \begin_layout Itemize
3374 w : read_signed_word(a)
3377 \begin_layout Itemize
3381 \begin_layout Itemize
3382 B : read_unsigned_byte(a)
3385 \begin_layout Itemize
3386 C<number>z : Push number <number> to stack.
3389 \begin_layout Itemize
3390 D : read_unsigned_dword(a)
3393 \begin_layout Itemize
3394 C0x<number>z : Push number <number> (hexadecimal) to stack.
3397 \begin_layout Itemize
3398 Q : read_unsigned_qword(a)
3401 \begin_layout Itemize
3402 R<digit> : round a to <digit> digits.
3405 \begin_layout Itemize
3406 W : read_unsigned_word(a)
3409 \begin_layout Subsection
3413 \begin_layout Standard
3414 C0x007e0878zWC0x007e002czW-
3417 \begin_layout Enumerate
3418 Push value 0x7e0878 on top of stack (C0x007e0878z).
3421 \begin_layout Enumerate
3422 Pop the value on top of stack (0x7e0878), read word value at that address
3423 and push the result,call it x1 (W).
3426 \begin_layout Enumerate
3427 Push value 0x7e002c on top of stack (C0x007e002cz).
3430 \begin_layout Enumerate
3431 Pop the value on top of stack (0x7e002c), read word value at that address
3432 and push the result,call it x2 (W).
3435 \begin_layout Enumerate
3436 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3440 \begin_layout Enumerate
3441 Since the expression ends, the final memory watch result is the top one
3442 on stack, which is x2 - x1.
3445 \begin_layout Section
3446 Modifier and key names:
3449 \begin_layout Subsection
3453 \begin_layout Subsubsection
3457 \begin_layout Standard
3458 Following modifier names are known:
3461 \begin_layout Itemize
3462 ctrl, lctrl, rctrl: Control keys
3465 \begin_layout Itemize
3466 alt, lalt, ralt: ALT keys.
3469 \begin_layout Itemize
3470 shift, lshift, rshift: Shift keys.
3473 \begin_layout Itemize
3474 meta, lmeta, rmeta: Meta keys.
3477 \begin_layout Itemize
3478 num, caps: Numlock/Capslock (these are sticky!)
3481 \begin_layout Itemize
3485 \begin_layout Subsubsection
3489 \begin_layout Standard
3490 Following key names are known:
3493 \begin_layout Itemize
3494 backspace, tab, clear, return, pause, escape, space, exclaim, quotedbl,
3495 hash, dollar, ampersand, quote, leftparen, rightparen, asterisk, plus,
3496 comma, minus, period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon,
3497 less, equals, greater, question, at, leftbracket, backslash, rightbracket,
3498 caret, underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n,
3499 o, p, q, r, s, t, u, v, w, x, y, z, delete, world_0, world_1, world_2,
3500 world_3, world_4, world_5, world_6, world_7, world_8, world_9, world_10,
3501 world_11, world_12, world_13, world_14, world_15, world_16, world_17, world_18,
3502 world_19, world_20, world_21, world_22, world_23, world_24, world_25, world_26,
3503 world_27, world_28, world_29, world_30, world_31, world_32, world_33, world_34,
3504 world_35, world_36, world_37, world_38, world_39, world_40, world_41, world_42,
3505 world_43, world_44, world_45, world_46, world_47, world_48, world_49, world_50,
3506 world_51, world_52, world_53, world_54, world_55, world_56, world_57, world_58,
3507 world_59, world_60, world_61, world_62, world_63, world_64, world_65, world_66,
3508 world_67, world_68, world_69, world_70, world_71, world_72, world_73, world_74,
3509 world_75, world_76, world_77, world_78, world_79, world_80, world_81, world_82,
3510 world_83, world_84, world_85, world_86, world_87, world_88, world_89, world_90,
3511 world_91, world_92, world_93, world_94, world_95, kp0, kp1, kp2, kp3, kp4,
3512 kp5, kp6, kp7, kp8, kp9, kp_period, kp_divide, kp_multiply, kp_minus, kp_plus,
3513 kp_enter, kp_equals, up, down, right, left, insert, home, end, pageup,
3514 pagedown, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14,
3515 f15, numlock, capslock, scrollock, rshift, lshift, rctrl, lctrl, ralt,
3516 lalt, rmeta, lmeta, lsuper, rsuper, mode, compose, help, print, sysreq,
3517 break, menu, power, euro, undo
3520 \begin_layout Itemize
3521 Names of form 'key<n>' where <n> is 0-255 are interpretted as key having
3522 hardware-dependent scan code of <n> (useful to bind those keys that don't
3523 have symbolic names).
3526 \begin_layout Subsubsection
3527 Joystick pseudo-keys:
3530 \begin_layout Itemize
3531 joystick<num>button<button>: Joystick <num> (0-based) button <button> (0-based).
3534 \begin_layout Itemize
3535 joystick<num>hat<hat>n: Joystick <num> (0-based) hat <hat> (0-based) up.
3538 \begin_layout Itemize
3539 joystick<num>hat<hat>w: Joystick <num> (0-based) hat <hat> (0-based) left.
3542 \begin_layout Itemize
3543 joystick<num>hat<hat>s: Joystick <num> (0-based) hat <hat> (0-based) down.
3546 \begin_layout Itemize
3547 joystick<num>hat<hat>e: Joystick <num> (0-based) hat <hat> (0-based) right.
3550 \begin_layout Itemize
3551 joystick<num>axis<axis>-: Joystick <num> (0-based) axis <axis> negative
3552 position (axis modes axis and axis_inverse).
3555 \begin_layout Itemize
3556 joystick<num>axis<axis>+: Joystick <num> (0-based) axis <axis> positive
3557 position (axis modes axis and axis_inverse).
3560 \begin_layout Itemize
3561 joystick<num>axis<axis>: Joystick <num> (0-based) axis <axis> pressure (axis
3565 \begin_layout Subsubsection
3569 \begin_layout Itemize
3570 Escape: Enter/Exit Command mode, cancel modal dialogs.
3573 \begin_layout Itemize
3574 Return (also KPEnter): Execute command, ok modal dialog.
3577 \begin_layout Itemize
3578 Pgup/Up (also KP8/9 if no num lock, CTRL+P; command mode): Previous command
3582 \begin_layout Itemize
3583 Pgdn/Down(also KP2/3 if no num lock, CTRL+N; command mode): Next command
3587 \begin_layout Itemize
3588 Home (also KP7 if no num lock, CTRL+A; command mode): Beginning of command.
3591 \begin_layout Itemize
3592 End (also KP1 if no num lock, CTRL+E; command mode): End of command.
3595 \begin_layout Itemize
3596 Left (also KP4 if no num lock, CTRL+B; command mode): Move cursor left.
3599 \begin_layout Itemize
3600 Right (also KP6 if no num lock, CTRL+F; command mode): Move cursor right.
3603 \begin_layout Itemize
3605 if no num lock; command mode): Delete character to right of cursor.
3608 \begin_layout Itemize
3609 Insert (also KP0 if no num lock; command mode): Toggle between insert /
3613 \begin_layout Itemize
3614 Backspace (command mode): Delete character to left of cursor.
3617 \begin_layout Itemize
3618 CTRL+LEFT (also ALT+B; command mode): Previous word.
3621 \begin_layout Itemize
3622 CTRL+RIGHT (also ALT+F; command mode): Next word.
3625 \begin_layout Itemize
3626 ALT+D (also CTRL+W; command mode): Delete word.
3629 \begin_layout Itemize
3630 LCTRL+LALT+ESCAPE: Ungraceful shutdown (leaves dump corrupted!).
3633 \begin_layout Subsection
3637 \begin_layout Subsubsection
3641 \begin_layout Standard
3642 Following modifier names are known:
3645 \begin_layout Itemize
3649 \begin_layout Itemize
3653 \begin_layout Itemize
3657 \begin_layout Itemize
3661 \begin_layout Itemize
3665 \begin_layout Subsubsection
3669 \begin_layout Standard
3670 Following key names are known:
3673 \begin_layout Itemize
3674 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
3675 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
3676 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
3677 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3678 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
3679 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3680 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
3681 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
3682 pause, capital, end, home, lefT, up, right, down, select, print, execute,
3683 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
3684 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
3685 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
3686 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
3687 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
3688 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
3689 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
3690 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
3691 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
3692 windows_right, windows_menu, command, special1, special2, special3, special4,
3693 special5, special6, special7, special8, special9, special10, special11,
3694 special12, special13, special14, special15, special16, special17, special18,
3695 special19, special20
3698 \begin_layout Section
3702 \begin_layout Standard
3703 Movie file is .zip archive in itself, normal ZIP archive tools work on it
3704 (note: If you recompress it, do not use compression methods other than
3705 store and deflate and especially do not use encryption of any kind).
3708 \begin_layout Subsection
3709 Detecting clean start/SRAM/Savestate
3712 \begin_layout Itemize
3714 \begin_inset Quotes eld
3718 \begin_inset Quotes erd
3721 it is savestate, otherwise:
3724 \begin_layout Itemize
3725 If file has members with names starting
3726 \begin_inset Quotes eld
3730 \begin_inset Quotes erd
3733 it is movie starting from SRAM, otherwise:
3736 \begin_layout Itemize
3737 It is movie starting from clear state.
3740 \begin_layout Subsection
3744 \begin_layout Standard
3745 Type of game ROM and region (as one line).
3749 \begin_layout Standard
3750 \begin_inset Tabular
3751 <lyxtabular version="3" rows="8" columns="3">
3752 <features tabularvalignment="middle">
3753 <column alignment="center" valignment="top" width="0">
3754 <column alignment="center" valignment="top" width="0">
3755 <column alignment="center" valignment="top" width="0">
3757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3760 \begin_layout Plain Layout
3766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3769 \begin_layout Plain Layout
3775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3778 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3789 \begin_layout Plain Layout
3795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3798 \begin_layout Plain Layout
3804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Plain Layout
3815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3818 \begin_layout Plain Layout
3824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3827 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3856 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3865 \begin_layout Plain Layout
3873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3876 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3914 \begin_layout Plain Layout
3920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3923 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3934 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3943 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3952 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3963 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3981 \begin_layout Plain Layout
3995 \begin_layout Standard
3999 \begin_layout Standard
4000 \begin_inset Tabular
4001 <lyxtabular version="3" rows="3" columns="2">
4002 <features tabularvalignment="middle">
4003 <column alignment="center" valignment="top" width="0">
4004 <column alignment="center" valignment="top" width="0">
4006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4009 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4058 \begin_layout Plain Layout
4072 \begin_layout Subsection
4076 \begin_layout Standard
4077 Contains type of port #1 (as one line).
4078 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
4079 If not present, defaults to 'gamepad'.
4082 \begin_layout Subsection
4086 \begin_layout Standard
4087 Contains type of port #2 (as one line).
4088 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
4089 'justifier' and 'justifiers'.
4090 If not present, defaults to 'none'.
4093 \begin_layout Subsection
4097 \begin_layout Standard
4098 Contains name of the game (as one line).
4101 \begin_layout Subsection
4105 \begin_layout Standard
4106 Contains authors, one per line.
4107 Part before '|' is the full name, part after is the nickname.
4110 \begin_layout Subsection
4114 \begin_layout Standard
4116 \begin_inset Quotes eld
4120 \begin_inset Quotes erd
4124 Used to reject other saves.
4127 \begin_layout Subsection
4128 Member: controlsversion
4131 \begin_layout Standard
4133 \begin_inset Quotes eld
4137 \begin_inset Quotes erd
4141 Used to identify what controls are there.
4144 \begin_layout Subsection
4146 \begin_inset Quotes eld
4150 \begin_inset Quotes erd
4156 \begin_layout Standard
4157 Contains bsnes core version number (as one line).
4160 \begin_layout Subsection
4164 \begin_layout Standard
4165 Contains project ID (as one line).
4166 Used to identify if two movies are part of the same project.
4169 \begin_layout Subsection
4170 Member: {rom,slota,slotb}{,xml}.sha256
4173 \begin_layout Standard
4174 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4175 Absent if corresponding file is absent.
4178 \begin_layout Subsection
4179 Member: moviesram.<name>
4182 \begin_layout Standard
4183 Raw binary startup SRAM of kind <name>.
4184 Only present in savestates and movies starting from SRAM.
4187 \begin_layout Subsection
4191 \begin_layout Standard
4192 Contains frame number (as one line) of frame movie was saved on.
4193 Only present in savestates.
4196 \begin_layout Subsection
4200 \begin_layout Standard
4201 Current value of lag counter (as one line).
4202 Only present in savestates.
4205 \begin_layout Subsection
4206 Member: pollcounters
4209 \begin_layout Standard
4210 Contains poll counters (currently 100 of them), one per line.
4211 Each line is raw poll count if DRDY is set for it.
4212 Otherwise it is negative poll count minus one.
4213 Only present in savestates.
4216 \begin_layout Subsection
4220 \begin_layout Standard
4221 Raw binary dump of host memory.
4222 Only present in savestates.
4225 \begin_layout Subsection
4229 \begin_layout Standard
4230 The raw binary savestate itself.
4231 Savestate detection uses this file, only present in savestates.
4234 \begin_layout Subsection
4238 \begin_layout Standard
4239 Screenshot of current frame.
4240 Only present in savestates.
4241 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4243 Height of image is inferred from the width and size of data.
4246 \begin_layout Subsection
4250 \begin_layout Standard
4251 Raw binary SRAM of kind <name> at time of savestate.
4252 Only present in savestates.
4255 \begin_layout Subsection
4259 \begin_layout Standard
4260 The actual input track, one line per subframe (blank lines are skipped).
4263 \begin_layout Itemize
4264 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4265 part of same frame as previous, otherwise it starts a new frame.
4268 \begin_layout Itemize
4269 First subframe must start a new frame.
4272 \begin_layout Standard
4273 Length of movie in frames is number of lines in input file that start a
4277 \begin_layout Subsection
4281 \begin_layout Standard
4286 \begin_layout Itemize
4287 Each line is in form <firstframe> <numframes> <text>.
4290 \begin_layout Itemize
4291 Linefeed is encoded as
4293 n, backslash is encoded as
4300 \begin_layout Subsection
4304 \begin_layout Standard
4305 Contains textual base-10 rerecord count (as one line; emulator just writes
4306 this, it doesn't read it) + 1.
4309 \begin_layout Subsection
4313 \begin_layout Standard
4314 This member stores set of load IDs.
4315 There is one load ID per rerecord (plus one corresponding to start of project).
4318 \begin_layout Itemize
4319 This member constists of concatenation of records
4322 \begin_layout Itemize
4323 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4327 \begin_layout Itemize
4328 IDs are interpretted as 256-bit big-endian integers with warparound.
4331 \begin_layout Itemize
4332 Initial predicted ID is all zeroes.
4335 \begin_layout Standard
4336 Format of each record is:
4339 \begin_layout Itemize
4340 1 byte: Opcode byte.
4341 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4345 \begin_layout Itemize
4346 32-prefixlen bytes of ID.
4349 \begin_layout Itemize
4350 countlen bytes of big-endian count (count).
4353 \begin_layout Standard
4354 Records are processed as follows:
4357 \begin_layout Itemize
4358 To form the first ID encoded by record, take the first prefixlen bytes predicted
4359 ID and append the read ID value to it.
4360 The result is the first ID encoded.
4363 \begin_layout Itemize
4364 If countlen is 0, record encodes 1 ID.
4367 \begin_layout Itemize
4368 If countlen is 1, record encodes 2+count IDs.
4371 \begin_layout Itemize
4372 If countlen is 2, record encodes 258+count IDs.
4375 \begin_layout Itemize
4376 If countlen is 3, record encodes 65794+count IDs.
4379 \begin_layout Itemize
4380 The new predicted ID is the next ID after last one encoded by the record.
4383 \begin_layout Standard
4384 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4388 \begin_layout Subsection
4389 Member: starttime.second
4392 \begin_layout Standard
4393 Movie starting time, second part.
4394 Epoch is Unix epoch.
4395 Default is 1,000,000,000.
4398 \begin_layout Subsection
4399 Member: starttime.subsecond
4402 \begin_layout Standard
4403 Movie starting time, subsecond part.
4408 \begin_layout Subsection
4409 Member: savetime.second
4412 \begin_layout Standard
4413 Movie saving time, second part.
4414 Default is starttime.second.
4415 Only present in savestates.
4418 \begin_layout Subsection
4419 Member: savetime.subsecond
4422 \begin_layout Standard
4423 Movie saving time, subsecond part.
4424 Default is starttime.subsecond.
4425 Only present in savestates.
4428 \begin_layout Section
4429 lsvs file format (commentary tracks)
4432 \begin_layout Subsection
4436 \begin_layout Itemize
4437 Each cluster is 8kB (8192 bytes) in size.
4440 \begin_layout Itemize
4441 Cluster n starts at offset 8192*n in file.
4444 \begin_layout Itemize
4445 The following clusters are system special:
4449 \begin_layout Itemize
4450 Cluster 0 and all clusters with number multiple of 2048 (cluster tables)
4453 \begin_layout Itemize
4454 Cluster 1 (superblock)
4458 \begin_layout Subsection
4462 \begin_layout Itemize
4463 The cluster table describing cluster n is stored in cluster n & ~0x7FF (zero
4467 \begin_layout Itemize
4468 This cluster table consists of 2048 4-byte big-endian integers.
4471 \begin_layout Itemize
4472 Each entry describes a cluster in 16MB supercluster, in order.
4475 \begin_layout Itemize
4476 The valid values for entries are:
4480 \begin_layout Itemize
4481 0x00000000: Free cluster
4484 \begin_layout Itemize
4485 0x00000001: Last cluster in chain.
4488 \begin_layout Itemize
4489 0xFFFFFFFF: System cluster (cluster tables and superblock)
4492 \begin_layout Itemize
4493 (anything else): Number of next cluster in chain.
4494 Must not be multiple of 2048.
4498 \begin_layout Itemize
4499 Due to limitations of the format, there can be at most 2097052 superclusters,
4500 giving maximum file size of 16TB.
4503 \begin_layout Subsection
4507 \begin_layout Itemize
4508 The stream table chain always starts in cluster 2.
4511 \begin_layout Itemize
4512 Otherwise, it follows normal chaining.
4515 \begin_layout Itemize
4516 The stream table consists of 16-byte entries:
4520 \begin_layout Itemize
4521 The first 8 bytes of entry give big-endian beginning position of stream
4522 in units of 1/48000 s.
4525 \begin_layout Itemize
4526 The next 4 bytes of entry give big-endian beginning cluster for control
4528 0 here marks the entry as not present.
4531 \begin_layout Itemize
4532 The last 4 bytes of entry give big-endian beginning cluster for codec data.
4536 \begin_layout Itemize
4537 Stream table clusters are normal clusters, following normal chaining.
4540 \begin_layout Itemize
4541 The stream begnning position is not guarenteed unique.
4542 There can be multiple streams with the same starting position in the file.
4545 \begin_layout Subsection
4549 \begin_layout Itemize
4550 The stream control data consists of entries 4 bytes each:
4554 \begin_layout Itemize
4555 The first 2 bytes of entry gives big-endian length of packet
4558 \begin_layout Itemize
4559 The next byte of entry gives audio length of packet in units of 1/400 s.
4562 \begin_layout Itemize
4563 The last byte is control byte.
4567 \begin_layout Itemize
4568 0 means this entry is not present and the control data ends.
4571 \begin_layout Itemize
4572 1 is valid control entry.
4577 \begin_layout Itemize
4578 The stream control data can also end by running into end of the readable
4583 \begin_layout Itemize
4584 This happens if there happens to be exact multiple of 2048 packets in stream
4585 and number of packets is nonzero.
4589 \begin_layout Itemize
4590 These clusters follow normal chaining.
4593 \begin_layout Subsection
4597 \begin_layout Itemize
4598 Stream codec data consists of raw Opus data packets packed back to back
4599 with nothing in between.
4602 \begin_layout Itemize
4603 Warning: Due to internal limitations, this data must reside in the first
4604 65536 superclusters (that is, the first 1TB of the file).
4607 \begin_layout Subsection
4611 \begin_layout Itemize
4612 The superblock is stored in cluster 1.
4616 \begin_layout Itemize
4617 The first 11 bytes are
4618 \begin_inset Quotes eld
4622 \begin_inset Quotes erd
4628 \begin_layout Itemize
4629 The rest are unused.
4632 \begin_layout Itemize
4633 This cluster 1 is marked as system special.
4636 \begin_layout Section
4637 Known ROM extensions
4640 \begin_layout Itemize
4641 SNES cartridge ROMs: sfc, smc, swc, fig, ufo, sf2, gd3, gd7, dx2, mgd, mgh.
4644 \begin_layout Itemize
4645 DMG cartridge ROMs: dmg, gb.
4648 \begin_layout Itemize
4649 GBC cartridge ROMs: cgb, gbc.
4652 \begin_layout Section
4656 \begin_layout Itemize
4657 The first line must be:
4658 \begin_inset Quotes eld
4662 \begin_inset Quotes erd
4668 \begin_layout Itemize
4669 There is one needed line:
4670 \begin_inset Quotes eld
4674 \begin_inset Quotes erd
4678 This sets system type to <systype>.
4679 The following system types are valid:
4683 \begin_layout Itemize
4687 \begin_layout Itemize
4688 bsx (BS-X non-slotted)
4691 \begin_layout Itemize
4692 bsxslotted (BS-X slotted)
4695 \begin_layout Itemize
4696 sufamiturbo (Sufami Turbo)
4699 \begin_layout Itemize
4700 sgb (Super Game Boy)
4703 \begin_layout Itemize
4707 \begin_layout Itemize
4708 gbc (Game Boy Color)
4711 \begin_layout Itemize
4712 gbc_gba (Game Boy Color with GBA initial register values)
4716 \begin_layout Itemize
4717 Optionally a region can be specified:
4718 \begin_inset Quotes eld
4722 \begin_inset Quotes erd
4726 The following values are valid:
4730 \begin_layout Itemize
4731 autodetect (Autodetect region: snes and sgb only)
4734 \begin_layout Itemize
4735 ntsc (NTSC: snes, bsx, bsxslotted, sufamiturbo, sgb)
4738 \begin_layout Itemize
4739 pal (PAL: snes, sgb)
4742 \begin_layout Itemize
4743 world (World: dmg, gbc, gbc_gba)
4747 \begin_layout Itemize
4748 ROM images are loaded as:
4749 \begin_inset Quotes eld
4753 \begin_inset Quotes erd
4757 The following types are valid:
4761 \begin_layout Itemize
4762 rom (Cartridge ROM in snes, dmg, gbc, gbc_gba.
4763 BIOS in bsx, bsxslotted, sufamiturbo)
4766 \begin_layout Itemize
4767 bsx (Cartridge ROM in bsx, bsxslotted)
4770 \begin_layout Itemize
4771 slot-a (Cartridge ROM in sufamiturbo)
4774 \begin_layout Itemize
4775 slot-b (Cartridge ROM in sufamiturbo)
4779 \begin_layout Itemize
4780 ROM markup can be loaded as:
4781 \begin_inset Quotes eld
4785 \begin_inset Quotes erd
4789 The types valid are the same as for ROMs.
4792 \begin_layout Itemize
4793 Patches can be loaded as
4794 \begin_inset Quotes eld
4797 patch[<offset>] <type> <file>
4798 \begin_inset Quotes erd
4802 The types are the same as for ROMs.
4806 \begin_layout Itemize
4807 Offset is given in form [+-]<number>.
4808 Usually offset is either +0 or -512.
4811 \begin_layout Itemize
4812 Default offset is +0.
4816 \begin_layout Subsection
4820 \begin_layout LyX-Code
4824 \begin_layout LyX-Code
4828 \begin_layout LyX-Code
4829 rom rom speedygonzales.sfc
4832 \begin_layout LyX-Code
4833 patch-512 rom sonicthehedgehog.ips
4836 \begin_layout Subsection
4840 \begin_layout LyX-Code
4844 \begin_layout LyX-Code
4848 \begin_layout LyX-Code
4849 rom rom supergameboy.sfc
4852 \begin_layout LyX-Code
4853 rom dmg megamanV.dmg
4856 \begin_layout Section
4857 Quick'n'dirty encode guide
4860 \begin_layout Enumerate
4861 Start the emulator and load the ROM and movie file.
4864 \begin_layout Enumerate
4865 Set large AVI option 'set-setting avi-large on'
4868 \begin_layout Enumerate
4869 Enable dumping 'dump-avi tmpdump'
4872 \begin_layout Enumerate
4873 Unpause and let it run until you want to end dumping.
4876 \begin_layout Enumerate
4877 Close the emulator (closing the window is the easiest way).
4881 \begin_layout Enumerate
4882 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
4883 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
4886 \begin_layout Enumerate
4887 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
4890 \begin_layout Enumerate
4891 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
4892 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
4895 \begin_layout Enumerate
4896 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
4897 Now final.mkv contains quick'n'dirty encode.
4900 \begin_layout Section
4901 Axis configurations for some gamepad types:
4904 \begin_layout Subsection
4908 \begin_layout Standard
4909 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
4912 \begin_layout LyX-Code
4913 set-axis joystick0axis2 pressure-+
4916 \begin_layout LyX-Code
4917 set-axis joystick0axis5 pressure-+
4920 \begin_layout Itemize
4921 This is needed for SDL only.
4922 EVDEV sets those types correctly.
4925 \begin_layout Subsection
4927 \begin_inset Quotes eld
4931 \begin_inset Quotes erd
4937 \begin_layout Standard
4938 Axes 8-19 should be disabled.
4941 \begin_layout LyX-Code
4942 set-axis joystick0axis8 disabled
4945 \begin_layout LyX-Code
4946 set-axis joystick0axis9 disabled
4949 \begin_layout LyX-Code
4950 set-axis joystick0axis10 disabled
4953 \begin_layout LyX-Code
4954 set-axis joystick0axis11 disabled
4957 \begin_layout LyX-Code
4958 set-axis joystick0axis12 disabled
4961 \begin_layout LyX-Code
4962 set-axis joystick0axis13 disabled
4965 \begin_layout LyX-Code
4966 set-axis joystick0axis14 disabled
4969 \begin_layout LyX-Code
4970 set-axis joystick0axis15 disabled
4973 \begin_layout LyX-Code
4974 set-axis joystick0axis16 disabled
4977 \begin_layout LyX-Code
4978 set-axis joystick0axis17 disabled
4981 \begin_layout LyX-Code
4982 set-axis joystick0axis18 disabled
4985 \begin_layout LyX-Code
4986 set-axis joystick0axis19 disabled
4989 \begin_layout Section
4993 \begin_layout Subsection
4994 Problems from BSNES core:
4997 \begin_layout Itemize
4998 The whole pending save stuff.
5001 \begin_layout Itemize
5002 Lack of layer hiding.
5005 \begin_layout Itemize
5006 It is slow (especially accuracy).
5009 \begin_layout Itemize
5010 Firmwares can't be loaded from ZIP archives.
5013 \begin_layout Subsection
5017 \begin_layout Itemize
5018 Modifiers don't work with pseudo-keys (SDL, EVDEV).
5021 \begin_layout Itemize
5022 Audio for last dumped frame is not itself dumped.
5025 \begin_layout Itemize
5026 Audio in UI is pretty bad in quality if game doesn't run at full speed.
5029 \begin_layout Itemize
5030 No menus, command based interface (SDL).
5033 \begin_layout Itemize
5034 Long commands don't scroll.
5037 \begin_layout Section
5041 \begin_layout Subsection
5045 \begin_layout Itemize
5049 \begin_layout Itemize
5050 Fix dumper video corruption with levels 10-18.
5053 \begin_layout Subsection
5057 \begin_layout Itemize
5061 \begin_layout Itemize
5062 Lots of code cleanups
5065 \begin_layout Itemize
5066 Lua interface to settings
5069 \begin_layout Itemize
5070 Allow specifying AVI borders without Lua
5073 \begin_layout Itemize
5074 Fix scaling if vscale > 1 and originx > 0 (left border exists)
5077 \begin_layout Itemize
5078 on_snoop lua callback
5081 \begin_layout Itemize
5082 Faster movie loading and saving.
5085 \begin_layout Subsection
5089 \begin_layout Itemize
5093 \begin_layout Subsection
5097 \begin_layout Itemize
5101 \begin_layout Itemize
5102 Save jukebox functionality.
5105 \begin_layout Subsection
5109 \begin_layout Itemize
5110 Try to fix some nasty failing movie load edge cases
5113 \begin_layout Itemize
5114 Allow specifying scripts to run on command line.
5117 \begin_layout Subsection
5121 \begin_layout Itemize
5122 Major source code reorganization.
5125 \begin_layout Itemize
5126 Backup savestates before overwriting.
5129 \begin_layout Itemize
5130 Don't crash if loading initial state fails.
5133 \begin_layout Subsection
5137 \begin_layout Itemize
5141 \begin_layout Itemize
5142 Fix author name parsing
5145 \begin_layout Itemize
5146 Fix rerecord counting
5149 \begin_layout Itemize
5150 (SDL) Print messages to console if SDL is uninitialized
5153 \begin_layout Itemize
5154 Add movieinfo program
5157 \begin_layout Itemize
5158 Fix loading movies starting from SRAM.
5161 \begin_layout Subsection
5165 \begin_layout Itemize
5166 Add support for unattended dumping
5169 \begin_layout Itemize
5170 Fix compiling for Win32
5173 \begin_layout Itemize
5174 Don't lock up if sound can't be initialized
5177 \begin_layout Itemize
5178 Strip trailing CR from commands
5181 \begin_layout Itemize
5182 Don't try to do dubious things in global ctors (fix crash on startup)
5185 \begin_layout Subsection
5189 \begin_layout Itemize
5190 Small documentation tweaking
5193 \begin_layout Itemize
5197 \begin_layout Itemize
5198 Fix major bug in modifier matching
5201 \begin_layout Subsection
5205 \begin_layout Itemize
5206 Lots of documentation fixes
5209 \begin_layout Itemize
5210 Use dedicated callbacks for event backcomm., not commands.
5213 \begin_layout Itemize
5214 Ensure that the watchdog is not hit when executing delayed reset.
5217 \begin_layout Itemize
5218 Remove errant tab from joystick message.
5221 \begin_layout Subsection
5225 \begin_layout Itemize
5226 Make autofire operate in absolute time, not linear time
5229 \begin_layout Itemize
5230 Reinitialize controls when resuming from loadstate
5233 \begin_layout Itemize
5234 Some more code cleanups
5237 \begin_layout Itemize
5238 If Lua allocator fails, call OOM_panic()
5241 \begin_layout Itemize
5242 Byte/word/dword/qword sized host memory write/read functions.
5245 \begin_layout Itemize
5246 Dump at correct framerate if dumping interlaced NTSC (height=448).
5249 \begin_layout Subsection
5253 \begin_layout Itemize
5254 Actually include the complete source code
5257 \begin_layout Itemize
5261 \begin_layout Subsection
5265 \begin_layout Itemize
5266 Document {save,start}time.{,sub}second.
5269 \begin_layout Itemize
5270 Intercept time() from bsnes core.
5273 \begin_layout Subsection
5277 \begin_layout Itemize
5278 Allow disabling time() interception (allow build on Mac OS X)
5281 \begin_layout Itemize
5282 Use SDLMain on Mac OS X (make SDL not crash)
5285 \begin_layout Itemize
5286 Disable delayed resets (just plain too buggy for now).
5289 \begin_layout Itemize
5293 \begin_layout Itemize
5294 Use 16-bit for graphics/video instead of 32-bit.
5297 \begin_layout Itemize
5298 gui.rectangle/gui.pixel
5301 \begin_layout Itemize
5305 \begin_layout Itemize
5306 New CSCD writer implementation.
5309 \begin_layout Subsection
5313 \begin_layout Itemize
5314 Fix interaction of * and +.
5317 \begin_layout Itemize
5321 \begin_layout Itemize
5322 Use gettimeofday()/usleep(), these seem portable enough.
5325 \begin_layout Itemize
5326 Move joystick axis manipulation to keymapper code.
5329 \begin_layout Itemize
5330 Changes to how read-only works.
5333 \begin_layout Itemize
5334 Refactor controller input code.
5337 \begin_layout Subsection
5341 \begin_layout Itemize
5342 Fix mouseclick scale compensation.
5345 \begin_layout Itemize
5346 Draw area boundaries correctly in SDL code.
5349 \begin_layout Itemize
5353 \begin_layout Itemize
5354 Fix CSCD output (buffer overrun and race condition).
5357 \begin_layout Subsection
5361 \begin_layout Itemize
5362 JMD dumping support.
5365 \begin_layout Itemize
5366 Allow unattended dumping to JMD.
5369 \begin_layout Itemize
5373 \begin_layout Itemize
5374 Switch back to 32-bit colors.
5377 \begin_layout Itemize
5378 Add Lua function gui.color.
5381 \begin_layout Itemize
5382 Use some new C++11 features in GCC 4.6.
5385 \begin_layout Itemize
5386 Be prepared for core frequency changes.
5389 \begin_layout Itemize
5390 Pass colors in one chunk from Lua.
5393 \begin_layout Subsection
5397 \begin_layout Itemize
5398 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
5399 memory.read_vma() and memory.find_vma().
5402 \begin_layout Itemize
5403 Numerious documentation fixups
5406 \begin_layout Itemize
5407 RTC time format changed
5410 \begin_layout Itemize
5411 Reformat flags display
5414 \begin_layout Itemize
5415 Allow lua package name to be overridden
5418 \begin_layout Itemize
5419 SDUMP (high-quality dumping).
5422 \begin_layout Itemize
5423 Split platform support to plugins.
5426 \begin_layout Itemize
5427 Make all sound plugins support basic sound commands
5430 \begin_layout Itemize
5431 Support portaudio for sound.
5434 \begin_layout Itemize
5435 Allow disable Lua/SDL searching.
5438 \begin_layout Itemize
5439 Upconvert colors when copying lcscreen to screen.
5442 \begin_layout Itemize
5443 Reorganize source tree.
5446 \begin_layout Itemize
5447 Evdev joystick support.
5450 \begin_layout Itemize
5451 Refactor more code into generic window code.
5454 \begin_layout Subsection
5458 \begin_layout Itemize
5459 Refactor message handling.
5462 \begin_layout Itemize
5466 \begin_layout Itemize
5470 \begin_layout Itemize
5471 Finish pending saves before load/quit.
5474 \begin_layout Itemize
5475 Wxwidgets graphics plugin.
5478 \begin_layout Subsection
5482 \begin_layout Itemize
5483 Get rid of win32-crap.[ch]pp.
5486 \begin_layout Itemize
5487 Move files around a lot.
5490 \begin_layout Itemize
5491 Get rid of need for host C++ compiler.
5494 \begin_layout Itemize
5498 \begin_layout Itemize
5499 Refactor inter-component communication.
5502 \begin_layout Itemize
5506 \begin_layout Itemize
5507 Fix crash on multiline aliases.
5510 \begin_layout Itemize
5511 Load/Save settings in wxwidgets gui.
5514 \begin_layout Subsection
5518 \begin_layout Itemize
5519 Patch problems in bsnes core
5522 \begin_layout Itemize
5523 SNES is little-endian, not big-endian!
5526 \begin_layout Itemize
5527 Fix memory corruption in lcscreen::load()
5530 \begin_layout Subsection
5534 \begin_layout Itemize
5535 Fix interpretting repeat counts in rrdata loading.
5538 \begin_layout Itemize
5539 New lua callback: on_frame()
5542 \begin_layout Itemize
5543 Remove calls to runtosave() that aren't supposed to be there
5546 \begin_layout Itemize
5547 Lua function: movie.read_rtc()
5550 \begin_layout Itemize
5551 Ignore src/fonts/font.cpp
5554 \begin_layout Itemize
5555 Fix more bsnes core problems
5558 \begin_layout Itemize
5559 Control bsnes random seeding
5562 \begin_layout Itemize
5566 \begin_layout Itemize
5567 Some bsnes core debugging features (state dump and state hash)
5570 \begin_layout Itemize
5571 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
5572 it was 'lsnes rr0-beta21').
5575 \begin_layout Subsection
5579 \begin_layout Itemize
5580 Fix memory corruption due to macro/field mixup
5583 \begin_layout Itemize
5584 search-memory update
5587 \begin_layout Itemize
5588 Allow direct-mapped framebuffer
5591 \begin_layout Itemize
5592 SDL: Use SDL_ANYFORMAT if possible
5595 \begin_layout Itemize
5596 SDMP2SOX: 2s delay modes.
5599 \begin_layout Itemize
5603 \begin_layout Itemize
5604 Use sed -E, not sed -r.
5605 Fixes building on Mac OS X.
5608 \begin_layout Itemize
5609 Wxwidgets: Save jukebox on exit
5612 \begin_layout Itemize
5613 Fix RTC if using load-movie on savestate.
5616 \begin_layout Itemize
5617 Fix crash related to full console mode.
5620 \begin_layout Subsection
5624 \begin_layout Itemize
5625 Wxwidgets: Allow bringing application to foreground on Mac OS X.
5628 \begin_layout Itemize
5629 Wxwidgets: Allow compiling on Mac OS X.
5632 \begin_layout Itemize
5633 Use movie compare instead of movie hashing (faster save/load).
5636 \begin_layout Itemize
5640 \begin_layout Subsection
5644 \begin_layout Itemize
5645 sdmp2sox: Pad soundtrack if using -l or -L.
5648 \begin_layout Itemize
5649 sdmp2sox: Fix NTSC overscan.
5652 \begin_layout Itemize
5653 sdmp2sox: Add AR correction mode.
5656 \begin_layout Itemize
5657 call lua_close() when exiting.
5660 \begin_layout Itemize
5661 Fix zip_writer bug causing warnings from info-zip and error from advzip.
5664 \begin_layout Subsection
5668 \begin_layout Itemize
5669 Fix IPS patching code (use bsnes core IPS patcher).
5672 \begin_layout Itemize
5673 Implement BPS patching (using bsnes core IPS patcher).
5676 \begin_layout Itemize
5677 Add feature to load headered ROMs.
5680 \begin_layout Subsection
5684 \begin_layout Itemize
5685 Show command names when showing keybindings
5688 \begin_layout Subsection
5692 \begin_layout Itemize
5693 Fix pause-on-end to be actually controllable
5696 \begin_layout Itemize
5697 SDL: Poll all events in queue, not just first one (fixes slowness in command
5701 \begin_layout Itemize
5702 Wxwidgets: Fix ROM loading.
5705 \begin_layout Subsection
5709 \begin_layout Itemize
5710 Lua: Add gui.textH, gui.textV, gui.textHV
5713 \begin_layout Itemize
5714 Fix text colors on SDL on Mac OS X
5717 \begin_layout Itemize
5718 Mode 'F' for finished in readonly mode.
5721 \begin_layout Itemize
5725 \begin_layout Itemize
5726 Reliably pause after skip poll
5729 \begin_layout Itemize
5730 Split UI and core into their own threads
5733 \begin_layout Subsection
5737 \begin_layout Itemize
5738 Remove leftover dummy SRAM slot
5741 \begin_layout Itemize
5742 Fix controller numbers.
5745 \begin_layout Subsection
5749 \begin_layout Itemize
5750 Fix lsnes-dumpavi after interface change.
5753 \begin_layout Itemize
5754 Also give BSNES patches for v085.
5757 \begin_layout Itemize
5758 Pack movie data in memory.
5761 \begin_layout Subsection
5765 \begin_layout Itemize
5766 Fix framecount/length given when loading movies.
5769 \begin_layout Itemize
5770 Controller command memory leak fixes.
5773 \begin_layout Itemize
5774 Don't leak palette if freeing screen object.
5777 \begin_layout Subsection
5781 \begin_layout Itemize
5785 \begin_layout Itemize
5786 Wxwidgets: Allow controlling dumper from the menu.
5789 \begin_layout Subsection
5793 \begin_layout Itemize
5794 Rewrite parts of manual
5797 \begin_layout Itemize
5798 Lua: Make it work with Lua 5.2.
5801 \begin_layout Subsection
5805 \begin_layout Itemize
5806 Win32: Fix compile errors.
5809 \begin_layout Subsection
5813 \begin_layout Itemize
5814 Refactor controller input code.
5817 \begin_layout Itemize
5818 Fix crash when using command line on SDL / Mac OS X.
5821 \begin_layout Subsection
5825 \begin_layout Itemize
5826 Delete core/coroutine (obsolete)
5829 \begin_layout Itemize
5830 Lag input display by one frame.
5833 \begin_layout Itemize
5834 Rewind movie to beginning function.
5837 \begin_layout Itemize
5838 Fix wrong frame number reported to Lua when repainting after loadstate
5841 \begin_layout Itemize
5842 Support UI editing of jukebox
5845 \begin_layout Itemize
5846 Wxwidgets: Save settings on exit.
5849 \begin_layout Itemize
5850 Support ${project} for filenames
5853 \begin_layout Itemize
5854 SDL: Fix command history
5857 \begin_layout Subsection
5861 \begin_layout Itemize
5862 Fix some order-of-global-ctor bugs.
5865 \begin_layout Subsection
5869 \begin_layout Itemize
5870 Fix crashes when quitting on Win32.
5873 \begin_layout Subsection
5877 \begin_layout Itemize
5878 EVDEV: Queue keypresses from joystick, don't send directly
5881 \begin_layout Itemize
5882 Wxwidgets: Load-Preserve that actually works.
5885 \begin_layout Subsection
5889 \begin_layout Itemize
5890 Wxwidgets: GUI for memory search.
5893 \begin_layout Itemize
5894 Warn about using synchronous queue in UI callback.
5897 \begin_layout Subsection
5901 \begin_layout Itemize
5902 Remember last saved file for each ROM
5905 \begin_layout Itemize
5906 Support MT dumping via boost.
5909 \begin_layout Itemize
5913 \begin_layout Itemize
5917 \begin_layout Itemize
5918 Make mouse be ordinary input instead of special-casing
5921 \begin_layout Itemize
5922 SDL: Don't screw up commands with NUL codepoints.
5925 \begin_layout Subsection
5929 \begin_layout Itemize
5930 Merge status panel and main window
5933 \begin_layout Itemize
5934 True movie slot support (the rest of it)
5937 \begin_layout Itemize
5938 SDL: Fix compilation error
5941 \begin_layout Itemize
5942 Elminate cross calls in dump menu code.
5945 \begin_layout Subsection
5949 \begin_layout Itemize
5950 Cancel pending saves command
5953 \begin_layout Itemize
5954 Wxwidgets: Code refactoring
5957 \begin_layout Itemize
5958 Wxwidgets: Fix system -> reset
5961 \begin_layout Itemize
5962 Wxwidgets: Read watch expressions in the right thread
5965 \begin_layout Subsection
5969 \begin_layout Itemize
5970 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
5974 \begin_layout Itemize
5975 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
5978 \begin_layout Itemize
5979 Don't append trailing '-' to prefix when saving movie.
5982 \begin_layout Itemize
5983 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
5986 \begin_layout Subsection
5990 \begin_layout Itemize
5991 Document memory watch syntax.
5994 \begin_layout Subsection
5998 \begin_layout Itemize
5999 Fix unattended dumping (lsnes-dumpavi)
6002 \begin_layout Itemize
6006 \begin_layout Itemize
6007 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
6010 \begin_layout Itemize
6011 Add option to control sample rate preturbation in AVI dumper
6014 \begin_layout Subsection
6018 \begin_layout Itemize
6019 Wxwidgets: Fix dumper submodes
6022 \begin_layout Itemize
6023 Set core controller types before loadstate
6026 \begin_layout Subsection
6030 \begin_layout Itemize
6031 Fix compiling with bsnes v086.
6034 \begin_layout Subsection
6038 \begin_layout Itemize
6039 Don't prompt before quitting
6042 \begin_layout Itemize
6043 Start unpaused, preserve pause/unpause over load.
6046 \begin_layout Itemize
6047 Try to autodetect if ROM is headered.
6050 \begin_layout Itemize
6051 Wxwidgets: Only bring up ROM patching screen if specifically requested.
6054 \begin_layout Itemize
6055 Allow configuring some hotkeys.
6058 \begin_layout Subsection
6062 \begin_layout Itemize
6063 Lots of code cleanups
6066 \begin_layout Itemize
6067 Fix JMD compression (JMD dumping was broken)
6070 \begin_layout Itemize
6071 Don't crash if Lua C function throws an exception.
6074 \begin_layout Itemize
6075 Support bitmap drawing in Lua.
6078 \begin_layout Itemize
6079 Fix bsnes v085/v086 patches.
6082 \begin_layout Itemize
6083 Improve stability on win32.
6086 \begin_layout Subsection
6090 \begin_layout Itemize
6091 Don't corrupt movie if movie length is integer multiple of frames per page.
6094 \begin_layout Subsection
6098 \begin_layout Itemize
6099 New Lua hooks: on_rewind, on_frame_emulated, on_idle, on_timer
6102 \begin_layout Itemize
6103 New Lua functions: emulator_ready(), utime(), set_idle_timeout(), set_timer_time
6104 out(), bit.extract(), bit.value(), input.geta(), input.seta() and input.controllertyp
6108 \begin_layout Itemize
6109 Wxwidgets: Fix internal focus lost (hotkeys stop working)
6112 \begin_layout Itemize
6113 Wxwidgets: Fix broken modifiers
6116 \begin_layout Itemize
6117 on_paint has parameter now.
6120 \begin_layout Itemize
6121 Optional initital fill for bitmaps
6124 \begin_layout Itemize
6125 Fix palette changing.
6128 \begin_layout Itemize
6129 Optimize rendering a bit.
6132 \begin_layout Itemize
6136 \begin_layout Subsection
6140 \begin_layout Itemize
6141 Movieinfo: Fix display of port #2 type.
6144 \begin_layout Itemize
6145 Call on_input() after loadstate.
6148 \begin_layout Subsection
6152 \begin_layout Itemize
6153 Fix writing port2 data to movie.
6156 \begin_layout Itemize
6157 Fix SRAM handling with Bsnes v087.
6160 \begin_layout Subsection
6164 \begin_layout Itemize
6165 Library loading support
6168 \begin_layout Itemize
6169 Built-in TSCC encoder
6172 \begin_layout Itemize
6173 Hi-color (256T colors) dumping.
6176 \begin_layout Itemize
6177 Dump over TCP/IP(v6)
6180 \begin_layout Itemize
6181 Hidable status panel
6184 \begin_layout Itemize
6188 \begin_layout Itemize
6189 Adjustable sound volume
6192 \begin_layout Itemize
6196 \begin_layout Itemize
6197 Allow DnD into filename boxes
6200 \begin_layout Itemize
6204 \begin_layout Itemize
6205 Portaudio: Fix speaker popping at start
6208 \begin_layout Itemize
6212 \begin_layout Itemize
6213 Speed adjustment menu
6216 \begin_layout Itemize
6217 Win32 joystick support
6220 \begin_layout Itemize
6221 Lua: gui.rainbow and gui.box
6224 \begin_layout Itemize
6225 Split key lists into classes (the key list was large!)
6228 \begin_layout Itemize
6229 More save slots support
6232 \begin_layout Itemize
6233 Wxwidgets (wxJoystick) joystick support
6236 \begin_layout Subsection
6240 \begin_layout Itemize
6241 Lots of internal joystick refactoring
6244 \begin_layout Itemize
6245 Evdev: Add mapping for BTN_TOOL_QUINTTAP
6248 \begin_layout Itemize
6249 Wxwidgets: Settings mode (open settings without ROM)
6252 \begin_layout Itemize
6253 Wxwidgets: Prompt key to use option
6256 \begin_layout Itemize
6257 Wxwidgets: Fix crash if key goes away underneath
6260 \begin_layout Itemize
6261 Wxwidgets: Fix mouse position in presence of scaling
6264 \begin_layout Itemize
6265 AVI dumper: Mode 4 (high-quality resampling to common rate using SRC)
6268 \begin_layout Itemize
6269 Wxwidgets: Redesign hotkeys dialog to avoid tree control (tree control doesn't
6270 seem to work well on WinXP)
6273 \begin_layout Itemize
6274 Start paused option.
6277 \begin_layout Subsection
6281 \begin_layout Itemize
6285 \begin_layout Itemize
6286 lsnes-dumpavi: Start Lua before starting dumper
6289 \begin_layout Itemize
6290 AVI: Fix secondary audio in mode 4.
6293 \begin_layout Subsection
6297 \begin_layout Itemize
6298 AVI: Refactor ZMBV a bit.
6301 \begin_layout Itemize
6302 Fix error reading analog values from movie file
6305 \begin_layout Subsection
6309 \begin_layout Itemize
6310 Delayed reset support
6313 \begin_layout Itemize
6314 Lua: memory.hash_region
6317 \begin_layout Subsection
6321 \begin_layout Itemize
6322 Rework the build system
6325 \begin_layout Itemize
6326 Typing input support
6329 \begin_layout Itemize
6330 Fix building with bsnes v086 and v087.
6333 \begin_layout Itemize
6334 SDL: Save settings on exit
6337 \begin_layout Itemize
6338 SDL: Command to enter command line mode with given command.
6341 \begin_layout Itemize
6342 SDL: More advanced command editing.
6345 \begin_layout Subsection
6349 \begin_layout Itemize
6351 \begin_inset Quotes eld
6354 arrow keys and enter don't work
6355 \begin_inset Quotes erd
6361 \begin_layout Itemize
6365 \begin_layout Itemize
6366 Show mode changes due to rewinding.
6369 \begin_layout Itemize
6370 Unsafe rewind support
6373 \begin_layout Itemize
6374 Fix directory transversal.
6377 \begin_layout Subsection
6381 \begin_layout Itemize
6382 AVI: Sound mode 5 (48kHz high-quality)
6385 \begin_layout Itemize
6389 \begin_layout Itemize
6390 Map the SNES bus into address space
6393 \begin_layout Itemize
6394 Fix loading memory watch files with CRLF line endings
6397 \begin_layout Subsection
6401 \begin_layout Itemize
6402 Map bsnes internal state into memory space
6405 \begin_layout Itemize
6407 \begin_inset Quotes eld
6410 click on panel wedges the emulator
6411 \begin_inset Quotes erd
6417 \begin_layout Itemize
6418 DnD movies/saves on the main window.
6421 \begin_layout Subsection
6425 \begin_layout Itemize
6426 Split core bindings into own module.
6429 \begin_layout Itemize
6430 Remember invalid settings
6433 \begin_layout Itemize
6434 Support for modified Gambatte core for GB/GBC emulation.
6437 \begin_layout Itemize
6438 Reload/swap ROM function
6441 \begin_layout Subsection
6445 \begin_layout Itemize
6446 Fix step poll function
6449 \begin_layout Subsection
6453 \begin_layout Itemize
6454 Non-insane savestate anchoring
6457 \begin_layout Subsection
6461 \begin_layout Itemize
6462 More Memory search methods
6465 \begin_layout Itemize
6466 Preserve movie if loading in RO mode.
6469 \begin_layout Itemize
6470 Fix a obscure case in timeline check
6473 \begin_layout Itemize
6474 Revamp the entiere ROM loading code
6477 \begin_layout Itemize
6481 \begin_layout Itemize
6485 \begin_layout Itemize
6486 Standalone hotkey config dialog
6489 \begin_layout Itemize
6490 Show bindings in more user-friendly format
6493 \begin_layout Subsection
6497 \begin_layout Itemize
6501 \begin_layout Itemize
6502 Fix uninitialized variables in bsnes v085
6505 \begin_layout Subsection
6509 \begin_layout Itemize
6510 Merge gambatte core into mainline (from its own branch)
6513 \begin_layout Itemize
6514 Wxwidgets: Show expected dump file formats
6517 \begin_layout Itemize
6518 Memory watch: Data typing
6521 \begin_layout Itemize
6522 lsnes internal MMIO area.
6525 \begin_layout Itemize
6526 Wxwidgets: New memory watch editor
6529 \begin_layout Itemize
6530 Hexadecimal memory watches
6533 \begin_layout Itemize
6534 Wxwidgets: Monospaced panel
6537 \begin_layout Itemize
6538 Wxwidgets: Split memory watches in panel
6541 \begin_layout Itemize
6542 Wxwidgets: Disable VMAs in memory search
6545 \begin_layout Itemize
6546 lsnes-dumpavi: Fix speed bug
6549 \begin_layout Itemize
6550 Movie subtitle support
6553 \begin_layout Itemize
6554 Fix rerecord count reporting
6557 \begin_layout Itemize
6558 Don't trash movie when loading in readonly mode.
6561 \begin_layout Subsection
6565 \begin_layout Itemize
6566 Wxwidgets: Fix crashes on closing settings dialogs on Mac OS X.
6569 \begin_layout Itemize
6570 Fix build on Mac OS X.
6573 \begin_layout Itemize
6577 \begin_layout Itemize
6578 Wxwidgets: Hidable messages window
6581 \begin_layout Itemize
6585 \begin_layout Itemize
6586 Bsnes: Support inconsistent saves
6589 \begin_layout Itemize
6590 Bsnes: Allow simulating saving every frame
6593 \begin_layout Itemize
6594 Fix desync if savestate is loaded in readonly mode in certain conditions.
6597 \begin_layout Itemize
6598 Wxwidgets: Fix save dialogs on Mac OS X.
6601 \begin_layout Itemize
6602 Wxwidgets: Fix insane status width on Win32.
6605 \begin_layout Itemize
6606 Wxwidgets: Fix autohold processing to be faster.
6609 \begin_layout Itemize
6610 Wxwidgets: Allow loading ROMs and movies from commandline.
6613 \begin_layout Subsection
6617 \begin_layout Itemize
6618 Be a bit smarter with --load
6621 \begin_layout Itemize
6622 Rewrote higher-level parts of audio system
6625 \begin_layout Itemize
6626 Tool to build commentary tracks
6629 \begin_layout Itemize
6633 \begin_layout Itemize
6634 Gambatte: Add support for SVN358
6637 \begin_layout Itemize
6638 Use builtin font when rendering status panel.
6641 \begin_layout Itemize
6642 Option to detach memory watch to its own window.
6645 \begin_layout Itemize
6646 Recent ROMs/Movies menu
6649 \begin_layout Itemize
6653 \begin_layout Itemize
6654 Useful lag counter for SNES games that autopoll
6657 \begin_layout Itemize
6658 Fix buffer overflow in gambatte sound output
6661 \begin_layout Subsection
6665 \begin_layout Itemize
6666 Don't blow up on wxGTK if the window is hidden somehow
6669 \begin_layout Itemize
6670 Support simultaneous drop of ROM and movie.
6673 \begin_layout Itemize
6674 Gambatte: Don't save spurious SRAMs.
6677 \begin_layout Itemize
6678 Make SGB ROMs actually usable.
6681 \begin_layout Itemize
6682 Fix so that saved movies appear in recent movies.
6685 \begin_layout Itemize
6686 Don't open multiple commentary editors at once.
6689 \begin_layout Subsection
6693 \begin_layout Itemize
6694 Lua: memory.readregion/memory.writeregion
6697 \begin_layout Itemize
6698 Lua: memory.map{,s}{byte,word,dword,qword}
6701 \begin_layout Itemize
6702 Lua: memory.map_structure
6705 \begin_layout Itemize
6706 Lua: Fix bus_address for gambatte
6709 \begin_layout Itemize
6710 Fix features dependent of bsnes debugger
6713 \begin_layout Itemize
6714 Cleanup bsnes debugger logic
6717 \begin_layout Itemize
6718 Fix resets in presence of save every frame
6721 \begin_layout Subsection
6725 \begin_layout Itemize
6726 Lua: input.lcid_to_pcid
6729 \begin_layout Itemize
6730 Fix off-by-one bug with slot hashes
6733 \begin_layout Itemize
6734 Fix crashes on certain memory watch expressions
6737 \begin_layout Itemize
6738 Lua: memory.read_expr
6741 \begin_layout Itemize
6742 Lua: Fix memory.read_expr on nil argument
6745 \begin_layout Itemize
6746 Fix the code to compile on G++ 4.7
6749 \begin_layout Itemize
6750 Change button_id to be a function pointer field, not a virtual method
6753 \begin_layout Itemize
6754 Add bsnes patches to fix libsnes to compile on GCC 4.7
6757 \begin_layout Itemize
6758 Gambatte: Always use legacy lag counting
6761 \begin_layout Itemize
6762 Memory commands: Memory addresses are up to 16 hex digits, not up to 8
6765 \begin_layout Itemize
6766 Fix analog controllers
6769 \begin_layout Itemize
6773 \begin_layout Itemize
6774 Fix button symbols in input display
6777 \begin_layout Itemize
6778 Compensate for nuts bsnes superscope/justifier handling
6781 \begin_layout Itemize
6782 Lua: Fix bit.extract boolean handling
6785 \begin_layout Subsection
6789 \begin_layout Itemize
6790 Split emulation cores more from the rest
6793 \begin_layout Itemize
6794 Support having multiple emulation cores compiled at once
6797 \begin_layout Itemize
6798 Support arbitrary number of ports (well, up to 31 anyway).
6801 \begin_layout Itemize
6802 SNES debugger support
6805 \begin_layout Itemize
6806 Support 16-button controllers
6809 \begin_layout Itemize
6810 Remove old SDL front end
6813 \begin_layout Itemize
6814 Data-driven controller buttons
6817 \begin_layout Itemize
6818 Generate the port code from defines
6821 \begin_layout Subsection
6825 \begin_layout Itemize
6826 Update libgambatte to SVN364
6829 \begin_layout Itemize
6830 Get rid of partial linking (building with MXE works)
6833 \begin_layout Itemize
6834 Load XML even without gamepack files
6837 \begin_layout Itemize
6838 Support screen rotate & flip
6841 \begin_layout Itemize
6842 Fix bug when changing controller key to another subkey of the same key
6845 \begin_layout Subsection
6849 \begin_layout Itemize
6850 Stop at movie end: Don't off-by-one
6853 \begin_layout Itemize
6854 Fix crash closing lsnes with voice playback active.
6857 \begin_layout Itemize
6858 Import/Export OggOpus for commentary tracks
6861 \begin_layout Itemize
6862 16-button controllers.
6865 \begin_layout Itemize
6866 Don't show nonexistent controllers in input display
6869 \begin_layout Itemize
6870 Set voice record/playback volume from UI
6873 \begin_layout Itemize
6874 Patches for gambatte SVN364.
6877 \begin_layout Itemize
6878 Load markup (if exists) even without gamepack file.
6881 \begin_layout Itemize
6882 Screen rotation & flipping
6885 \begin_layout Itemize
6886 Lua: Some new bit functions
6889 \begin_layout Itemize
6890 Auto-refresh voice streams on change.
6893 \begin_layout Itemize
6894 Auto-refresh subtitles on change & new subtitle editor.
6897 \begin_layout Itemize
6898 Fix music volume adjustment.
6901 \begin_layout Subsection
6905 \begin_layout Itemize
6906 Use system threads instead of platform threads
6909 \begin_layout Itemize
6910 Cleanup build by allowing dummy and real drivers to link together.
6913 \begin_layout Itemize
6914 Split duplex support