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
98 SVN r320, r358 or r364
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 version 5.1.X or 5.2.X
150 \begin_layout Enumerate
154 \begin_layout Enumerate
155 libopus (optional, for commentary track tool)
158 \begin_layout Section
162 \begin_layout Itemize
163 Copy bsnes sources (the bsnes subdirectory) to subdirectory 'bsnes' (for
167 \begin_layout Itemize
168 Copy gambatte sources to subdirectory 'gambatte' (for gambatte core).
171 \begin_layout Itemize
172 Patch the bsnes sources with included patches (directory 'bsnes-patches/<version
176 \begin_layout Itemize
177 Patch the gambatte sources with included patches (directory 'gambatte-patches/<v
178 ersion>', gambatte core)
181 \begin_layout Itemize
182 Edit options.build (or copy of that file)
185 \begin_layout Itemize
186 Run make (passing 'OPTIONS=<filename>' if using something else than options.build
190 \begin_layout Section
194 \begin_layout Subsection
198 \begin_layout Subsubsection
202 \begin_layout Standard
206 \begin_layout Subsubsection
210 \begin_layout Standard
214 \begin_layout Subsubsection
218 \begin_layout Standard
219 Load <file> as movie or savestate file on startup.
222 \begin_layout Subsubsection
226 \begin_layout Standard
227 Instead of starting the emulator, only display the settings.
230 \begin_layout Subsubsection
234 \begin_layout Standard
235 Run this Lua file on startup
238 \begin_layout Subsection
239 dump options (lsnes-dumpavi only)
242 \begin_layout Subsubsection
246 \begin_layout Standard
251 \begin_layout Subsubsection
255 \begin_layout Standard
256 Load <filename> as movie or savestate file on startup.
260 \begin_layout Subsubsection
264 \begin_layout Standard
265 Set the dumper to use (required).
266 Use 'list' for listing of known dumpers.
269 \begin_layout Subsubsection
270 --firmware-path=<path>
273 \begin_layout Standard
274 Set path to look for firmware.
277 \begin_layout Subsubsection
281 \begin_layout Standard
282 Set the mode to use (required for dumpers with multiple modes, forbidden
284 Use 'list' for known modes.
287 \begin_layout Subsubsection
291 \begin_layout Standard
294 \begin_inset Quotes eld
298 \begin_inset Quotes erd
304 \begin_layout Subsubsection
305 --option=<name>=<value>
308 \begin_layout Standard
309 Set option <name> to value <value>.
312 \begin_layout Subsubsection
316 \begin_layout Standard
317 Set number of frames to dump.
321 \begin_layout Subsubsection
325 \begin_layout Standard
326 Run specified lua script (lsnes-dumpavi does not have initialization files).
329 \begin_layout Subsubsection
330 --load-library=<library>
333 \begin_layout Standard
334 Load the specified shared object / dynamic library / dynamic link library.
337 \begin_layout Subsection
338 lsnes settings directory
341 \begin_layout Standard
342 The lsnes settings directory is (in order of decreasing perference):
345 \begin_layout Itemize
348 lsnes (if %APPDATA% exists)
351 \begin_layout Itemize
352 Unix: $XDG_CONFIG_HOME/lsnes (if $XDG_CONFIG_HOME exists)
355 \begin_layout Itemize
356 Unix: $HOME/.config/lsnes (if $HOME exists)
359 \begin_layout Itemize
364 \begin_layout Standard
365 If leading directories do not exist, attempt to create them is made.
368 \begin_layout Section
372 \begin_layout Itemize
373 Commands beginning with '*' invoke the corresponding command without alias
377 \begin_layout Itemize
378 If command starts with '+' (after possible '*'), the command is executed
379 as-is when button is pressed, and when button is released, it is executed
380 with '+' replaced by '-'.
383 \begin_layout Itemize
384 Commands without '+' execute only on negative edge (release).
387 \begin_layout Subsection
391 \begin_layout Standard
392 Run <script> as if commands were entered on the command line.
395 \begin_layout Subsection
399 \begin_layout Standard
400 <address> may be decimal or hexadecimal (prefixed with '0x').
401 <value> can be hexadecimal (prefixed with '0x'), unsigned or signed (prefixed
405 \begin_layout Standard
406 The available element <sizes> are:
409 \begin_layout Itemize
413 \begin_layout Itemize
417 \begin_layout Itemize
421 \begin_layout Itemize
425 \begin_layout Standard
426 When reading RAM and ROM, multi-byte reads/writes are big-endian.
427 When dealing with DSP memory, multi-byte reads/writes are native-endian
428 (do not use operand sizes exceeding DSP bitness, except dword is OK for
432 \begin_layout Subsubsection
433 read-<size> <address>
436 \begin_layout Standard
437 Read the value of byte in <address>.
440 \begin_layout Subsubsection
441 read-s<size> <address>
444 \begin_layout Standard
445 Read the value of signed byte in <address>.
448 \begin_layout Subsubsection
449 write-<size> <address> <value>
452 \begin_layout Standard
453 Write <value> to byte in address <address>.
456 \begin_layout Subsection
460 \begin_layout Standard
461 These commands are not available in lsnesrc, but are available after ROM
465 \begin_layout Subsubsection
469 \begin_layout Standard
473 \begin_layout Subsubsection
477 \begin_layout Standard
478 Toggle paused/unpaused
481 \begin_layout Subsubsection
485 \begin_layout Standard
487 If the button is still held after configurable timeout expires, game unpauses
488 for the duration frame advance is held.
491 \begin_layout Subsubsection
495 \begin_layout Standard
497 If the button is still held after configurable timeout expires, game unpauses
498 for the duration frame advance is held.
501 \begin_layout Subsubsection
505 \begin_layout Standard
506 Skip to first poll in frame after current.
509 \begin_layout Subsubsection
513 \begin_layout Standard
514 Reset the SNES after this frame.
517 \begin_layout Subsubsection
521 \begin_layout Standard
522 Load savestate <filename> in current mode.
525 \begin_layout Subsubsection
526 load-state <filename>
529 \begin_layout Standard
530 Load savestate <filename> in readwrite mode.
533 \begin_layout Subsubsection
534 load-readonly <filename>
537 \begin_layout Standard
538 Load savestate <filename> in readonly mode.
541 \begin_layout Subsubsection
542 load-preserve <filename>
545 \begin_layout Standard
546 Load savestate <filename> in readonly mode, preserving current events.
549 \begin_layout Subsubsection
550 load-movie <filename>
553 \begin_layout Standard
554 Load savestate <filename>, ignoring save part in readonly mode.
557 \begin_layout Subsubsection
558 save-state <filename>
561 \begin_layout Standard
562 Save system state to <filename> as soon as possible.
565 \begin_layout Subsubsection
566 save-movie <filename>
569 \begin_layout Standard
570 Save movie to <filename>.
573 \begin_layout Subsubsection
577 \begin_layout Standard
581 \begin_layout Subsubsection
585 \begin_layout Standard
589 \begin_layout Subsubsection
593 \begin_layout Standard
594 Toggle between read-only and read-write modes.
597 \begin_layout Subsubsection
598 test-1, test-2, test-3
601 \begin_layout Standard
602 Internal test commands.
606 \begin_layout Subsubsection
607 take-screenshot <filename>
610 \begin_layout Standard
611 Save screenshot to <filename>.
614 \begin_layout Subsubsection
615 +controller <class>-<#>-<button>
618 \begin_layout Standard
619 Press button <button> on controller <num> of class <class>.
622 \begin_layout Itemize
623 Class 'gamepad': A, B, X, Y, L, R, select, start, up, down, left, right,
624 ext0, ext1, ext2, ext3
627 \begin_layout Itemize
631 \begin_layout Itemize
632 Class 'superscope': trigger, cursor, turbo, pause
635 \begin_layout Itemize
636 Class 'justifier': trigger, start
639 \begin_layout Itemize
640 Class 'gb': A, B, select, start, up, down, left, right
643 \begin_layout Subsubsection
644 hold-controller <class>-<#>-<button>
647 \begin_layout Standard
648 Hold/unhold button <button> on controller <num> of class <class>.
651 \begin_layout Subsubsection
652 type-controller <class>-<#>-<button>
655 \begin_layout Standard
656 Hold/unhold button <button> on controller <num> of class <class> for the
658 See +controller for button names.
661 \begin_layout Standard
662 Cauntion: Does not work properly if outside frame advance.
665 \begin_layout Subsubsection
666 +autofire-controller <class>-<#>-<button> [[<duty>] <cyclelen>]
669 \begin_layout Standard
671 If duty is not specified, defaults to 1.
672 If <cyclelen> is not specified, defaults to 2.
675 \begin_layout Subsubsection
676 -autofire-controller <class>-<#>-<button> [[<duty>] <cyclelen>]
679 \begin_layout Standard
683 \begin_layout Subsubsection
684 autofire-controller <class>-<#>-<button> [[<duty>] <cyclelen>]
687 \begin_layout Standard
689 If autofire is turned on, specified cycle is used.
692 \begin_layout Subsubsection
693 designate-position <class>-<#>-analog<n>
696 \begin_layout Standard
697 Designate position for analog pair.
698 <n> is only there if there are multiple axis pairs.
701 \begin_layout Subsubsection
705 \begin_layout Standard
709 \begin_layout Subsubsection
713 \begin_layout Standard
714 Toggle pause on end flag.
717 \begin_layout Subsubsection
721 \begin_layout Standard
722 Set pause on end flag.
725 \begin_layout Subsubsection
729 \begin_layout Standard
730 Clear pause on end flag.
733 \begin_layout Subsection
737 \begin_layout Subsubsection
738 cycle-jukebox-backward
741 \begin_layout Standard
742 Cycle save jukebox backwards.
745 \begin_layout Subsubsection
746 cycle-jukebox-forward
749 \begin_layout Standard
750 Cycle save jukebox forwards
753 \begin_layout Subsubsection
757 \begin_layout Standard
758 Do load from jukebox (current mode).
761 \begin_layout Subsubsection
765 \begin_layout Standard
766 Do state save to jukebox.
769 \begin_layout Subsection
773 \begin_layout Standard
774 Only available if lua support is compiled in.
777 \begin_layout Subsubsection
778 evaluate-lua <luacode>
781 \begin_layout Standard
782 Run Lua code <luacode> using built-in Lua interpretter.
785 \begin_layout Subsubsection
789 \begin_layout Standard
790 Run specified lua file using built-in Lua interpretter.
793 \begin_layout Subsubsection
797 \begin_layout Standard
798 Clear the Lua VM state and restore to factory defaults.
801 \begin_layout Subsection
805 \begin_layout Subsubsection
806 add-watch <name> <expression>
809 \begin_layout Standard
810 Adds new watch (or modifies old one).
813 \begin_layout Subsubsection
817 \begin_layout Standard
821 \begin_layout Subsection
825 \begin_layout Subsubsection
826 enable-sound <on/off>
829 \begin_layout Standard
830 Enable/Disable sound.
833 \begin_layout Subsection
837 \begin_layout Subsubsection
841 \begin_layout Standard
842 Reloads the main ROM image from <file>.
845 \begin_layout Subsubsection
849 \begin_layout Standard
850 Tangent for recording voice for commentary track.
851 While pressed, record a stream.
854 \begin_layout Section
858 \begin_layout Subsection
862 \begin_layout Subsection
866 \begin_layout Subsubsection
870 \begin_layout Standard
871 AVI dumper: Always dump at 512x448 or 512x478 regardless of what the console
875 \begin_layout Subsubsection
879 \begin_layout Standard
880 AVI dumper: Set the default left border thickness (unless lua overrides)
886 \begin_layout Subsubsection
890 \begin_layout Standard
891 AVI dumper: Set the default right border thickness (unless lua overrides)
897 \begin_layout Subsubsection
901 \begin_layout Standard
902 AVI dumper: Set the default top border thickness (unless lua overrides)
908 \begin_layout Subsubsection
912 \begin_layout Standard
913 AVI dumper: Set the default bottom border thickness (unless lua overrides)
919 \begin_layout Subsubsection
923 \begin_layout Standard
924 AVI dumper: Maximum number of frames per dump segment (0 => unlimited).
929 \begin_layout Subsubsection
933 \begin_layout Standard
934 AVI dumper: Compression level (0-18).
937 \begin_layout Itemize
938 Compression levels 10 and above are not compatible with stock CSCD codec.
941 \begin_layout Itemize
942 Recomended level is 7.
945 \begin_layout Subsubsection
949 \begin_layout Standard
950 AVI dumper: Set method of determining the sound rate.
953 \begin_layout Itemize
954 0: Pick nearest of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48, 64, 88.2, 96,
955 128, 176.4 and 192 kHz.
958 \begin_layout Itemize
959 1: Round down to nearest integer.
962 \begin_layout Itemize
963 2: Round up to nearest ingeter.
966 \begin_layout Itemize
967 3: Multiply by denominator.
970 \begin_layout Itemize
971 4: High quality 44.1kHz (SRC needed).
974 \begin_layout Itemize
975 5: High quality 48kHz (SRC needed).
978 \begin_layout Subsection
982 \begin_layout Subsubsection
986 \begin_layout Standard
987 JMD dumper: Compression level (0-9).
990 \begin_layout Section
994 \begin_layout Subsection
998 \begin_layout Subsubsection
1002 \begin_layout Standard
1003 Print line to message console.
1006 \begin_layout Subsubsection
1007 exec(string command)
1010 \begin_layout Standard
1011 Run command as it was entered on the command line
1014 \begin_layout Subsubsection
1018 \begin_layout Standard
1020 First is time since some epoch in seconds, the second is microseconds mod
1021 10^6 since that epoch.
1024 \begin_layout Subsubsection
1028 \begin_layout Standard
1029 Returns true if emulator has finished booting, false if not (on_startup()
1030 will be issued later).
1033 \begin_layout Subsubsection
1034 set_idle_timeout(number timeout)
1037 \begin_layout Standard
1038 Set number of microseconds to block idle for.
1039 After this timeout has expired, on_idle() will be called once.
1042 \begin_layout Subsubsection
1043 set_timer_timeout(number timeout)
1046 \begin_layout Standard
1047 Set number of microseconds to block timer for.
1048 After this timeout has expired, on_timer() will be called once.
1051 \begin_layout Subsubsection
1052 bus_address(number snesaddr)
1055 \begin_layout Standard
1056 Returns virtual address corresponding to specified address on SNES bus.
1059 \begin_layout Subsubsection
1060 loopwrapper(function fun, ...)
1063 \begin_layout Standard
1064 Calls function fun with function and specified arguments.
1065 The function passed suspends execution until the function returned is called.
1066 Handy for linear flow control among multiple invocations of a hook.
1070 \begin_layout LyX-Code
1071 on_paint = loopwrapper(function(wait)
1075 \begin_layout LyX-Code
1080 \begin_layout LyX-Code
1082 \begin_inset Quotes eld
1086 \begin_inset Quotes erd
1092 \begin_layout LyX-Code
1097 \begin_layout LyX-Code
1102 \begin_layout LyX-Code
1106 \begin_layout Subsubsection
1107 list_bindings([string cmd])
1110 \begin_layout Standard
1111 Get table of all keybindings, indexed by keyspec (modifiers|mask/key).
1112 If command is specified, the table is limited to that command.
1113 Also searches for controller keys.
1116 \begin_layout Subsubsection
1117 get_alias(string aname)
1120 \begin_layout Standard
1121 Get expansion of given alias.
1124 \begin_layout Subsubsection
1125 set_alias(string aname, string value)
1128 \begin_layout Standard
1129 Set expansion of given alias.
1132 \begin_layout Subsubsection
1133 create_ibind(string name, string cmd)
1136 \begin_layout Standard
1137 Return object representing inverse binding with specified name and specified
1141 \begin_layout Itemize
1142 To create press/release commands, use aliases +foo and -foo .
1145 \begin_layout Itemize
1146 Keep the returned object around.
1149 \begin_layout Subsection
1153 \begin_layout Standard
1154 Bitwise logical functions and related.
1157 \begin_layout Subsubsection
1158 bit.none(number...) / bit.bnot(number...)
1161 \begin_layout Standard
1162 48-bit bitwise NOT / NONE function (set bits that are set in none of the
1166 \begin_layout Subsubsection
1167 bit.any(number...) / bit.bor(number...)
1170 \begin_layout Standard
1171 48-bit bitwise OR / ANY function (set bits that are set in any of the arguments).
1174 \begin_layout Subsubsection
1175 bit.all(number...) / bit.band(number...)
1178 \begin_layout Standard
1179 48-bit bitwise AND / ALL function (set bits that are set in all of the arguments
1183 \begin_layout Subsubsection
1184 bit.parity(number...) / bit.bxor(number...)
1187 \begin_layout Standard
1188 48-bit bitwise XOR / PARITY function (set bits that are set in odd number
1192 \begin_layout Subsubsection
1193 bit.lrotate(number base[, number amount[, number bits]])
1196 \begin_layout Standard
1197 Rotate bits-bit (max 48, default 48) number left by amount (default 1) places.
1200 \begin_layout Subsubsection
1201 bit.rrotate(number base[, number amount[, number bits]])
1204 \begin_layout Standard
1205 Rotate bits-bit (max 48, default 48) number right by amount (default 1)
1209 \begin_layout Subsubsection
1210 bit.lshift(number base[, number amount[, number bits]])
1213 \begin_layout Standard
1214 Shift bits-bit (max 48, default 48) number left by amount (default 1) places.
1215 The new bits are filled with zeroes.
1218 \begin_layout Subsubsection
1219 bit.lrshift(number base[, number amount[, number bits]])
1222 \begin_layout Standard
1223 Shift bits-bit (max 48, default 48) number logically right by amount (default
1225 The new bits are filled with zeroes.
1228 \begin_layout Subsubsection
1229 bit.arshift(number base[, number amount[, number bits]])
1232 \begin_layout Standard
1233 Shift bits-bit (max 48, default 48) number arithmetically right by amount
1235 The new bits are shifted in with copy of the high bit.
1238 \begin_layout Subsubsection
1239 bit.extract(number base[, number bit0[, number bit1,...]])
1242 \begin_layout Standard
1243 Returns number that has bit0-th bit as bit 0, bit1-th bit as 1 and so on.
1246 \begin_layout Standard
1250 \begin_layout Itemize
1251 Bit numbers up to 51 should work reliably (then things start falling apart
1252 due to double precision issues).
1255 \begin_layout Itemize
1256 There are two special bit positions, true and false, standing for always
1257 set bit and always clear bit.
1260 \begin_layout Subsubsection
1261 bit.value([number bit1[, number bit2,...]])
1264 \begin_layout Standard
1265 Returns bitwise OR of 1 left shifted by bit1 places, 1 left shifted by bit2
1267 As special value, nil argument is no-op.
1270 \begin_layout Subsubsection
1271 bit.test_any(number a, number b)
1274 \begin_layout Standard
1275 Returns true if bitwise and of a and b is nonzero, otherwise false.
1278 \begin_layout Subsubsection
1279 bit.test_all(number a, number b)
1282 \begin_layout Standard
1283 Returns true if bitwise and of a and b is equals b, otherwise false.
1286 \begin_layout Subsubsection
1287 bit.popcount(number a)
1290 \begin_layout Standard
1291 Returns number of set bits in a.
1294 \begin_layout Subsubsection
1295 bit.clshift(number a, number b, [number amount,[number bits]])
1298 \begin_layout Standard
1299 Does chained left shift on a, b by amount positions, assuming numbers to
1300 be of specified number of bits.
1303 \begin_layout Subsubsection
1304 bit.crshift(number a, number b, [number amount,[number bits]])
1307 \begin_layout Standard
1308 Does chained right shift on a, b by amount positions, assuming numbers to
1309 be of specified number of bits.
1312 \begin_layout Subsubsection
1313 bit.flagdecode(number a, number bits, [string on, [string off]])
1316 \begin_layout Standard
1317 Return string of length bits where ith character is ith character of on
1318 if bit i is on, otherwise ith character of off.
1319 Out of range reads give last character, or '*'/'-' if empty.
1322 \begin_layout Subsubsection
1323 bit.rflagdecode(number a, number bits, [string on, [string off]])
1326 \begin_layout Standard
1327 Like bit.flagdecode, but outputs the string in the opposite order (most significa
1331 \begin_layout Subsection
1335 \begin_layout Standard
1336 Most of these functions can only be called in on_paint and on_video callbacks.
1337 Exceptions are noted.
1340 \begin_layout Standard
1342 Bits 0-7 are the blue component, bits 8-15 are the green component, bits
1343 16-23 are the red component, bits 24-31 are alpha component (0 is fully
1344 opaque, 255 is almost transparent).
1345 -1 is the fully transparent color.
1346 Alpha values greater than 127 do work.
1349 \begin_layout Standard
1350 Origin of coordinates is at top left corner of game display area.
1351 Left and top gaps correspond to negative coordinates.
1354 \begin_layout Subsubsection
1358 \begin_layout Standard
1359 Returns 2-tuple (hresolution, vresolution).
1362 \begin_layout Subsubsection
1363 gui.<class>_gap(number gap)
1366 \begin_layout Standard
1367 Set the <class> (left, right, top, bottom) gap to specified value (max gap
1371 \begin_layout Subsubsection
1372 gui.text(number x, number y, string text[, number fgc[, number bgc]])
1375 \begin_layout Standard
1376 Draw specified text on the GUI (each character cell is 8 or 16 wide and
1381 \begin_layout Itemize
1382 x: X-coordinate to start the drawing from (and x-coordinate at begining
1386 \begin_layout Itemize
1387 y: Y-coordinate to start the drawing from.
1390 \begin_layout Itemize
1391 text: The text to draw.
1394 \begin_layout Itemize
1395 fgc: Text color (default is 0xFFFFFF (white))
1398 \begin_layout Itemize
1399 bgc: Background color (default is -1 (transparent))
1402 \begin_layout Subsubsection
1403 gui.textH(number x, number y, string text[, number fgc[, number bgc]])
1406 \begin_layout Standard
1407 Like gui.text, but draw using double-width.
1410 \begin_layout Subsubsection
1411 gui.textV(number x, number y, string text[, number fgc[, number bgc]])
1414 \begin_layout Standard
1415 Like gui.text, but draw using double-height.
1418 \begin_layout Subsubsection
1419 gui.textHV(number x, number y, string text[, number fgc[, number bgc]])
1422 \begin_layout Standard
1423 Like gui.text, but draw using double-width/double-height.
1426 \begin_layout Subsubsection
1427 gui.rectangle(number x, number y, number width, number height[, number thickness[
1428 , number outline[, number fill]]])
1431 \begin_layout Standard
1432 Draw rectangle on the GUI.
1436 \begin_layout Itemize
1437 x: X-coordinate of left edge.
1440 \begin_layout Itemize
1441 y: Y-coordinate of upper edge.
1444 \begin_layout Itemize
1445 width: Width of rectangle.
1448 \begin_layout Itemize
1449 height: Height of rectangle.
1452 \begin_layout Itemize
1453 thickness: Thickness of outline (default is 1).
1456 \begin_layout Itemize
1457 outline: Color of outline (default is 0xFFFFFF (white))
1460 \begin_layout Itemize
1461 fill: Color of fill (default is -1 (transparent))
1464 \begin_layout Subsubsection
1465 gui.box(number x, number y, number width, number height[, number thickness[,
1466 number outline1[,number outline2[, number fill]]]])
1469 \begin_layout Standard
1470 Draw rectangle with 3D effect on the GUI.
1474 \begin_layout Itemize
1475 x: X-coordinate of left edge.
1478 \begin_layout Itemize
1479 y: Y-coordinate of upper edge.
1482 \begin_layout Itemize
1483 width: Width of rectangle.
1486 \begin_layout Itemize
1487 height: Height of rectangle.
1490 \begin_layout Itemize
1491 thickness: Thickness of outline (default is 1).
1494 \begin_layout Itemize
1495 outline1: First color of outline (default is 0xFFFFFF (white))
1498 \begin_layout Itemize
1499 outline2: First color of outline (default is 0x808080 (dark gray))
1502 \begin_layout Itemize
1503 fill: Color of fill (default is 0xC0C0C0 (light grayy))
1506 \begin_layout Subsubsection
1507 gui.pixel(number x, number y[, number color])
1510 \begin_layout Standard
1511 Draw one pixel on the GUI.
1515 \begin_layout Itemize
1516 x: X-coordinate of the pixel
1519 \begin_layout Itemize
1520 y: Y-coordinate of the pixel
1523 \begin_layout Itemize
1524 color: Color of the pixel (default is 0xFFFFFF (white))
1527 \begin_layout Subsubsection
1528 gui.crosshair(number x, number y[, number length[, number color]])
1531 \begin_layout Standard
1536 \begin_layout Itemize
1537 x: X-coordinate of the crosshair
1540 \begin_layout Itemize
1541 y: Y-coordinate of the crosshair
1544 \begin_layout Itemize
1545 length: Length of the crosshair lines (default 10).
1548 \begin_layout Itemize
1549 color: Color of the crosshair (default is 0xFFFFFF (white))
1552 \begin_layout Subsubsection
1553 gui.line(number x1, number y1, number x2, number y2[, number color])
1556 \begin_layout Standard
1561 \begin_layout Itemize
1562 x1: X-coordinate of one end.
1565 \begin_layout Itemize
1566 y1: Y-coordinate of one end.
1569 \begin_layout Itemize
1570 x2: X-coordinate of the other end.
1573 \begin_layout Itemize
1574 y2: Y-coordinate of the other end.
1577 \begin_layout Itemize
1578 color: Color of the line (default is 0xFFFFFF (white)).
1581 \begin_layout Subsubsection
1582 gui.circle(number x, number y, number r[, number thick[, number border[,
1586 \begin_layout Standard
1591 \begin_layout Itemize
1592 x: X-coordinate of the center
1595 \begin_layout Itemize
1596 y: Y-coordinate of the center
1599 \begin_layout Itemize
1600 r: The radius of the circle
1603 \begin_layout Itemize
1604 thick: Border thickness
1607 \begin_layout Itemize
1608 border: Border color (default is 0xFFFFFF (white))
1611 \begin_layout Itemize
1612 fill: Fill color (default is -1 (transparent)).
1615 \begin_layout Subsubsection
1616 gui.bitmap_draw(number x, number y, bitmap bitmap, palette palette)
1619 \begin_layout Standard
1620 Draw a bitmap on screen with specified palette.
1624 \begin_layout Itemize
1625 x: X-coordinate of left edge.
1628 \begin_layout Itemize
1629 y: Y-coordinate of top edge.
1632 \begin_layout Itemize
1633 bitmap: The bitmap to draw
1636 \begin_layout Itemize
1637 palette: The palette to draw the bitmap using.
1640 \begin_layout Subsubsection
1641 gui.bitmap_draw(number x, number y, dbitmap bitmap)
1644 \begin_layout Standard
1645 Draw a bitmap on screen.
1649 \begin_layout Itemize
1650 x: X-coordinate of left edge.
1653 \begin_layout Itemize
1654 y: Y-coordinate of top edge.
1657 \begin_layout Itemize
1658 bitmap: The bitmap to draw
1661 \begin_layout Subsubsection
1665 \begin_layout Standard
1666 Returns a new palette (initially all transparent).
1667 Can be used anywhere.
1670 \begin_layout Subsubsection
1671 gui.bitmap_new(number w, number h, boolean direct[, bool icolor])
1674 \begin_layout Standard
1675 Returns a new bitmap/dbitmap.
1676 Can be used anywhere.
1680 \begin_layout Itemize
1681 w: The width of new bitmap
1684 \begin_layout Itemize
1685 h: The height of new bitmap
1688 \begin_layout Itemize
1689 direct: If true, the returned bitmap is dbitmap, otherwise bitmap.
1692 \begin_layout Itemize
1693 icolor: Initital fill color (defaults to 0 on BITMAP, -1 on DBITMAP)
1696 \begin_layout Subsubsection
1697 gui.bitmap_load(string file)
1700 \begin_layout Standard
1701 Returns loaded bitmap/dbitmap (if bitmap, the second return value is palette
1703 Can be used anywhere.
1707 \begin_layout Itemize
1708 file: The name of file to load.
1711 \begin_layout Subsubsection
1712 gui.palette_set(palette palette, number index, number color)
1715 \begin_layout Standard
1716 Sets color in palette.
1717 Can be used anywhere.
1721 \begin_layout Itemize
1722 palette: The palette to manipulate
1725 \begin_layout Itemize
1726 index: Index of color (0-65535).
1729 \begin_layout Itemize
1730 color: The color value.
1733 \begin_layout Subsubsection
1734 gui.bitmap_pset(bitmap/dbitmap bitmap, number x, number y, number color)
1737 \begin_layout Standard
1738 Sets specified pixel in bitmap.
1739 Can be used anywhere.
1743 \begin_layout Itemize
1744 bitmap: The bitmap to manipulate
1747 \begin_layout Itemize
1748 x: The x-coordinate of the pixel.
1751 \begin_layout Itemize
1752 y: The y-coordinate of the pixel.
1755 \begin_layout Itemize
1756 color: If bitmap is a bitmap, color index (0-65535).
1757 Otherwise color value.
1760 \begin_layout Subsubsection
1761 gui.bitmap_size(bitmap/dbitmap bitmap)
1764 \begin_layout Standard
1766 Can be used anywhere.
1770 \begin_layout Itemize
1771 bitmap: The bitmap to query.
1774 \begin_layout Standard
1775 The first return is the width, the second is the height.
1778 \begin_layout Subsubsection
1779 gui.bitmap_blit(bitmap/dbitmap dest, number dx, number dy, bitmap/dbitmap
1780 src, number sx, number sy, number w, number h[, number ck])
1783 \begin_layout Standard
1784 Blit a part of bitmap to another.
1785 Can be used anywhere.
1789 \begin_layout Itemize
1790 dest: Destination to blit to.
1793 \begin_layout Itemize
1794 dx: left edge of target
1797 \begin_layout Itemize
1798 dy: Top edge of target
1801 \begin_layout Itemize
1802 src: The source to blit from.
1803 Must be of the same type as destination.
1806 \begin_layout Itemize
1807 sx: left edge of source
1810 \begin_layout Itemize
1811 sy: Top edge of source
1814 \begin_layout Itemize
1818 \begin_layout Itemize
1819 h: Height of region.
1822 \begin_layout Itemize
1824 Pixels of this color are not blitted.
1828 \begin_layout Itemize
1829 If bitmaps are bitmaps, this is color index of colorkey.
1830 Values outside range 0-65535 cause no key to be used as colorkey.
1833 \begin_layout Itemize
1834 If bitmaps are dbitmaps, this color value of colorkey.
1837 \begin_layout Itemize
1838 May be absent or nil for no colorkey blit.
1842 \begin_layout Subsubsection
1846 \begin_layout Standard
1847 Request on_repaint() to happen as soon as possible.
1848 Can be used anywhere.
1851 \begin_layout Subsubsection
1852 gui.subframe_update(boolean on)
1855 \begin_layout Standard
1856 Request subframe updates (calling on_paint() on subframes) to happen (on=true)
1857 or not happen (on=false).
1858 Can be used anywhere.
1861 \begin_layout Subsubsection
1862 gui.screenshot(string filename)
1865 \begin_layout Standard
1866 Write PNG screenshot of the current frame (no drawings) to specified file.
1867 Can be used anywhere.
1870 \begin_layout Subsubsection
1871 gui.color(number r, number g, number b[, number a])
1874 \begin_layout Standard
1875 Returns color (in notation Lua scripts use) corresponding to color (r,g,b),
1876 each component in scale 0-255.
1877 If a is specified, that is alpha (0 is fully transparent, 256(sic) is fully
1879 The default alpha is 256.
1882 \begin_layout Subsubsection
1883 gui.status(string name, string value)
1886 \begin_layout Standard
1888 \begin_inset Quotes eld
1892 \begin_inset Quotes erd
1895 to <value> in status area.
1896 Can be used anywhere.
1899 \begin_layout Subsubsection
1900 gui.rainbow(number step, number steps[, number color])
1903 \begin_layout Standard
1904 Perform hue rotation of color <color> (default bright red), by <step> steps.
1905 The number of steps per full rotation is given by absolute value of <steps>.
1908 \begin_layout Standard
1909 If <steps> is negative, the rotation will be counterclockwise.
1912 \begin_layout Subsubsection
1913 gui.screenshot(string filename)
1916 \begin_layout Standard
1917 Saves a screenshot into specified file.
1920 \begin_layout Subsubsection
1921 gui.renderq_new(number width, number height)
1924 \begin_layout Standard
1925 Create render queue with specified reported size and return it.
1928 \begin_layout Subsubsection
1929 gui.renderq_clear(RENDERQUEUE queue)
1932 \begin_layout Standard
1933 Clear specified render queue.
1936 \begin_layout Subsubsection
1937 gui.renderq_set(RENDERQUEUE queue)
1940 \begin_layout Standard
1941 Switch to specified render queue.
1942 Use nil as queue to switch to default queue.
1945 \begin_layout Itemize
1946 When switched to another queue, all drawing functions work and draw there,
1947 even outside on_video/on_paint.
1950 \begin_layout Subsubsection
1951 gui.renderq_run(RENDERQUEUE queue)
1954 \begin_layout Standard
1955 Run specified render queue, copying the objects to current render queue.
1959 \begin_layout Itemize
1960 Warning: Don't try to run the current render queue.
1963 \begin_layout Subsubsection
1964 gui.loadfont(string filename)
1967 \begin_layout Standard
1968 Loads font from specified file (CUSTOMFONT object).
1971 \begin_layout Subsubsection
1972 CUSTOMFONT(number x, number y, string text[, number fgc[, number bgc[, number
1976 \begin_layout Standard
1977 Draw string with custom font to screen.
1978 The parameters are the same as in gui.text, except hlc is the halo color
1979 (default is no halo).
1983 \begin_layout Subsection
1987 \begin_layout Standard
1989 Only available in on_input callback.
1992 \begin_layout Subsubsection
1993 input.get(number controller, number index)
1996 \begin_layout Standard
1997 Read the specified index (0-11) from specified controller (0-7).
2001 \begin_layout Itemize
2002 Uses physical controller numbering.
2003 Gamepad in port 2 is controller 4, not 1!
2006 \begin_layout Subsubsection
2007 input.set(number controller, number index, number value)
2010 \begin_layout Standard
2011 Write the specified index (0-11) from specified controller (0-7), storing
2016 \begin_layout Itemize
2017 Uses physical controller numbering.
2018 Gamepad in port 2 is controller 4, not 1!
2021 \begin_layout Subsubsection
2022 input.get2(number port, number controller, number index)
2025 \begin_layout Standard
2026 Read the specified input tuple.
2029 \begin_layout Itemize
2030 Port 0 is system port.
2033 \begin_layout Subsubsection
2034 input.set2(number port, number controller, number index, number value)
2037 \begin_layout Standard
2038 Write the specified input tuple.
2041 \begin_layout Itemize
2042 Port 0 is system port.
2045 \begin_layout Subsubsection
2046 input.lcid_to_pcid2(number lcid)
2049 \begin_layout Standard
2050 Look up physical pcid pair (port, controller) corresponding to specified
2051 logical controller (1-based).
2052 Returns nothing if controller does not exist.
2055 \begin_layout Subsubsection
2056 input.port_type(number port)
2059 \begin_layout Standard
2060 Return type of specified port.
2063 \begin_layout Subsubsection
2064 input.controller_info(number port, number controller)
2067 \begin_layout Standard
2068 Get controller info for specified controller.
2069 If controller does not exist, returns nil.
2070 Otherwise returns a table with following fields:
2073 \begin_layout Itemize
2074 type (string): Type of the controller.
2077 \begin_layout Itemize
2078 class (string): Class of the controller.
2081 \begin_layout Itemize
2082 classnum (number): Number of the controller within its class (1-based)
2085 \begin_layout Itemize
2086 lcid (number): Logical controller number of the controller.
2089 \begin_layout Itemize
2090 button_count (number): Number of buttons on controller
2093 \begin_layout Itemize
2094 buttons (array): Array of following info about each button:
2098 \begin_layout Itemize
2099 type (string): Type of button.
2101 \begin_inset Quotes eld
2105 \begin_inset Quotes erd
2109 \begin_inset Quotes eld
2113 \begin_inset Quotes erd
2117 \begin_inset Quotes eld
2121 \begin_inset Quotes erd
2125 \begin_inset Quotes eld
2129 \begin_inset Quotes erd
2135 \begin_layout Itemize
2136 name (string): Name of button.
2139 \begin_layout Itemize
2140 symbol (string): Symbol of button.
2141 Only present for type
2142 \begin_inset Quotes eld
2146 \begin_inset Quotes erd
2152 \begin_layout Itemize
2153 hidden (boolean): True if hidden button.
2158 \begin_layout Subsubsection
2162 \begin_layout Standard
2163 Signals that the button event should be vetoed.
2164 Only valid in on_button callback.
2167 \begin_layout Subsubsection
2168 input.geta(number controller)
2171 \begin_layout Standard
2172 Get input state for entiere controller.
2173 Returns 13 return values.
2176 \begin_layout Itemize
2177 1st return value: Bitmask: bit i is set if i:th index is nonzero
2180 \begin_layout Itemize
2181 2nd-13th return value: value of i:th index.
2184 \begin_layout Subsubsection
2185 input.seta(number controller, number bitmask, number args...)
2188 \begin_layout Standard
2189 Set state for entiere controller.
2190 args is up to 12 values for indices (overriding values in bitmask if specified).
2193 \begin_layout Subsubsection
2194 input.controllertype(number controller)
2197 \begin_layout Standard
2198 Get the type of controller as string.
2202 \begin_layout Itemize
2206 \begin_layout Itemize
2210 \begin_layout Itemize
2214 \begin_layout Itemize
2218 \begin_layout Subsubsection
2219 input.reset([number cycles])
2222 \begin_layout Standard
2224 If cycles is greater than zero, do delayed reset.
2225 0 (or no value) causes immediate reset.
2228 \begin_layout Itemize
2229 Only available with subframe flag false.
2232 \begin_layout Subsubsection
2236 \begin_layout Standard
2237 Returns table of tables of all available keys and axes.
2238 The first table is indexed by key name (platform-dependent!), and the inner
2239 table has the following fields:
2242 \begin_layout Itemize
2243 value: Last reported value for control
2247 \begin_layout Itemize
2248 For keys: 1 for pressed, 0 for released.
2251 \begin_layout Itemize
2252 For axes: -32767...32767.
2255 \begin_layout Itemize
2256 For presure-sensitive buttons: 0...32767.
2259 \begin_layout Itemize
2260 For hats: Bitmask: 1=>Up, 2=>Right, 4=>Down, 8=>Left.
2263 \begin_layout Itemize
2264 For mouse: Coordinates relative to game area.
2268 \begin_layout Itemize
2269 ktype: Type of key (disabled, key, mouse, axis, axis-inverse, hat, pressure-m0,
2270 pressure-mp, pressure-0m, pressure-0p, pressure-pm, pressure-p0).
2273 \begin_layout Subsubsection
2274 input.keyhook(string key, boolean state)
2277 \begin_layout Standard
2278 Requests that keyhook events to be sent for key (state=true) or not sent
2282 \begin_layout Subsubsection
2283 input.joyget(number controller)
2286 \begin_layout Standard
2287 Returns table for current controls for specified controller.
2288 The names of fields vary by controller type.
2291 \begin_layout Itemize
2292 The buttons have the same name as those are referred to in other contexts
2296 \begin_layout Itemize
2298 \begin_inset Quotes eld
2302 \begin_inset Quotes erd
2306 \begin_inset Quotes eld
2310 \begin_inset Quotes erd
2316 \begin_layout Subsubsection
2317 input.joyset(number controller, table controls)
2320 \begin_layout Standard
2321 Set the the state of specified controller to values specified in specified
2325 \begin_layout Subsubsection
2326 input.lcid_to_pcid(number controller)
2329 \begin_layout Standard
2330 Return the physical index, physical port and controller number in port for
2331 specified (1-based) logical controller.
2334 \begin_layout Subsection
2338 \begin_layout Standard
2339 Various keybinding-related functions
2342 \begin_layout Subsubsection
2343 keyboard.bind(string mod, string mask, string key, string cmd)
2346 \begin_layout Standard
2347 Bind specified key with specified modifers to specified command.
2350 \begin_layout Subsubsection
2351 keyboard.unbind(string mod, string mask, string key)
2354 \begin_layout Standard
2355 Unbind specified key with specified modifers.
2358 \begin_layout Itemize
2359 nil does not change value
2362 \begin_layout Itemize
2363 true/false (buttons) and integers (axes) force value.
2366 \begin_layout Itemize
2367 string (button) inverts the input.
2370 \begin_layout Subsubsection
2371 keyboard.alias(string alias, string expansion)
2374 \begin_layout Standard
2375 Set expansion of given command.
2378 \begin_layout Subsection
2382 \begin_layout Standard
2386 \begin_layout Subsubsection
2387 subtitle.byindex(number i)
2390 \begin_layout Standard
2391 Read the frame and length of ith subtitle.
2392 Returns nothing if not present.
2395 \begin_layout Subsubsection
2396 subtitle.set(number f, number l, string txt)
2399 \begin_layout Standard
2400 Set the text of subtitle.
2403 \begin_layout Subsubsection
2404 subtitle.get(number f, number l)
2407 \begin_layout Standard
2408 Get the text of subtitle.
2411 \begin_layout Subsubsection
2412 subtitle.delete(number f, number l)
2415 \begin_layout Standard
2416 Delete specified subtitle.
2419 \begin_layout Subsection
2423 \begin_layout Standard
2424 Host memory handling (extra memory saved to savestates).
2425 Host memory starts empty.
2428 \begin_layout Subsubsection
2429 hostmemory.read(number address)
2432 \begin_layout Standard
2433 Reads hostmemory slot address.
2434 Slot numbers out of range return false instead of numeric.
2437 \begin_layout Subsubsection
2438 hostmemory.write(number address, number value)
2441 \begin_layout Standard
2442 Writes hostmemory slot with 0-255.
2443 Slot numbers out of range cause extension of host memory slot space.
2446 \begin_layout Subsubsection
2447 hostmemory.readbyte(number address)
2450 \begin_layout Standard
2451 Read unsigned byte (1 element) from given address.
2452 Slots out of range return false.
2455 \begin_layout Subsubsection
2456 hostmemory.writebyte(number address, number value)
2459 \begin_layout Standard
2460 Write unsigned byte (1 element) to given slot.
2461 Slot numbers out of range cause extension.
2464 \begin_layout Subsubsection
2465 hostmemory.readsbyte(number address)
2468 \begin_layout Standard
2469 Read signed byte (1 element) from given address.
2470 Slots out of range return false.
2473 \begin_layout Subsubsection
2474 hostmemory.writesbyte(number address, number value)
2477 \begin_layout Standard
2478 Write signed byte (1 element) to given slot.
2479 Slot numbers out of range cause extension.
2482 \begin_layout Subsubsection
2483 hostmemory.readword(number address)
2486 \begin_layout Standard
2487 Read unsigned word (2 elements) from given address.
2488 Slots out of range return false.
2491 \begin_layout Subsubsection
2492 hostmemory.writeword(number address, number value)
2495 \begin_layout Standard
2496 Write unsigned word (2 elements) to given slot.
2497 Slot numbers out of range cause extension.
2500 \begin_layout Subsubsection
2501 hostmemory.readsword(number address)
2504 \begin_layout Standard
2505 Read signed word (2 elements) from given address.
2506 Slots out of range return false.
2509 \begin_layout Subsubsection
2510 hostmemory.writesword(number address, number value)
2513 \begin_layout Standard
2514 Write signed word (2 elements) to given slot.
2515 Slot numbers out of range cause extension.
2518 \begin_layout Subsubsection
2519 hostmemory.readdword(number address)
2522 \begin_layout Standard
2523 Read unsigned doubleword (4 elements) from given address.
2524 Slots out of range return false.
2527 \begin_layout Subsubsection
2528 hostmemory.writedword(number address, number value)
2531 \begin_layout Standard
2532 Write unsigned doubleword (4 elements) to given slot.
2533 Slot numbers out of range cause extension.
2536 \begin_layout Subsubsection
2537 hostmemory.readsdword(number address)
2540 \begin_layout Standard
2541 Read signed doubleword (4 elements) from given address.
2542 Slots out of range return false.
2545 \begin_layout Subsubsection
2546 hostmemory.writesdword(number address, number value)
2549 \begin_layout Standard
2550 Write signed doubleword (4 elements) to given slot.
2551 Slot numbers out of range cause extension.
2554 \begin_layout Subsubsection
2555 hostmemory.readqword(number address)
2558 \begin_layout Standard
2559 Read unsigned quadword (8 elements) from given address.
2560 Slots out of range return false.
2563 \begin_layout Subsubsection
2564 hostmemory.writeqword(number address, number value)
2567 \begin_layout Standard
2568 Write unsigned quadword (4 elements) to given slot.
2569 Slot numbers out of range cause extension.
2572 \begin_layout Subsubsection
2573 hostmemory.readsqword(number address)
2576 \begin_layout Standard
2577 Read signed quadword (8 elements) from given address.
2578 Slots out of range return false.
2581 \begin_layout Subsubsection
2582 hostmemory.writesqword(number address, number value)
2585 \begin_layout Standard
2586 Write signed quadword (8 elements) to given slot.
2587 Slot numbers out of range cause extension.
2590 \begin_layout Subsection
2594 \begin_layout Standard
2598 \begin_layout Subsubsection
2599 movie.currentframe()
2602 \begin_layout Standard
2603 Return number of current frame.
2606 \begin_layout Subsubsection
2610 \begin_layout Standard
2611 Return number of frames in movie.
2614 \begin_layout Subsubsection
2618 \begin_layout Standard
2619 Return true if in readonly mode, false if in readwrite.
2622 \begin_layout Subsubsection
2626 \begin_layout Standard
2627 Returns the current value of rerecord count.
2630 \begin_layout Subsubsection
2631 movie.set_readwrite()
2634 \begin_layout Standard
2635 Set readwrite mode (does not cause on_readwrite callback).
2638 \begin_layout Subsubsection
2639 movie.frame_subframes(number frame)
2642 \begin_layout Standard
2643 Count number of subframes in specified frame (frame numbers are 1-based)
2647 \begin_layout Subsubsection
2648 movie.read_subframes(number frame, number subframe)
2651 \begin_layout Standard
2652 Read specifed subframe in specified frame and return data as array (100
2653 elements, numbered 0-99 currently).
2656 \begin_layout Subsubsection
2660 \begin_layout Standard
2661 Returns the current value of the RTC as a pair (second, subsecond).
2664 \begin_layout Subsubsection
2665 movie.unsafe_rewind([UNSAFEREWIND state])
2668 \begin_layout Standard
2669 Start setting point for unsafe rewind or jump to point of unsafe rewind.
2672 \begin_layout Itemize
2673 If called without argument, causes emulator to start process of setting
2674 unsafe rewind point.
2675 When this has finished, callback on_set_rewind occurs, passing the rewind
2676 state to lua script.
2679 \begin_layout Itemize
2680 If called with argument, causes emulator rewind to passed rewind point as
2682 Readwrite mode is implicitly activated.
2685 \begin_layout Standard
2686 The following warnings apply to unsafe rewinding:
2689 \begin_layout Itemize
2690 There are no safety checks against misuse (that's what
2691 \begin_inset Quotes eld
2695 \begin_inset Quotes erd
2701 \begin_layout Itemize
2702 Only call rewind from timeline rewind point was set from.
2705 \begin_layout Itemize
2706 Only call rewind from after the rewind point was set.
2709 \begin_layout Subsection
2713 \begin_layout Standard
2714 Routines for settings manipulation
2717 \begin_layout Subsubsection
2718 settings.get(string name)
2721 \begin_layout Standard
2722 Get value of setting.
2723 If setting is blank, returns false.
2724 If setting value can't be obtained, returns (nil, error message).
2727 \begin_layout Subsubsection
2728 settings.set(string name, string value)
2731 \begin_layout Standard
2732 Set value of setting.
2733 If setting can't be set, returns (nil, error message).
2736 \begin_layout Subsubsection
2737 settings.is_set(string name)
2740 \begin_layout Standard
2741 Returns if setting is set.
2742 If setting does not exist, returns (nil, error message).
2745 \begin_layout Subsubsection
2746 settings.blank(string name)
2749 \begin_layout Standard
2750 Blanks a setting and returns true.
2751 If setting can't be blanked, returns (nil, error message).
2754 \begin_layout Subsection
2758 \begin_layout Standard
2759 Contains various functions for managing memory
2762 \begin_layout Subsubsection
2766 \begin_layout Standard
2767 Returns the number of VMAs
2770 \begin_layout Subsubsection
2771 memory.read_vma(number index)
2774 \begin_layout Standard
2775 Reads the specified VMA (indices start from zero).
2776 Trying to read invalid VMA gives nil.
2777 The read VMA is table with the following fields:
2780 \begin_layout Itemize
2781 region_name (string): The readable name of the VMA
2784 \begin_layout Itemize
2785 baseaddr (number): Base address of the VMA
2788 \begin_layout Itemize
2789 lastaddr (number): Last address in the VMA.
2792 \begin_layout Itemize
2793 size (number): The size of VMA in bytes.
2796 \begin_layout Itemize
2797 readonly (boolean): True of the VMA corresponds to ROM.
2800 \begin_layout Itemize
2801 iospace (boolean): True if the VMA is I/O space.
2804 \begin_layout Itemize
2805 native_endian (boolean): True if the VMA has native endian as opposed to
2809 \begin_layout Subsubsection
2810 memory.find_vma(number address)
2813 \begin_layout Standard
2814 Finds the VMA containing specified address.
2815 Returns table in the same format as read_vma or nil if not found.
2818 \begin_layout Subsubsection
2819 memory.readbyte(number address)
2822 \begin_layout Standard
2823 Reads the specified address as unsigned byte and returns the result.
2826 \begin_layout Subsubsection
2827 memory.readsbyte(number address)
2830 \begin_layout Standard
2831 Reads the specified address as signed byte and returns the result.
2834 \begin_layout Subsubsection
2835 memory.writebyte(number address, number value)
2838 \begin_layout Standard
2839 Writes the specified value (negative values undergo 2's complement) to specified
2840 address (as a byte).
2843 \begin_layout Subsubsection
2844 memory.readword(number address)
2847 \begin_layout Standard
2848 Reads the specified address as unsigned word and returns the result.
2851 \begin_layout Subsubsection
2852 memory.readsword(number address)
2855 \begin_layout Standard
2856 Reads the specified address as signed word and returns the result.
2859 \begin_layout Subsubsection
2860 memory.writeword(number address, number value)
2863 \begin_layout Standard
2864 Writes the specified value (negative values undergo 2's complement) to specified
2865 address (as a word).
2868 \begin_layout Subsubsection
2869 memory.readdword(number address)
2872 \begin_layout Standard
2873 Reads the specified address as unsigned doubleword and returns the result.
2876 \begin_layout Subsubsection
2877 memory.readsdword(number address)
2880 \begin_layout Standard
2881 Reads the specified address as signed doubleword and returns the result.
2884 \begin_layout Subsubsection
2885 memory.writedword(number address, number value)
2888 \begin_layout Standard
2889 Writes the specified value (negative values undergo 2's complement) to specified
2890 address (as a doubleword).
2893 \begin_layout Subsubsection
2894 memory.readqword(number address)
2897 \begin_layout Standard
2898 Reads the specified address as unsigned quadword and returns the result.
2901 \begin_layout Subsubsection
2902 memory.readsqword(number address)
2905 \begin_layout Standard
2906 Reads the specified address as signed quadword and returns the result.
2909 \begin_layout Subsubsection
2910 memory.writeqword(number address, number value)
2913 \begin_layout Standard
2914 Writes the specified value (negative values undergo 2's complement) to specified
2915 address (as a quadword).
2918 \begin_layout Subsubsection
2919 memory.hash_region(number base, number size)
2922 \begin_layout Standard
2923 Hash specified number of bytes starting from specified address and return
2927 \begin_layout Subsubsection
2931 \begin_layout Standard
2932 Hash the current system state.
2933 Mainly useful for debugging savestates.
2936 \begin_layout Subsubsection
2937 memory.readregion(number base, number size)
2940 \begin_layout Standard
2941 Read a region of memory.
2944 \begin_layout Itemize
2945 Warning: If the region crosses VMA boundary, the results are undefined.
2948 \begin_layout Subsubsection
2949 memory.map<type>([number base, number size])
2952 \begin_layout Standard
2953 Returns a table mapping specified memory aperture for read/write.
2954 If parameters are omitted, entiere map space is the aperture.
2957 \begin_layout Itemize
2958 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
2961 \begin_layout Subsubsection
2962 memory.writeregion(number base, number size, table data)
2965 \begin_layout Standard
2966 Write a region of memory.
2969 \begin_layout Itemize
2970 Warning: If the region crosses VMA boundary, the results are undefined.
2973 \begin_layout Subsubsection
2974 memory.map_structure()
2977 \begin_layout Standard
2978 Returns a new mapping structure (MMAP_STRUCT)
2981 \begin_layout Subsubsection
2982 MMAP_STRUCT(string key, number address, string type)
2985 \begin_layout Standard
2986 Bind key in mmap structure to specified address with specified type.
2989 \begin_layout Itemize
2990 Type may be one of: byte, sbyte, word, sword, dword, sdword, qword or sqword.
2993 \begin_layout Subsubsection
2994 memory.read_expr(string expr)
2997 \begin_layout Standard
2998 Evaluate specified watch expression and return result
3001 \begin_layout Subsection
3005 \begin_layout Standard
3006 Contains functions for manipulating subtitles.
3009 \begin_layout Subsubsection
3010 subtitle.byindex(number index)
3013 \begin_layout Standard
3014 Get (basetime, length) pair of specified subtitle index or nothing if index
3018 \begin_layout Subsubsection
3019 subtitle.get(number basetime, number length)
3022 \begin_layout Standard
3023 Read the specified subtitle.
3025 \begin_inset Quotes eld
3029 \begin_inset Quotes erd
3032 if the subtitle does not exist.
3035 \begin_layout Subsubsection
3036 subtitle.set(number basetime, number length, string content)
3039 \begin_layout Standard
3040 Set the specified subtitle.
3043 \begin_layout Subsubsection
3044 subtitle.deltete(number basetime, number length)
3047 \begin_layout Standard
3048 Delete the specified subtitle.
3051 \begin_layout Subsection
3055 \begin_layout Standard
3056 Contains copy of global variables from time of Lua initialization.
3060 \begin_layout Subsection
3064 \begin_layout Standard
3065 Various callbacks to Lua that can occur.
3068 \begin_layout Subsubsection
3069 Callback: on_paint(bool not_synth)
3072 \begin_layout Standard
3073 Called when screen is being painted.
3074 Any gui.* calls requiring graphic context draw on the screen.
3077 \begin_layout Standard
3078 not_synth is true if this hook is being called in response to received frame,
3082 \begin_layout Subsubsection
3083 Callback: on_video()
3086 \begin_layout Standard
3087 Called when video dump frame is being painted.
3088 Any gui.* calls requiring graphic context draw on the video.
3091 \begin_layout Subsubsection
3092 Callback: on_frame_emulated()
3095 \begin_layout Standard
3096 Called when emulating frame has completed and on_paint()/on_video() calls
3097 are about to be issued.
3100 \begin_layout Subsubsection
3101 Callback: on_frame()
3104 \begin_layout Standard
3105 Called on each starting whole frame.
3108 \begin_layout Subsubsection
3109 Callback: on_startup()
3112 \begin_layout Standard
3113 Called when the emulator is starting (lsnes.rc and --run files has been run).
3116 \begin_layout Subsubsection
3117 Callback: on_rewind()
3120 \begin_layout Standard
3121 Called when rewind movie to beginning has completed.
3124 \begin_layout Subsubsection
3125 Callback: on_pre_load(string name)
3128 \begin_layout Standard
3129 Called just before savestate/movie load occurs (note: loads are always delayed,
3130 so this occurs even when load was initiated by lua).
3133 \begin_layout Subsubsection
3134 Callback: on_err_load(string name)
3137 \begin_layout Standard
3138 Called if loadstate goes wrong.
3141 \begin_layout Subsubsection
3142 Callback: on_post_load(string name, boolean was_savestate)
3145 \begin_layout Standard
3146 Called on successful loadstate.
3147 was_savestate gives if this was a savestate or a movie.
3150 \begin_layout Subsubsection
3151 Callback: on_pre_save(string name, boolean is_savestate)
3154 \begin_layout Standard
3155 Called just before savestate save occurs (note: movie saves are synchronous
3156 and won't trigger these callbacks if called from Lua).
3159 \begin_layout Subsubsection
3160 Callback: on_err_save(string name)
3163 \begin_layout Standard
3164 Called if savestate goes wrong.
3167 \begin_layout Subsubsection
3168 Callback: on_post_save(string name, boolean is_savestate)
3171 \begin_layout Standard
3172 Called on successful savaestate.
3173 is_savestate gives if this was a savestate or a movie.
3176 \begin_layout Subsubsection
3180 \begin_layout Standard
3181 Called when emulator is shutting down.
3184 \begin_layout Subsubsection
3185 Callback: on_input(boolean subframe)
3188 \begin_layout Standard
3189 Called when emulator is just sending input to bsnes core.
3190 Warning: This is called even in readonly mode, but the results are ignored.
3193 \begin_layout Subsubsection
3194 Callback: on_reset()
3197 \begin_layout Standard
3198 Called when SNES is reset.
3201 \begin_layout Subsubsection
3202 Callback: on_readwrite()
3205 \begin_layout Standard
3206 Called when moving into readwrite mode as result of
3207 \begin_inset Quotes eld
3211 \begin_inset Quotes erd
3214 command (note: moving to rwmode by Lua won't trigger this, as per recursive
3218 \begin_layout Subsubsection
3219 Callback: on_snoop(number port, number controller, number index, number
3223 \begin_layout Standard
3224 Called each time bsnes asks for input.
3225 The value is the final value to be sent to bsnes core (readonly mode, autohold
3226 and autofire have been taken into account).
3227 Might be useful when translating movies to format suitable for console
3229 Note: There is no way to modify the value to be sent.
3232 \begin_layout Itemize
3233 Not called if callback on_snoop2 is defined.
3236 \begin_layout Subsubsection
3237 Callback: on_snoop2(number port, number controller, number index, number
3241 \begin_layout Standard
3242 Like on_snoop, but reserves port 0 for system, having first user port be
3246 \begin_layout Subsubsection
3247 Callback: on_keyhook(string keyname, table state)
3250 \begin_layout Standard
3251 Sent when key that has keyhook events requested changes state.
3252 Keyname is name of the key (group) and state is the state (same kind as
3253 table values in input.raw).
3256 \begin_layout Subsubsection
3260 \begin_layout Standard
3261 Called when requested by set_idle_timeout(), the timeout has expired and
3262 emulator is waiting.
3265 \begin_layout Subsubsection
3266 Callback: on_timer()
3269 \begin_layout Standard
3270 Called when requested by set_idle_timeout() and the timeout has expired
3271 (regardless if emulator is waiting).
3274 \begin_layout Subsubsection
3275 Callback: on_set_rewind(UNSAFEREWIND r)
3278 \begin_layout Standard
3279 Called when unsafe rewind object has been constructed.
3282 \begin_layout Subsubsection
3283 Callback: on_pre_rewind()
3286 \begin_layout Standard
3287 Called just before unsafe rewind is about to occur.
3290 \begin_layout Subsubsection
3291 Callback: on_post_rewind()
3294 \begin_layout Standard
3295 Called just after unsafe rewind has occured.
3298 \begin_layout Subsubsection
3299 Callback: on_button(number port, number controller, number index, string
3303 \begin_layout Standard
3304 Called on controller button press, with following parameters:
3307 \begin_layout Itemize
3308 port: Port number (0 is system)
3311 \begin_layout Itemize
3312 controller: Controller within port
3315 \begin_layout Itemize
3316 index: Index of button.
3319 \begin_layout Itemize
3320 type: Type of event, one of:
3324 \begin_layout Itemize
3325 \begin_inset Quotes eld
3329 \begin_inset Quotes erd
3332 : Button was pressed.
3335 \begin_layout Itemize
3336 \begin_inset Quotes eld
3340 \begin_inset Quotes erd
3343 : Button was released.
3346 \begin_layout Itemize
3347 \begin_inset Quotes eld
3351 \begin_inset Quotes erd
3357 \begin_layout Itemize
3358 \begin_inset Quotes eld
3362 \begin_inset Quotes erd
3365 : Released from hold.
3368 \begin_layout Itemize
3369 \begin_inset Quotes eld
3373 \begin_inset Quotes erd
3376 : Typing input on button.
3379 \begin_layout Itemize
3380 \begin_inset Quotes eld
3384 \begin_inset Quotes erd
3387 : Typing input undone.
3390 \begin_layout Itemize
3391 \begin_inset Quotes eld
3394 autofire <duty> <cycle>
3395 \begin_inset Quotes erd
3398 : Autofire with specifie duty and cycle.
3401 \begin_layout Itemize
3402 \begin_inset Quotes eld
3406 \begin_inset Quotes erd
3412 \begin_layout Itemize
3413 \begin_inset Quotes eld
3417 \begin_inset Quotes erd
3420 : Analog action on axis.
3424 \begin_layout Section
3428 \begin_layout Itemize
3429 The editor edits in-memory movie.
3432 \begin_layout Itemize
3433 Because past can't be edited and readwrite mode doesn't allow future, editing
3441 \begin_layout Itemize
3442 Keyboard triggers the normal hotkeys and bindings.
3445 \begin_layout Subsection
3449 \begin_layout Itemize
3450 Clicking on cell in future (indicated by lack of redish background) toggles
3451 it (if it is a button) or prompts for a value (if it is an axis)
3454 \begin_layout Itemize
3455 Dragging vertically toggles sequence of buttons or changes a sequence of
3459 \begin_layout Subsection
3460 Right button actions
3463 \begin_layout Standard
3464 The right mouse button pops up a context-sensitive menu:
3467 \begin_layout Itemize
3468 Toggle <something>: Toggle this button
3471 \begin_layout Itemize
3472 Change <something>: Change this axis value
3475 \begin_layout Itemize
3476 Insert frame after: Insert a frame after this frame
3479 \begin_layout Itemize
3480 Append frame: Append a frame to movie
3483 \begin_layout Itemize
3484 Append frames: Append specified number of frames to movie
3487 \begin_layout Itemize
3488 Delete frame: Delete this frame
3491 \begin_layout Itemize
3492 Delete subframe: Delete this subframe
3495 \begin_layout Itemize
3496 Truncate movie: Delete this subframe and everything after it.
3499 \begin_layout Itemize
3500 Scroll to frame: Prompt for a frame and scroll the display to that frame.
3503 \begin_layout Itemize
3504 Scroll to current frame: Scroll the display to current position
3507 \begin_layout Itemize
3508 Run to frame: Prompts for frame and runs the emulation to that frame.
3511 \begin_layout Itemize
3512 Change number of lines visible: Change the height of the movie display (1
3516 \begin_layout Itemize
3517 Lock scroll to playback: While playing back or rewinding movies, the display
3518 will follow if enabled.
3521 \begin_layout Section
3522 Memory watch expression syntax
3525 \begin_layout Standard
3526 Memory watch expressions are in RPN (Reverse Polish Notation).
3527 At the end of expression, the top entry on stack is taken as the final
3531 \begin_layout Standard
3535 \begin_layout Itemize
3536 Evaluation order is strictly left to right.
3539 \begin_layout Itemize
3540 a is the entry on top of stack
3543 \begin_layout Itemize
3544 b is the entry immediately below top of stack
3547 \begin_layout Itemize
3548 ; separates values to be pushed (no intermediate pop).
3551 \begin_layout Itemize
3552 After end of element, all used stack slots are popped and all results are
3556 \begin_layout Itemize
3557 When pushing multiple values, the pushes occur in order shown.
3560 \begin_layout Standard
3561 The following operators are available:
3564 \begin_layout Itemize
3568 \begin_layout Itemize
3572 \begin_layout Itemize
3576 \begin_layout Itemize
3580 \begin_layout Itemize
3584 \begin_layout Itemize
3588 \begin_layout Itemize
3589 b : read_signed_byte(a)
3592 \begin_layout Itemize
3596 \begin_layout Itemize
3597 d : read_signed_dword(a)
3600 \begin_layout Itemize
3604 \begin_layout Itemize
3606 \begin_inset Formula $\pi$
3612 \begin_layout Itemize
3613 q : read_signed_qword(a)
3616 \begin_layout Itemize
3620 \begin_layout Itemize
3624 \begin_layout Itemize
3628 \begin_layout Itemize
3632 \begin_layout Itemize
3633 w : read_signed_word(a)
3636 \begin_layout Itemize
3640 \begin_layout Itemize
3641 B : read_unsigned_byte(a)
3644 \begin_layout Itemize
3645 C<number>z : Push number <number> to stack.
3648 \begin_layout Itemize
3649 D : read_unsigned_dword(a)
3652 \begin_layout Itemize
3653 C0x<number>z : Push number <number> (hexadecimal) to stack.
3656 \begin_layout Itemize
3657 H<digit> : Set hexadecimal mode with specified number of digits (use A-G
3661 \begin_layout Itemize
3662 Q : read_unsigned_qword(a)
3665 \begin_layout Itemize
3666 R<digit> : round a to <digit> digits.
3669 \begin_layout Itemize
3670 W : read_unsigned_word(a)
3673 \begin_layout Subsection
3677 \begin_layout Standard
3678 C0x007e0878zWC0x007e002czW-
3681 \begin_layout Enumerate
3682 Push value 0x7e0878 on top of stack (C0x007e0878z).
3685 \begin_layout Enumerate
3686 Pop the value on top of stack (0x7e0878), read word value at that address
3687 and push the result,call it x1 (W).
3690 \begin_layout Enumerate
3691 Push value 0x7e002c on top of stack (C0x007e002cz).
3694 \begin_layout Enumerate
3695 Pop the value on top of stack (0x7e002c), read word value at that address
3696 and push the result,call it x2 (W).
3699 \begin_layout Enumerate
3700 Pop the two top numbers on stack, x1 and x2, substract x1 from x2 and push
3704 \begin_layout Enumerate
3705 Since the expression ends, the final memory watch result is the top one
3706 on stack, which is x2 - x1.
3709 \begin_layout Section
3710 Modifier and key names:
3713 \begin_layout Subsection
3717 \begin_layout Subsubsection
3721 \begin_layout Standard
3722 Following modifier names are known:
3725 \begin_layout Itemize
3729 \begin_layout Itemize
3733 \begin_layout Itemize
3737 \begin_layout Itemize
3741 \begin_layout Itemize
3745 \begin_layout Subsubsection
3749 \begin_layout Standard
3750 Following key names are known:
3753 \begin_layout Itemize
3754 back, tab, return, escape, space, exclaim, quotedbl, hash, dollar, percent,
3755 ampersand, quote, leftparen, rightparen, asterisk, plus, comma, minus,
3756 period, slash, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, colon, semicolon, less, equals,
3757 greater, question, at, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3758 q, r, s, t, u, v, w, x, y, z, leftbracket, backslash, rightbracket, caret,
3759 underscore, backquote, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,
3760 q, r, s, t, u, v, w, x, y, z, leftcurly, pipe, rightcurly, tilde, delete,
3761 start, lbutton, rbutton, cancel, mbutton, clear, shift, alt, control, menu,
3762 pause, capital, end, home, lefT, up, right, down, select, print, execute,
3763 snapshot, insert, help, numpad0, numpad1, numpad2, numpad3, numpad4, numpad5,
3764 numpad6, numpad7, numpad8, numpad9, multiply, add, separator, subtract,
3765 decimal, divide, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13,
3766 f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, numlock, scroll,
3767 pageup, pagedown, numpad_space, numpad_tab, numpad_enter, numpad_f1, numpad_f2,
3768 numpad_f3, numpad_f4, numpad_home, numpad_left, numpad_up, numpad_right,
3769 numpad_down, numpad_pageup, numpad_pagedown, numpad_end, numpad_begin,
3770 numpad_insert, numpad_delete, numpad_equal, numpad_multiply, numpad_add,
3771 numpad_separator, numpad_subtract, numpad_decimal, numpad_divide, windows_left,
3772 windows_right, windows_menu, command, special1, special2, special3, special4,
3773 special5, special6, special7, special8, special9, special10, special11,
3774 special12, special13, special14, special15, special16, special17, special18,
3775 special19, special20
3778 \begin_layout Section
3782 \begin_layout Standard
3783 Movie file is .zip archive in itself, normal ZIP archive tools work on it
3784 (note: If you recompress it, do not use compression methods other than
3785 store and deflate and especially do not use encryption of any kind).
3788 \begin_layout Subsection
3789 Detecting clean start/SRAM/Savestate
3792 \begin_layout Itemize
3794 \begin_inset Quotes eld
3798 \begin_inset Quotes erd
3801 it is savestate, otherwise:
3804 \begin_layout Itemize
3805 If file has members with names starting
3806 \begin_inset Quotes eld
3810 \begin_inset Quotes erd
3813 it is movie starting from SRAM, otherwise:
3816 \begin_layout Itemize
3817 It is movie starting from clear state.
3820 \begin_layout Subsection
3824 \begin_layout Standard
3825 Type of game ROM and region (as one line).
3829 \begin_layout Standard
3830 \begin_inset Tabular
3831 <lyxtabular version="3" rows="8" columns="3">
3832 <features tabularvalignment="middle">
3833 <column alignment="center" valignment="top" width="0">
3834 <column alignment="center" valignment="top" width="0">
3835 <column alignment="center" valignment="top" width="0">
3837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3840 \begin_layout Plain Layout
3846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3849 \begin_layout Plain Layout
3855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3858 \begin_layout Plain Layout
3866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3869 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3907 \begin_layout Plain Layout
3913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3916 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3927 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3965 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3974 \begin_layout Plain Layout
3982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3985 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3994 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4023 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4043 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4052 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4061 \begin_layout Plain Layout
4075 \begin_layout Standard
4079 \begin_layout Standard
4080 \begin_inset Tabular
4081 <lyxtabular version="3" rows="3" columns="2">
4082 <features tabularvalignment="middle">
4083 <column alignment="center" valignment="top" width="0">
4084 <column alignment="center" valignment="top" width="0">
4086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4089 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4098 \begin_layout Plain Layout
4106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4109 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4129 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4138 \begin_layout Plain Layout
4152 \begin_layout Subsection
4156 \begin_layout Standard
4157 Contains type of port #1 (as one line).
4158 Valid values are 'none', 'gamepad', 'multitap' and 'mouse'.
4159 If not present, defaults to 'gamepad'.
4162 \begin_layout Subsection
4166 \begin_layout Standard
4167 Contains type of port #2 (as one line).
4168 Valid values are 'none', 'gamepad', 'multitap', 'mouse', 'superscope',
4169 'justifier' and 'justifiers'.
4170 If not present, defaults to 'none'.
4173 \begin_layout Subsection
4177 \begin_layout Standard
4178 Contains name of the game (as one line).
4181 \begin_layout Subsection
4185 \begin_layout Standard
4186 Contains authors, one per line.
4187 Part before '|' is the full name, part after is the nickname.
4190 \begin_layout Subsection
4194 \begin_layout Standard
4196 \begin_inset Quotes eld
4200 \begin_inset Quotes erd
4204 Used to reject other saves.
4207 \begin_layout Subsection
4208 Member: controlsversion
4211 \begin_layout Standard
4213 \begin_inset Quotes eld
4217 \begin_inset Quotes erd
4221 Used to identify what controls are there.
4224 \begin_layout Subsection
4226 \begin_inset Quotes eld
4230 \begin_inset Quotes erd
4236 \begin_layout Standard
4237 Contains bsnes core version number (as one line).
4240 \begin_layout Subsection
4244 \begin_layout Standard
4245 Contains project ID (as one line).
4246 Used to identify if two movies are part of the same project.
4249 \begin_layout Subsection
4250 Member: {rom,slota,slotb}{,xml}.sha256
4253 \begin_layout Standard
4254 Contains SHA-256 of said ROM or ROM mapping file (as one line).
4255 Absent if corresponding file is absent.
4258 \begin_layout Subsection
4259 Member: moviesram.<name>
4262 \begin_layout Standard
4263 Raw binary startup SRAM of kind <name>.
4264 Only present in savestates and movies starting from SRAM.
4267 \begin_layout Subsection
4271 \begin_layout Standard
4272 Contains frame number (as one line) of frame movie was saved on.
4273 Only present in savestates.
4276 \begin_layout Subsection
4280 \begin_layout Standard
4281 Current value of lag counter (as one line).
4282 Only present in savestates.
4285 \begin_layout Subsection
4286 Member: pollcounters
4289 \begin_layout Standard
4290 Contains poll counters (currently 100 of them), one per line.
4291 Each line is raw poll count if DRDY is set for it.
4292 Otherwise it is negative poll count minus one.
4293 Only present in savestates.
4296 \begin_layout Subsection
4300 \begin_layout Standard
4301 Raw binary dump of host memory.
4302 Only present in savestates.
4305 \begin_layout Subsection
4309 \begin_layout Standard
4310 The raw binary savestate itself.
4311 Savestate detection uses this file, only present in savestates.
4314 \begin_layout Subsection
4318 \begin_layout Standard
4319 Screenshot of current frame.
4320 Only present in savestates.
4321 First 2 bytes are big-endian width of image, rest are 24-bit RGB image
4323 Height of image is inferred from the width and size of data.
4326 \begin_layout Subsection
4330 \begin_layout Standard
4331 Raw binary SRAM of kind <name> at time of savestate.
4332 Only present in savestates.
4335 \begin_layout Subsection
4339 \begin_layout Standard
4340 The actual input track, one line per subframe (blank lines are skipped).
4343 \begin_layout Itemize
4344 If the first byte of each line is '.', ' ', <tab> or '|', then the line is
4345 part of same frame as previous, otherwise it starts a new frame.
4348 \begin_layout Itemize
4349 First subframe must start a new frame.
4352 \begin_layout Standard
4353 Length of movie in frames is number of lines in input file that start a
4357 \begin_layout Subsection
4361 \begin_layout Standard
4366 \begin_layout Itemize
4367 Each line is in form <firstframe> <numframes> <text>.
4370 \begin_layout Itemize
4371 Linefeed is encoded as
4373 n, backslash is encoded as
4380 \begin_layout Subsection
4384 \begin_layout Standard
4385 Contains textual base-10 rerecord count (as one line; emulator just writes
4386 this, it doesn't read it) + 1.
4389 \begin_layout Subsection
4393 \begin_layout Standard
4394 This member stores set of load IDs.
4395 There is one load ID per rerecord (plus one corresponding to start of project).
4398 \begin_layout Itemize
4399 This member constists of concatenation of records
4402 \begin_layout Itemize
4403 Each record is 2-36 bytes long and can represent 1-16,843,009 consequtive
4407 \begin_layout Itemize
4408 IDs are interpretted as 256-bit big-endian integers with warparound.
4411 \begin_layout Itemize
4412 Initial predicted ID is all zeroes.
4415 \begin_layout Standard
4416 Format of each record is:
4419 \begin_layout Itemize
4420 1 byte: Opcode byte.
4421 Bits 0-4 are prefix length (prefixlen), bits 5-6 are count length (countlen).
4425 \begin_layout Itemize
4426 32-prefixlen bytes of ID.
4429 \begin_layout Itemize
4430 countlen bytes of big-endian count (count).
4433 \begin_layout Standard
4434 Records are processed as follows:
4437 \begin_layout Itemize
4438 To form the first ID encoded by record, take the first prefixlen bytes predicted
4439 ID and append the read ID value to it.
4440 The result is the first ID encoded.
4443 \begin_layout Itemize
4444 If countlen is 0, record encodes 1 ID.
4447 \begin_layout Itemize
4448 If countlen is 1, record encodes 2+count IDs.
4451 \begin_layout Itemize
4452 If countlen is 2, record encodes 258+count IDs.
4455 \begin_layout Itemize
4456 If countlen is 3, record encodes 65794+count IDs.
4459 \begin_layout Itemize
4460 The new predicted ID is the next ID after last one encoded by the record.
4463 \begin_layout Standard
4464 The number of rerecords + 1 is equal to the sum of number of IDs encoded
4468 \begin_layout Subsection
4469 Member: starttime.second
4472 \begin_layout Standard
4473 Movie starting time, second part.
4474 Epoch is Unix epoch.
4475 Default is 1,000,000,000.
4478 \begin_layout Subsection
4479 Member: starttime.subsecond
4482 \begin_layout Standard
4483 Movie starting time, subsecond part.
4488 \begin_layout Subsection
4489 Member: savetime.second
4492 \begin_layout Standard
4493 Movie saving time, second part.
4494 Default is starttime.second.
4495 Only present in savestates.
4498 \begin_layout Subsection
4499 Member: savetime.subsecond
4502 \begin_layout Standard
4503 Movie saving time, subsecond part.
4504 Default is starttime.subsecond.
4505 Only present in savestates.
4508 \begin_layout Section
4509 lsvs file format (commentary tracks)
4512 \begin_layout Subsection
4516 \begin_layout Itemize
4517 Each cluster is 8kB (8192 bytes) in size.
4520 \begin_layout Itemize
4521 Cluster n starts at offset 8192*n in file.
4524 \begin_layout Itemize
4525 The following clusters are system special:
4529 \begin_layout Itemize
4530 Cluster 0 and all clusters with number multiple of 2048 (cluster tables)
4533 \begin_layout Itemize
4534 Cluster 1 (superblock)
4538 \begin_layout Subsection
4542 \begin_layout Itemize
4543 The cluster table describing cluster n is stored in cluster n & ~0x7FF (zero
4547 \begin_layout Itemize
4548 This cluster table consists of 2048 4-byte big-endian integers.
4551 \begin_layout Itemize
4552 Each entry describes a cluster in 16MB supercluster, in order.
4555 \begin_layout Itemize
4556 The valid values for entries are:
4560 \begin_layout Itemize
4561 0x00000000: Free cluster
4564 \begin_layout Itemize
4565 0x00000001: Last cluster in chain.
4568 \begin_layout Itemize
4569 0xFFFFFFFF: System cluster (cluster tables and superblock)
4572 \begin_layout Itemize
4573 (anything else): Number of next cluster in chain.
4574 Must not be multiple of 2048.
4578 \begin_layout Itemize
4579 Due to limitations of the format, there can be at most 2097052 superclusters,
4580 giving maximum file size of 16TB.
4583 \begin_layout Subsection
4587 \begin_layout Itemize
4588 The stream table chain always starts in cluster 2.
4591 \begin_layout Itemize
4592 Otherwise, it follows normal chaining.
4595 \begin_layout Itemize
4596 The stream table consists of 16-byte entries:
4600 \begin_layout Itemize
4601 The first 8 bytes of entry give big-endian beginning position of stream
4602 in units of 1/48000 s.
4605 \begin_layout Itemize
4606 The next 4 bytes of entry give big-endian beginning cluster for control
4608 0 here marks the entry as not present.
4611 \begin_layout Itemize
4612 The last 4 bytes of entry give big-endian beginning cluster for codec data.
4616 \begin_layout Itemize
4617 Stream table clusters are normal clusters, following normal chaining.
4620 \begin_layout Itemize
4621 The stream begnning position is not guarenteed unique.
4622 There can be multiple streams with the same starting position in the file.
4625 \begin_layout Subsection
4629 \begin_layout Itemize
4630 The stream control data consists of entries 4 bytes each:
4634 \begin_layout Itemize
4635 The first 2 bytes of entry gives big-endian length of packet
4638 \begin_layout Itemize
4639 The next byte of entry gives audio length of packet in units of 1/400 s.
4642 \begin_layout Itemize
4643 The last byte is control byte.
4647 \begin_layout Itemize
4648 0 means this entry is not present and the control data ends.
4651 \begin_layout Itemize
4652 1 is valid control entry.
4657 \begin_layout Itemize
4658 The stream control data can also end by running into end of the readable
4663 \begin_layout Itemize
4664 This happens if there happens to be exact multiple of 2048 packets in stream
4665 and number of packets is nonzero.
4669 \begin_layout Itemize
4670 These clusters follow normal chaining.
4673 \begin_layout Subsection
4677 \begin_layout Itemize
4678 Stream codec data consists of raw Opus data packets packed back to back
4679 with nothing in between.
4682 \begin_layout Itemize
4683 Warning: Due to internal limitations, this data must reside in the first
4684 65536 superclusters (that is, the first 1TB of the file).
4687 \begin_layout Subsection
4691 \begin_layout Itemize
4692 The superblock is stored in cluster 1.
4696 \begin_layout Itemize
4697 The first 11 bytes are
4698 \begin_inset Quotes eld
4702 \begin_inset Quotes erd
4708 \begin_layout Itemize
4709 The rest are unused.
4712 \begin_layout Itemize
4713 This cluster 1 is marked as system special.
4716 \begin_layout Section
4717 Known ROM extensions
4720 \begin_layout Itemize
4721 SNES cartridge ROMs: sfc, smc, swc, fig, ufo, sf2, gd3, gd7, dx2, mgd, mgh.
4724 \begin_layout Itemize
4725 DMG cartridge ROMs: dmg, gb.
4728 \begin_layout Itemize
4729 GBC cartridge ROMs: cgb, gbc.
4732 \begin_layout Section
4736 \begin_layout Itemize
4737 The first line must be:
4738 \begin_inset Quotes eld
4742 \begin_inset Quotes erd
4748 \begin_layout Itemize
4749 There is one needed line:
4750 \begin_inset Quotes eld
4754 \begin_inset Quotes erd
4758 This sets system type to <systype>.
4759 The following system types are valid:
4763 \begin_layout Itemize
4767 \begin_layout Itemize
4768 bsx (BS-X non-slotted)
4771 \begin_layout Itemize
4772 bsxslotted (BS-X slotted)
4775 \begin_layout Itemize
4776 sufamiturbo (Sufami Turbo)
4779 \begin_layout Itemize
4780 sgb (Super Game Boy)
4783 \begin_layout Itemize
4787 \begin_layout Itemize
4788 gbc (Game Boy Color)
4791 \begin_layout Itemize
4792 gbc_gba (Game Boy Color with GBA initial register values)
4796 \begin_layout Itemize
4797 Optionally a region can be specified:
4798 \begin_inset Quotes eld
4802 \begin_inset Quotes erd
4806 The following values are valid:
4810 \begin_layout Itemize
4811 autodetect (Autodetect region: snes and sgb only)
4814 \begin_layout Itemize
4815 ntsc (NTSC: snes, bsx, bsxslotted, sufamiturbo, sgb)
4818 \begin_layout Itemize
4819 pal (PAL: snes, sgb)
4822 \begin_layout Itemize
4823 world (World: dmg, gbc, gbc_gba)
4827 \begin_layout Itemize
4828 ROM images are loaded as:
4829 \begin_inset Quotes eld
4833 \begin_inset Quotes erd
4837 The following types are valid:
4841 \begin_layout Itemize
4842 rom (Cartridge ROM in snes, dmg, gbc, gbc_gba.
4843 BIOS in bsx, bsxslotted, sufamiturbo)
4846 \begin_layout Itemize
4847 bsx (Cartridge ROM in bsx, bsxslotted)
4850 \begin_layout Itemize
4851 slot-a (Cartridge ROM in sufamiturbo)
4854 \begin_layout Itemize
4855 slot-b (Cartridge ROM in sufamiturbo)
4859 \begin_layout Itemize
4860 ROM markup can be loaded as:
4861 \begin_inset Quotes eld
4865 \begin_inset Quotes erd
4869 The types valid are the same as for ROMs.
4872 \begin_layout Itemize
4873 Patches can be loaded as
4874 \begin_inset Quotes eld
4877 patch[<offset>] <type> <file>
4878 \begin_inset Quotes erd
4882 The types are the same as for ROMs.
4886 \begin_layout Itemize
4887 Offset is given in form [+-]<number>.
4888 Usually offset is either +0 or -512.
4891 \begin_layout Itemize
4892 Default offset is +0.
4896 \begin_layout Subsection
4900 \begin_layout LyX-Code
4904 \begin_layout LyX-Code
4908 \begin_layout LyX-Code
4909 rom rom speedygonzales.sfc
4912 \begin_layout LyX-Code
4913 patch-512 rom sonicthehedgehog.ips
4916 \begin_layout Subsection
4920 \begin_layout LyX-Code
4924 \begin_layout LyX-Code
4928 \begin_layout LyX-Code
4929 rom rom supergameboy.sfc
4932 \begin_layout LyX-Code
4933 rom dmg megamanV.dmg
4936 \begin_layout Section
4937 Quick'n'dirty encode guide
4940 \begin_layout Enumerate
4941 Start the emulator and load the ROM and movie file.
4944 \begin_layout Enumerate
4945 Set large AVI option 'set-setting avi-large on'
4948 \begin_layout Enumerate
4949 Enable dumping 'dump-avi tmpdump'
4952 \begin_layout Enumerate
4953 Unpause and let it run until you want to end dumping.
4956 \begin_layout Enumerate
4957 Close the emulator (closing the window is the easiest way).
4961 \begin_layout Enumerate
4962 For each tmpdump*.avi file created, on command prompt, do 'x264 --crf 10
4963 -o tmpdump_<numbers>.mkv tmpdump_<numbers>.avi'.
4966 \begin_layout Enumerate
4967 Do 'sox tmpdump.sox tmpdump.ogg rate -v 32000'
4970 \begin_layout Enumerate
4971 Do 'mkvmerge -o tmpdump_video.mkv tmpdump_0000000.mkv + tmpdump_0000001.mkv
4972 + tmpdump_0000002.mkv' (list every tmpdump_<numbers>.mkv, with + in between).
4975 \begin_layout Enumerate
4976 Do 'mkvmerge -o final.mkv tmpdump_video.mkv tmpdump.ogg'.
4977 Now final.mkv contains quick'n'dirty encode.
4980 \begin_layout Section
4981 Axis configurations for some gamepad types:
4984 \begin_layout Subsection
4988 \begin_layout Standard
4989 Axes 2 and 5 (joystick<n>axis2 and joystick<n>axis5) should be set to pressure-+.
4992 \begin_layout LyX-Code
4993 set-axis joystick0axis2 pressure-+
4996 \begin_layout LyX-Code
4997 set-axis joystick0axis5 pressure-+
5000 \begin_layout Itemize
5001 This is needed for SDL only.
5002 EVDEV sets those types correctly.
5005 \begin_layout Subsection
5007 \begin_inset Quotes eld
5011 \begin_inset Quotes erd
5017 \begin_layout Standard
5018 Axes 8-19 should be disabled.
5021 \begin_layout LyX-Code
5022 set-axis joystick0axis8 disabled
5025 \begin_layout LyX-Code
5026 set-axis joystick0axis9 disabled
5029 \begin_layout LyX-Code
5030 set-axis joystick0axis10 disabled
5033 \begin_layout LyX-Code
5034 set-axis joystick0axis11 disabled
5037 \begin_layout LyX-Code
5038 set-axis joystick0axis12 disabled
5041 \begin_layout LyX-Code
5042 set-axis joystick0axis13 disabled
5045 \begin_layout LyX-Code
5046 set-axis joystick0axis14 disabled
5049 \begin_layout LyX-Code
5050 set-axis joystick0axis15 disabled
5053 \begin_layout LyX-Code
5054 set-axis joystick0axis16 disabled
5057 \begin_layout LyX-Code
5058 set-axis joystick0axis17 disabled
5061 \begin_layout LyX-Code
5062 set-axis joystick0axis18 disabled
5065 \begin_layout LyX-Code
5066 set-axis joystick0axis19 disabled
5069 \begin_layout Section
5073 \begin_layout Subsection
5074 Problems from BSNES core:
5077 \begin_layout Itemize
5078 The whole pending save stuff.
5081 \begin_layout Itemize
5082 Lack of layer hiding.
5085 \begin_layout Itemize
5086 It is slow (especially accuracy).
5089 \begin_layout Itemize
5090 Firmwares can't be loaded from ZIP archives.
5093 \begin_layout Subsection
5097 \begin_layout Itemize
5098 Modifiers don't work with pseudo-keys (SDL, EVDEV).
5101 \begin_layout Itemize
5102 Audio for last dumped frame is not itself dumped.
5105 \begin_layout Itemize
5106 Audio in UI is pretty bad in quality if game doesn't run at full speed.
5109 \begin_layout Itemize
5110 No menus, command based interface (SDL).
5113 \begin_layout Itemize
5114 Long commands don't scroll.
5117 \begin_layout Section
5121 \begin_layout Subsection
5125 \begin_layout Itemize
5129 \begin_layout Itemize
5130 Fix dumper video corruption with levels 10-18.
5133 \begin_layout Subsection
5137 \begin_layout Itemize
5141 \begin_layout Itemize
5142 Lots of code cleanups
5145 \begin_layout Itemize
5146 Lua interface to settings
5149 \begin_layout Itemize
5150 Allow specifying AVI borders without Lua
5153 \begin_layout Itemize
5154 Fix scaling if vscale > 1 and originx > 0 (left border exists)
5157 \begin_layout Itemize
5158 on_snoop lua callback
5161 \begin_layout Itemize
5162 Faster movie loading and saving.
5165 \begin_layout Subsection
5169 \begin_layout Itemize
5173 \begin_layout Subsection
5177 \begin_layout Itemize
5181 \begin_layout Itemize
5182 Save jukebox functionality.
5185 \begin_layout Subsection
5189 \begin_layout Itemize
5190 Try to fix some nasty failing movie load edge cases
5193 \begin_layout Itemize
5194 Allow specifying scripts to run on command line.
5197 \begin_layout Subsection
5201 \begin_layout Itemize
5202 Major source code reorganization.
5205 \begin_layout Itemize
5206 Backup savestates before overwriting.
5209 \begin_layout Itemize
5210 Don't crash if loading initial state fails.
5213 \begin_layout Subsection
5217 \begin_layout Itemize
5221 \begin_layout Itemize
5222 Fix author name parsing
5225 \begin_layout Itemize
5226 Fix rerecord counting
5229 \begin_layout Itemize
5230 (SDL) Print messages to console if SDL is uninitialized
5233 \begin_layout Itemize
5234 Add movieinfo program
5237 \begin_layout Itemize
5238 Fix loading movies starting from SRAM.
5241 \begin_layout Subsection
5245 \begin_layout Itemize
5246 Add support for unattended dumping
5249 \begin_layout Itemize
5250 Fix compiling for Win32
5253 \begin_layout Itemize
5254 Don't lock up if sound can't be initialized
5257 \begin_layout Itemize
5258 Strip trailing CR from commands
5261 \begin_layout Itemize
5262 Don't try to do dubious things in global ctors (fix crash on startup)
5265 \begin_layout Subsection
5269 \begin_layout Itemize
5270 Small documentation tweaking
5273 \begin_layout Itemize
5277 \begin_layout Itemize
5278 Fix major bug in modifier matching
5281 \begin_layout Subsection
5285 \begin_layout Itemize
5286 Lots of documentation fixes
5289 \begin_layout Itemize
5290 Use dedicated callbacks for event backcomm., not commands.
5293 \begin_layout Itemize
5294 Ensure that the watchdog is not hit when executing delayed reset.
5297 \begin_layout Itemize
5298 Remove errant tab from joystick message.
5301 \begin_layout Subsection
5305 \begin_layout Itemize
5306 Make autofire operate in absolute time, not linear time
5309 \begin_layout Itemize
5310 Reinitialize controls when resuming from loadstate
5313 \begin_layout Itemize
5314 Some more code cleanups
5317 \begin_layout Itemize
5318 If Lua allocator fails, call OOM_panic()
5321 \begin_layout Itemize
5322 Byte/word/dword/qword sized host memory write/read functions.
5325 \begin_layout Itemize
5326 Dump at correct framerate if dumping interlaced NTSC (height=448).
5329 \begin_layout Subsection
5333 \begin_layout Itemize
5334 Actually include the complete source code
5337 \begin_layout Itemize
5341 \begin_layout Subsection
5345 \begin_layout Itemize
5346 Document {save,start}time.{,sub}second.
5349 \begin_layout Itemize
5350 Intercept time() from bsnes core.
5353 \begin_layout Subsection
5357 \begin_layout Itemize
5358 Allow disabling time() interception (allow build on Mac OS X)
5361 \begin_layout Itemize
5362 Use SDLMain on Mac OS X (make SDL not crash)
5365 \begin_layout Itemize
5366 Disable delayed resets (just plain too buggy for now).
5369 \begin_layout Itemize
5373 \begin_layout Itemize
5374 Use 16-bit for graphics/video instead of 32-bit.
5377 \begin_layout Itemize
5378 gui.rectangle/gui.pixel
5381 \begin_layout Itemize
5385 \begin_layout Itemize
5386 New CSCD writer implementation.
5389 \begin_layout Subsection
5393 \begin_layout Itemize
5394 Fix interaction of * and +.
5397 \begin_layout Itemize
5401 \begin_layout Itemize
5402 Use gettimeofday()/usleep(), these seem portable enough.
5405 \begin_layout Itemize
5406 Move joystick axis manipulation to keymapper code.
5409 \begin_layout Itemize
5410 Changes to how read-only works.
5413 \begin_layout Itemize
5414 Refactor controller input code.
5417 \begin_layout Subsection
5421 \begin_layout Itemize
5422 Fix mouseclick scale compensation.
5425 \begin_layout Itemize
5426 Draw area boundaries correctly in SDL code.
5429 \begin_layout Itemize
5433 \begin_layout Itemize
5434 Fix CSCD output (buffer overrun and race condition).
5437 \begin_layout Subsection
5441 \begin_layout Itemize
5442 JMD dumping support.
5445 \begin_layout Itemize
5446 Allow unattended dumping to JMD.
5449 \begin_layout Itemize
5453 \begin_layout Itemize
5454 Switch back to 32-bit colors.
5457 \begin_layout Itemize
5458 Add Lua function gui.color.
5461 \begin_layout Itemize
5462 Use some new C++11 features in GCC 4.6.
5465 \begin_layout Itemize
5466 Be prepared for core frequency changes.
5469 \begin_layout Itemize
5470 Pass colors in one chunk from Lua.
5473 \begin_layout Subsection
5477 \begin_layout Itemize
5478 New lua functions gui.line(), gui.status() and gui.circle(), memory.vma_count(),
5479 memory.read_vma() and memory.find_vma().
5482 \begin_layout Itemize
5483 Numerious documentation fixups
5486 \begin_layout Itemize
5487 RTC time format changed
5490 \begin_layout Itemize
5491 Reformat flags display
5494 \begin_layout Itemize
5495 Allow lua package name to be overridden
5498 \begin_layout Itemize
5499 SDUMP (high-quality dumping).
5502 \begin_layout Itemize
5503 Split platform support to plugins.
5506 \begin_layout Itemize
5507 Make all sound plugins support basic sound commands
5510 \begin_layout Itemize
5511 Support portaudio for sound.
5514 \begin_layout Itemize
5515 Allow disable Lua/SDL searching.
5518 \begin_layout Itemize
5519 Upconvert colors when copying lcscreen to screen.
5522 \begin_layout Itemize
5523 Reorganize source tree.
5526 \begin_layout Itemize
5527 Evdev joystick support.
5530 \begin_layout Itemize
5531 Refactor more code into generic window code.
5534 \begin_layout Subsection
5538 \begin_layout Itemize
5539 Refactor message handling.
5542 \begin_layout Itemize
5546 \begin_layout Itemize
5550 \begin_layout Itemize
5551 Finish pending saves before load/quit.
5554 \begin_layout Itemize
5555 Wxwidgets graphics plugin.
5558 \begin_layout Subsection
5562 \begin_layout Itemize
5563 Get rid of win32-crap.[ch]pp.
5566 \begin_layout Itemize
5567 Move files around a lot.
5570 \begin_layout Itemize
5571 Get rid of need for host C++ compiler.
5574 \begin_layout Itemize
5578 \begin_layout Itemize
5579 Refactor inter-component communication.
5582 \begin_layout Itemize
5586 \begin_layout Itemize
5587 Fix crash on multiline aliases.
5590 \begin_layout Itemize
5591 Load/Save settings in wxwidgets gui.
5594 \begin_layout Subsection
5598 \begin_layout Itemize
5599 Patch problems in bsnes core
5602 \begin_layout Itemize
5603 SNES is little-endian, not big-endian!
5606 \begin_layout Itemize
5607 Fix memory corruption in lcscreen::load()
5610 \begin_layout Subsection
5614 \begin_layout Itemize
5615 Fix interpretting repeat counts in rrdata loading.
5618 \begin_layout Itemize
5619 New lua callback: on_frame()
5622 \begin_layout Itemize
5623 Remove calls to runtosave() that aren't supposed to be there
5626 \begin_layout Itemize
5627 Lua function: movie.read_rtc()
5630 \begin_layout Itemize
5631 Ignore src/fonts/font.cpp
5634 \begin_layout Itemize
5635 Fix more bsnes core problems
5638 \begin_layout Itemize
5639 Control bsnes random seeding
5642 \begin_layout Itemize
5646 \begin_layout Itemize
5647 Some bsnes core debugging features (state dump and state hash)
5650 \begin_layout Itemize
5651 Fix titlebar version number (no, the last version wasn't 'lsnes-0-beta21',
5652 it was 'lsnes rr0-beta21').
5655 \begin_layout Subsection
5659 \begin_layout Itemize
5660 Fix memory corruption due to macro/field mixup
5663 \begin_layout Itemize
5664 search-memory update
5667 \begin_layout Itemize
5668 Allow direct-mapped framebuffer
5671 \begin_layout Itemize
5672 SDL: Use SDL_ANYFORMAT if possible
5675 \begin_layout Itemize
5676 SDMP2SOX: 2s delay modes.
5679 \begin_layout Itemize
5683 \begin_layout Itemize
5684 Use sed -E, not sed -r.
5685 Fixes building on Mac OS X.
5688 \begin_layout Itemize
5689 Wxwidgets: Save jukebox on exit
5692 \begin_layout Itemize
5693 Fix RTC if using load-movie on savestate.
5696 \begin_layout Itemize
5697 Fix crash related to full console mode.
5700 \begin_layout Subsection
5704 \begin_layout Itemize
5705 Wxwidgets: Allow bringing application to foreground on Mac OS X.
5708 \begin_layout Itemize
5709 Wxwidgets: Allow compiling on Mac OS X.
5712 \begin_layout Itemize
5713 Use movie compare instead of movie hashing (faster save/load).
5716 \begin_layout Itemize
5720 \begin_layout Subsection
5724 \begin_layout Itemize
5725 sdmp2sox: Pad soundtrack if using -l or -L.
5728 \begin_layout Itemize
5729 sdmp2sox: Fix NTSC overscan.
5732 \begin_layout Itemize
5733 sdmp2sox: Add AR correction mode.
5736 \begin_layout Itemize
5737 call lua_close() when exiting.
5740 \begin_layout Itemize
5741 Fix zip_writer bug causing warnings from info-zip and error from advzip.
5744 \begin_layout Subsection
5748 \begin_layout Itemize
5749 Fix IPS patching code (use bsnes core IPS patcher).
5752 \begin_layout Itemize
5753 Implement BPS patching (using bsnes core IPS patcher).
5756 \begin_layout Itemize
5757 Add feature to load headered ROMs.
5760 \begin_layout Subsection
5764 \begin_layout Itemize
5765 Show command names when showing keybindings
5768 \begin_layout Subsection
5772 \begin_layout Itemize
5773 Fix pause-on-end to be actually controllable
5776 \begin_layout Itemize
5777 SDL: Poll all events in queue, not just first one (fixes slowness in command
5781 \begin_layout Itemize
5782 Wxwidgets: Fix ROM loading.
5785 \begin_layout Subsection
5789 \begin_layout Itemize
5790 Lua: Add gui.textH, gui.textV, gui.textHV
5793 \begin_layout Itemize
5794 Fix text colors on SDL on Mac OS X
5797 \begin_layout Itemize
5798 Mode 'F' for finished in readonly mode.
5801 \begin_layout Itemize
5805 \begin_layout Itemize
5806 Reliably pause after skip poll
5809 \begin_layout Itemize
5810 Split UI and core into their own threads
5813 \begin_layout Subsection
5817 \begin_layout Itemize
5818 Remove leftover dummy SRAM slot
5821 \begin_layout Itemize
5822 Fix controller numbers.
5825 \begin_layout Subsection
5829 \begin_layout Itemize
5830 Fix lsnes-dumpavi after interface change.
5833 \begin_layout Itemize
5834 Also give BSNES patches for v085.
5837 \begin_layout Itemize
5838 Pack movie data in memory.
5841 \begin_layout Subsection
5845 \begin_layout Itemize
5846 Fix framecount/length given when loading movies.
5849 \begin_layout Itemize
5850 Controller command memory leak fixes.
5853 \begin_layout Itemize
5854 Don't leak palette if freeing screen object.
5857 \begin_layout Subsection
5861 \begin_layout Itemize
5865 \begin_layout Itemize
5866 Wxwidgets: Allow controlling dumper from the menu.
5869 \begin_layout Subsection
5873 \begin_layout Itemize
5874 Rewrite parts of manual
5877 \begin_layout Itemize
5878 Lua: Make it work with Lua 5.2.
5881 \begin_layout Subsection
5885 \begin_layout Itemize
5886 Win32: Fix compile errors.
5889 \begin_layout Subsection
5893 \begin_layout Itemize
5894 Refactor controller input code.
5897 \begin_layout Itemize
5898 Fix crash when using command line on SDL / Mac OS X.
5901 \begin_layout Subsection
5905 \begin_layout Itemize
5906 Delete core/coroutine (obsolete)
5909 \begin_layout Itemize
5910 Lag input display by one frame.
5913 \begin_layout Itemize
5914 Rewind movie to beginning function.
5917 \begin_layout Itemize
5918 Fix wrong frame number reported to Lua when repainting after loadstate
5921 \begin_layout Itemize
5922 Support UI editing of jukebox
5925 \begin_layout Itemize
5926 Wxwidgets: Save settings on exit.
5929 \begin_layout Itemize
5930 Support ${project} for filenames
5933 \begin_layout Itemize
5934 SDL: Fix command history
5937 \begin_layout Subsection
5941 \begin_layout Itemize
5942 Fix some order-of-global-ctor bugs.
5945 \begin_layout Subsection
5949 \begin_layout Itemize
5950 Fix crashes when quitting on Win32.
5953 \begin_layout Subsection
5957 \begin_layout Itemize
5958 EVDEV: Queue keypresses from joystick, don't send directly
5961 \begin_layout Itemize
5962 Wxwidgets: Load-Preserve that actually works.
5965 \begin_layout Subsection
5969 \begin_layout Itemize
5970 Wxwidgets: GUI for memory search.
5973 \begin_layout Itemize
5974 Warn about using synchronous queue in UI callback.
5977 \begin_layout Subsection
5981 \begin_layout Itemize
5982 Remember last saved file for each ROM
5985 \begin_layout Itemize
5986 Support MT dumping via boost.
5989 \begin_layout Itemize
5993 \begin_layout Itemize
5997 \begin_layout Itemize
5998 Make mouse be ordinary input instead of special-casing
6001 \begin_layout Itemize
6002 SDL: Don't screw up commands with NUL codepoints.
6005 \begin_layout Subsection
6009 \begin_layout Itemize
6010 Merge status panel and main window
6013 \begin_layout Itemize
6014 True movie slot support (the rest of it)
6017 \begin_layout Itemize
6018 SDL: Fix compilation error
6021 \begin_layout Itemize
6022 Elminate cross calls in dump menu code.
6025 \begin_layout Subsection
6029 \begin_layout Itemize
6030 Cancel pending saves command
6033 \begin_layout Itemize
6034 Wxwidgets: Code refactoring
6037 \begin_layout Itemize
6038 Wxwidgets: Fix system -> reset
6041 \begin_layout Itemize
6042 Wxwidgets: Read watch expressions in the right thread
6045 \begin_layout Subsection
6049 \begin_layout Itemize
6050 Wxwidgets: Don't prompt for member when running Lua script (Lua doesn't
6054 \begin_layout Itemize
6055 Wxwidgets: 128 -> 1024 Autohold slots (in case more are needed).
6058 \begin_layout Itemize
6059 Don't append trailing '-' to prefix when saving movie.
6062 \begin_layout Itemize
6063 Fix ROM/savestate handling (don't let user mismatch ROM and savestates).
6066 \begin_layout Subsection
6070 \begin_layout Itemize
6071 Document memory watch syntax.
6074 \begin_layout Subsection
6078 \begin_layout Itemize
6079 Fix unattended dumping (lsnes-dumpavi)
6082 \begin_layout Itemize
6086 \begin_layout Itemize
6087 Use adv_dumper instead of the old interface in lsnes-dumpavi (changes syntax)
6090 \begin_layout Itemize
6091 Add option to control sample rate preturbation in AVI dumper
6094 \begin_layout Subsection
6098 \begin_layout Itemize
6099 Wxwidgets: Fix dumper submodes
6102 \begin_layout Itemize
6103 Set core controller types before loadstate
6106 \begin_layout Subsection
6110 \begin_layout Itemize
6111 Fix compiling with bsnes v086.
6114 \begin_layout Subsection
6118 \begin_layout Itemize
6119 Don't prompt before quitting
6122 \begin_layout Itemize
6123 Start unpaused, preserve pause/unpause over load.
6126 \begin_layout Itemize
6127 Try to autodetect if ROM is headered.
6130 \begin_layout Itemize
6131 Wxwidgets: Only bring up ROM patching screen if specifically requested.
6134 \begin_layout Itemize
6135 Allow configuring some hotkeys.
6138 \begin_layout Subsection
6142 \begin_layout Itemize
6143 Lots of code cleanups
6146 \begin_layout Itemize
6147 Fix JMD compression (JMD dumping was broken)
6150 \begin_layout Itemize
6151 Don't crash if Lua C function throws an exception.
6154 \begin_layout Itemize
6155 Support bitmap drawing in Lua.
6158 \begin_layout Itemize
6159 Fix bsnes v085/v086 patches.
6162 \begin_layout Itemize
6163 Improve stability on win32.
6166 \begin_layout Subsection
6170 \begin_layout Itemize
6171 Don't corrupt movie if movie length is integer multiple of frames per page.
6174 \begin_layout Subsection
6178 \begin_layout Itemize
6179 New Lua hooks: on_rewind, on_frame_emulated, on_idle, on_timer
6182 \begin_layout Itemize
6183 New Lua functions: emulator_ready(), utime(), set_idle_timeout(), set_timer_time
6184 out(), bit.extract(), bit.value(), input.geta(), input.seta() and input.controllertyp
6188 \begin_layout Itemize
6189 Wxwidgets: Fix internal focus lost (hotkeys stop working)
6192 \begin_layout Itemize
6193 Wxwidgets: Fix broken modifiers
6196 \begin_layout Itemize
6197 on_paint has parameter now.
6200 \begin_layout Itemize
6201 Optional initital fill for bitmaps
6204 \begin_layout Itemize
6205 Fix palette changing.
6208 \begin_layout Itemize
6209 Optimize rendering a bit.
6212 \begin_layout Itemize
6216 \begin_layout Subsection
6220 \begin_layout Itemize
6221 Movieinfo: Fix display of port #2 type.
6224 \begin_layout Itemize
6225 Call on_input() after loadstate.
6228 \begin_layout Subsection
6232 \begin_layout Itemize
6233 Fix writing port2 data to movie.
6236 \begin_layout Itemize
6237 Fix SRAM handling with Bsnes v087.
6240 \begin_layout Subsection
6244 \begin_layout Itemize
6245 Library loading support
6248 \begin_layout Itemize
6249 Built-in TSCC encoder
6252 \begin_layout Itemize
6253 Hi-color (256T colors) dumping.
6256 \begin_layout Itemize
6257 Dump over TCP/IP(v6)
6260 \begin_layout Itemize
6261 Hidable status panel
6264 \begin_layout Itemize
6268 \begin_layout Itemize
6269 Adjustable sound volume
6272 \begin_layout Itemize
6276 \begin_layout Itemize
6277 Allow DnD into filename boxes
6280 \begin_layout Itemize
6284 \begin_layout Itemize
6285 Portaudio: Fix speaker popping at start
6288 \begin_layout Itemize
6292 \begin_layout Itemize
6293 Speed adjustment menu
6296 \begin_layout Itemize
6297 Win32 joystick support
6300 \begin_layout Itemize
6301 Lua: gui.rainbow and gui.box
6304 \begin_layout Itemize
6305 Split key lists into classes (the key list was large!)
6308 \begin_layout Itemize
6309 More save slots support
6312 \begin_layout Itemize
6313 Wxwidgets (wxJoystick) joystick support
6316 \begin_layout Subsection
6320 \begin_layout Itemize
6321 Lots of internal joystick refactoring
6324 \begin_layout Itemize
6325 Evdev: Add mapping for BTN_TOOL_QUINTTAP
6328 \begin_layout Itemize
6329 Wxwidgets: Settings mode (open settings without ROM)
6332 \begin_layout Itemize
6333 Wxwidgets: Prompt key to use option
6336 \begin_layout Itemize
6337 Wxwidgets: Fix crash if key goes away underneath
6340 \begin_layout Itemize
6341 Wxwidgets: Fix mouse position in presence of scaling
6344 \begin_layout Itemize
6345 AVI dumper: Mode 4 (high-quality resampling to common rate using SRC)
6348 \begin_layout Itemize
6349 Wxwidgets: Redesign hotkeys dialog to avoid tree control (tree control doesn't
6350 seem to work well on WinXP)
6353 \begin_layout Itemize
6354 Start paused option.
6357 \begin_layout Subsection
6361 \begin_layout Itemize
6365 \begin_layout Itemize
6366 lsnes-dumpavi: Start Lua before starting dumper
6369 \begin_layout Itemize
6370 AVI: Fix secondary audio in mode 4.
6373 \begin_layout Subsection
6377 \begin_layout Itemize
6378 AVI: Refactor ZMBV a bit.
6381 \begin_layout Itemize
6382 Fix error reading analog values from movie file
6385 \begin_layout Subsection
6389 \begin_layout Itemize
6390 Delayed reset support
6393 \begin_layout Itemize
6394 Lua: memory.hash_region
6397 \begin_layout Subsection
6401 \begin_layout Itemize
6402 Rework the build system
6405 \begin_layout Itemize
6406 Typing input support
6409 \begin_layout Itemize
6410 Fix building with bsnes v086 and v087.
6413 \begin_layout Itemize
6414 SDL: Save settings on exit
6417 \begin_layout Itemize
6418 SDL: Command to enter command line mode with given command.
6421 \begin_layout Itemize
6422 SDL: More advanced command editing.
6425 \begin_layout Subsection
6429 \begin_layout Itemize
6431 \begin_inset Quotes eld
6434 arrow keys and enter don't work
6435 \begin_inset Quotes erd
6441 \begin_layout Itemize
6445 \begin_layout Itemize
6446 Show mode changes due to rewinding.
6449 \begin_layout Itemize
6450 Unsafe rewind support
6453 \begin_layout Itemize
6454 Fix directory transversal.
6457 \begin_layout Subsection
6461 \begin_layout Itemize
6462 AVI: Sound mode 5 (48kHz high-quality)
6465 \begin_layout Itemize
6469 \begin_layout Itemize
6470 Map the SNES bus into address space
6473 \begin_layout Itemize
6474 Fix loading memory watch files with CRLF line endings
6477 \begin_layout Subsection
6481 \begin_layout Itemize
6482 Map bsnes internal state into memory space
6485 \begin_layout Itemize
6487 \begin_inset Quotes eld
6490 click on panel wedges the emulator
6491 \begin_inset Quotes erd
6497 \begin_layout Itemize
6498 DnD movies/saves on the main window.
6501 \begin_layout Subsection
6505 \begin_layout Itemize
6506 Split core bindings into own module.
6509 \begin_layout Itemize
6510 Remember invalid settings
6513 \begin_layout Itemize
6514 Support for modified Gambatte core for GB/GBC emulation.
6517 \begin_layout Itemize
6518 Reload/swap ROM function
6521 \begin_layout Subsection
6525 \begin_layout Itemize
6526 Fix step poll function
6529 \begin_layout Subsection
6533 \begin_layout Itemize
6534 Non-insane savestate anchoring
6537 \begin_layout Subsection
6541 \begin_layout Itemize
6542 More Memory search methods
6545 \begin_layout Itemize
6546 Preserve movie if loading in RO mode.
6549 \begin_layout Itemize
6550 Fix a obscure case in timeline check
6553 \begin_layout Itemize
6554 Revamp the entiere ROM loading code
6557 \begin_layout Itemize
6561 \begin_layout Itemize
6565 \begin_layout Itemize
6566 Standalone hotkey config dialog
6569 \begin_layout Itemize
6570 Show bindings in more user-friendly format
6573 \begin_layout Subsection
6577 \begin_layout Itemize
6581 \begin_layout Itemize
6582 Fix uninitialized variables in bsnes v085
6585 \begin_layout Subsection
6589 \begin_layout Itemize
6590 Merge gambatte core into mainline (from its own branch)
6593 \begin_layout Itemize
6594 Wxwidgets: Show expected dump file formats
6597 \begin_layout Itemize
6598 Memory watch: Data typing
6601 \begin_layout Itemize
6602 lsnes internal MMIO area.
6605 \begin_layout Itemize
6606 Wxwidgets: New memory watch editor
6609 \begin_layout Itemize
6610 Hexadecimal memory watches
6613 \begin_layout Itemize
6614 Wxwidgets: Monospaced panel
6617 \begin_layout Itemize
6618 Wxwidgets: Split memory watches in panel
6621 \begin_layout Itemize
6622 Wxwidgets: Disable VMAs in memory search
6625 \begin_layout Itemize
6626 lsnes-dumpavi: Fix speed bug
6629 \begin_layout Itemize
6630 Movie subtitle support
6633 \begin_layout Itemize
6634 Fix rerecord count reporting
6637 \begin_layout Itemize
6638 Don't trash movie when loading in readonly mode.
6641 \begin_layout Subsection
6645 \begin_layout Itemize
6646 Wxwidgets: Fix crashes on closing settings dialogs on Mac OS X.
6649 \begin_layout Itemize
6650 Fix build on Mac OS X.
6653 \begin_layout Itemize
6657 \begin_layout Itemize
6658 Wxwidgets: Hidable messages window
6661 \begin_layout Itemize
6665 \begin_layout Itemize
6666 Bsnes: Support inconsistent saves
6669 \begin_layout Itemize
6670 Bsnes: Allow simulating saving every frame
6673 \begin_layout Itemize
6674 Fix desync if savestate is loaded in readonly mode in certain conditions.
6677 \begin_layout Itemize
6678 Wxwidgets: Fix save dialogs on Mac OS X.
6681 \begin_layout Itemize
6682 Wxwidgets: Fix insane status width on Win32.
6685 \begin_layout Itemize
6686 Wxwidgets: Fix autohold processing to be faster.
6689 \begin_layout Itemize
6690 Wxwidgets: Allow loading ROMs and movies from commandline.
6693 \begin_layout Subsection
6697 \begin_layout Itemize
6698 Be a bit smarter with --load
6701 \begin_layout Itemize
6702 Rewrote higher-level parts of audio system
6705 \begin_layout Itemize
6706 Tool to build commentary tracks
6709 \begin_layout Itemize
6713 \begin_layout Itemize
6714 Gambatte: Add support for SVN358
6717 \begin_layout Itemize
6718 Use builtin font when rendering status panel.
6721 \begin_layout Itemize
6722 Option to detach memory watch to its own window.
6725 \begin_layout Itemize
6726 Recent ROMs/Movies menu
6729 \begin_layout Itemize
6733 \begin_layout Itemize
6734 Useful lag counter for SNES games that autopoll
6737 \begin_layout Itemize
6738 Fix buffer overflow in gambatte sound output
6741 \begin_layout Subsection
6745 \begin_layout Itemize
6746 Don't blow up on wxGTK if the window is hidden somehow
6749 \begin_layout Itemize
6750 Support simultaneous drop of ROM and movie.
6753 \begin_layout Itemize
6754 Gambatte: Don't save spurious SRAMs.
6757 \begin_layout Itemize
6758 Make SGB ROMs actually usable.
6761 \begin_layout Itemize
6762 Fix so that saved movies appear in recent movies.
6765 \begin_layout Itemize
6766 Don't open multiple commentary editors at once.
6769 \begin_layout Subsection
6773 \begin_layout Itemize
6774 Lua: memory.readregion/memory.writeregion
6777 \begin_layout Itemize
6778 Lua: memory.map{,s}{byte,word,dword,qword}
6781 \begin_layout Itemize
6782 Lua: memory.map_structure
6785 \begin_layout Itemize
6786 Lua: Fix bus_address for gambatte
6789 \begin_layout Itemize
6790 Fix features dependent of bsnes debugger
6793 \begin_layout Itemize
6794 Cleanup bsnes debugger logic
6797 \begin_layout Itemize
6798 Fix resets in presence of save every frame
6801 \begin_layout Subsection
6805 \begin_layout Itemize
6806 Lua: input.lcid_to_pcid
6809 \begin_layout Itemize
6810 Fix off-by-one bug with slot hashes
6813 \begin_layout Itemize
6814 Fix crashes on certain memory watch expressions
6817 \begin_layout Itemize
6818 Lua: memory.read_expr
6821 \begin_layout Itemize
6822 Lua: Fix memory.read_expr on nil argument
6825 \begin_layout Itemize
6826 Fix the code to compile on G++ 4.7
6829 \begin_layout Itemize
6830 Change button_id to be a function pointer field, not a virtual method
6833 \begin_layout Itemize
6834 Add bsnes patches to fix libsnes to compile on GCC 4.7
6837 \begin_layout Itemize
6838 Gambatte: Always use legacy lag counting
6841 \begin_layout Itemize
6842 Memory commands: Memory addresses are up to 16 hex digits, not up to 8
6845 \begin_layout Itemize
6846 Fix analog controllers
6849 \begin_layout Itemize
6853 \begin_layout Itemize
6854 Fix button symbols in input display
6857 \begin_layout Itemize
6858 Compensate for nuts bsnes superscope/justifier handling
6861 \begin_layout Itemize
6862 Lua: Fix bit.extract boolean handling
6865 \begin_layout Subsection
6869 \begin_layout Itemize
6870 Split emulation cores more from the rest
6873 \begin_layout Itemize
6874 Support having multiple emulation cores compiled at once
6877 \begin_layout Itemize
6878 Support arbitrary number of ports (well, up to 31 anyway).
6881 \begin_layout Itemize
6882 SNES debugger support
6885 \begin_layout Itemize
6886 Support 16-button controllers
6889 \begin_layout Itemize
6890 Remove old SDL front end
6893 \begin_layout Itemize
6894 Data-driven controller buttons
6897 \begin_layout Itemize
6898 Generate the port code from defines
6901 \begin_layout Subsection
6905 \begin_layout Itemize
6906 Update libgambatte to SVN364
6909 \begin_layout Itemize
6910 Get rid of partial linking (building with MXE works)
6913 \begin_layout Itemize
6914 Load XML even without gamepack files
6917 \begin_layout Itemize
6918 Support screen rotate & flip
6921 \begin_layout Itemize
6922 Fix bug when changing controller key to another subkey of the same key
6925 \begin_layout Subsection
6929 \begin_layout Itemize
6930 Stop at movie end: Don't off-by-one
6933 \begin_layout Itemize
6934 Fix crash closing lsnes with voice playback active.
6937 \begin_layout Itemize
6938 Import/Export OggOpus for commentary tracks
6941 \begin_layout Itemize
6942 16-button controllers.
6945 \begin_layout Itemize
6946 Don't show nonexistent controllers in input display
6949 \begin_layout Itemize
6950 Set voice record/playback volume from UI
6953 \begin_layout Itemize
6954 Patches for gambatte SVN364.
6957 \begin_layout Itemize
6958 Load markup (if exists) even without gamepack file.
6961 \begin_layout Itemize
6962 Screen rotation & flipping
6965 \begin_layout Itemize
6966 Lua: Some new bit functions
6969 \begin_layout Itemize
6970 Auto-refresh voice streams on change.
6973 \begin_layout Itemize
6974 Auto-refresh subtitles on change & new subtitle editor.
6977 \begin_layout Itemize
6978 Fix music volume adjustment.
6981 \begin_layout Subsection
6985 \begin_layout Itemize
6986 Use system threads instead of platform threads
6989 \begin_layout Itemize
6990 Cleanup build by allowing dummy and real drivers to link together.
6993 \begin_layout Itemize
6994 Split duplex support
6997 \begin_layout Subsection
7001 \begin_layout Itemize
7002 Wxwidgets: Fix memory watch rendering.
7005 \begin_layout Itemize
7006 Wxwidgets: Allow setting voice stream gain.
7009 \begin_layout Itemize
7010 Wxwidgets: VU meters and volume adjustment.
7013 \begin_layout Itemize
7014 Lua: Custom fonts support.
7017 \begin_layout Itemize
7018 Lua: Fix methods stopping working when resetting Lua.
7021 \begin_layout Itemize
7022 Fix loading standard-format movies in preserve (readonly) mode.
7025 \begin_layout Subsection
7029 \begin_layout Itemize
7030 Primitive movie editor
7033 \begin_layout Itemize
7034 Fix VU meter with no sound device.
7037 \begin_layout Itemize
7038 Fix various undefined return values.
7041 \begin_layout Itemize
7042 Show rates in VU meter window.
7045 \begin_layout Subsection
7049 \begin_layout Itemize
7050 Lua: Render queues as objects
7053 \begin_layout Itemize
7054 Bsnes: support hard resets
7057 \begin_layout Itemize
7058 Dedicated sound devices dialog
7061 \begin_layout Itemize
7062 Change the default AVI sound mode to 2 or 5.
7065 \begin_layout Itemize
7066 Fix totally borked movie saving.
7069 \begin_layout Itemize
7070 Portaudio: Use split duplex with different devices.
7073 \begin_layout Itemize
7074 Fix controls with gambatte core.
7077 \begin_layout Itemize
7078 Modify save slot set handling.
7081 \begin_layout Itemize
7082 lsnes-dumpavi: --firmware-path.
7085 \begin_layout Itemize
7086 Fix lots of compiler warnings.
7089 \begin_layout Subsection
7093 \begin_layout Itemize
7094 Commentary tool: Set nominal bit rate and limit max bit rate.
7097 \begin_layout Itemize
7098 Lua: Unconditionally reload host memory on loadstate
7101 \begin_layout Itemize
7102 Lua: Query bindings, manipulate aliases, create inverse bindings
7105 \begin_layout Itemize
7106 Lua: Fix crashes with resetting VM while some types of paint requests are
7110 \begin_layout Itemize
7111 Lua: gui.text: Clip the text properly instead of corrupting memory in some
7115 \begin_layout Itemize
7116 Save screenshot header reliably
7119 \begin_layout Itemize
7120 Lua: Backport input.get2 and input.set2
7123 \begin_layout Itemize
7124 Lua: New controller info functions.
7127 \begin_layout Itemize
7128 Movie editor: Fix reset delay counters to be the right way around.
7131 \begin_layout Itemize
7135 \begin_layout Itemize
7136 Lua: on_button and input.veto_button.
7139 \begin_layout Subsection
7143 \begin_layout Itemize
7144 Revert memory leak fix breaking input
7147 \begin_layout Itemize
7148 Refactor Opus handling
7151 \begin_layout Itemize
7152 Restrict member picking only to .zip files
7155 \begin_layout Itemize
7156 Fix reading of host-endian VMAs.
7159 \begin_layout Itemize
7160 Fix rlow and rhigh to be the right way around.
7163 \begin_layout Itemize
7164 Lua: Don't wedge VM if callback fails with an exception
7167 \begin_layout Itemize
7168 Refactor Ogg handling.
7171 \begin_layout Subsection
7175 \begin_layout Itemize
7176 Fix saving PNG screenshots on Win32.
7179 \begin_layout Itemize
7180 Movie editor: Sweep axis.
7183 \begin_layout Itemize
7184 Load selected slot in ro/rw/preserve/movie mode.
7187 \begin_layout Itemize
7188 input.joyset: Preserve and invert user input.
7191 \begin_layout Itemize
7192 Allow immediate saving at point of save (transfer saves).
7195 \begin_layout Itemize
7196 Wxwidgets: Filter filenames in dialogs, autoappend extensions.
7199 \begin_layout Itemize
7200 data/verysmall.font: Add missing glyph 70 (
7201 \begin_inset Quotes eld
7205 \begin_inset Quotes erd
7211 \begin_layout Itemize
7212 Lua: Allow painting custom fonts with halo.
7215 \begin_layout Itemize
7216 Fix memory value search to work on byte types.
7219 \begin_layout Subsection
7223 \begin_layout Itemize
7224 Reject oggopus files with incomplete pregap
7227 \begin_layout Itemize
7228 Fix multistream and ogg demuxing
7231 \begin_layout Itemize
7232 Workaround bug with screen >1024 pixels wide.
7235 \begin_layout Itemize
7236 Allow on_input to force/veto system controls.
7239 \begin_layout Itemize
7240 Dedicated autohold/autofire window.
7243 \begin_layout Itemize
7244 Support per-button autofire.
7247 \begin_layout Itemize
7248 Fix crash on trying to frameadvance/exit with no ROM loaded.
7251 \begin_layout Itemize
7252 Fix nonexistent controller key warnings.
7255 \begin_layout Itemize
7256 Movie editor: Fix mouse editing (TYPE_RAXIS)
7259 \begin_layout Itemize
7263 \begin_layout Itemize
7267 \begin_layout Itemize
7268 Add throttle axes (TYPE_TAXIS).
7271 \begin_layout Itemize
7272 Fix movie reading with first port having multiple controllers.
7275 \begin_layout Itemize
7276 Move some info from status panel to statusbar.