Ilari Liusvaara
c5d441c6b0
Fix crash if text containing \n is printed at nonzero x
2016-09-18 23:00:13 +03:00
Ilari Liusvaara
5544b9ba12
Don't try to enter loadstate with loadstate already in progress
2016-08-09 18:59:25 +03:00
Ilari Liusvaara
4c9bb20270
Fix crash if mouse_x or mouse_y are hooked
...
Turns out framebuffer draw recalibrates mouse_x and mouse_y, which then
calls into hook. Which is no-no, because framebuffer draw runs in GUI
thread, and hooks must run in game thread.
2016-07-23 11:16:34 +03:00
Ilari Liusvaara
eb6ff6c38b
Virtualize audio system for instances
2016-04-17 10:14:05 +03:00
Ilari Liusvaara
7903ba1fda
Small cleanup: move up some lsnes_instance stuff
2016-04-16 10:51:02 +03:00
Ilari Liusvaara
40ac5d56e3
Some new hotkeys
...
- Flush slotinfo cache
- Reload current ROM
- Close current ROM
- Increase speed
- Decrease speed
2016-04-15 12:50:15 +03:00
Ilari Liusvaara
a3f1d7c8a4
Lua Add getters for various paths
2016-04-15 09:18:48 +03:00
Ilari Liusvaara
d287f64c14
Allow modifying button to be autofire/autohold/typed
2016-04-14 20:22:13 +03:00
Ilari Liusvaara
62ee8b0039
Don't try to uninstall handlers for active core
...
Should stop the Gambatte/Bsnes SGB core from crashing on exit.
2016-01-01 08:01:16 +02:00
Ilari Liusvaara
05ad5b9da1
Fix "empty path points to root" bug
...
Unset paths are supposed to point to the current directory, not the
root.
2016-01-01 07:57:48 +02:00
Ilari Liusvaara
019fbc2646
bsnes: Add Lua function to dump 2bpp sprites (and allow 4-color palettes)
2015-12-29 03:01:46 +02:00
Ilari Liusvaara
3da2e26e1b
Add bit.fextract, bit.bfields
2015-12-24 21:26:12 +02:00
Ilari Liusvaara
610685db0f
Fix Valgrind warning about uninitialized variable
2015-12-15 04:17:53 +02:00
Ilari Liusvaara
6a580bb332
Add regex sanity checks on startup and add --sanity-check
2015-12-15 04:17:11 +02:00
Ilari Liusvaara
fa3e5b6751
Nuke last remains of boost::regex from outside string.cpp
2015-12-11 19:42:35 +02:00
Ilari Liusvaara
813449ac1b
Fix compilation with Lua 5.1
...
Apparently Lua 5.1 doesn't have LUA_OK (0).
2015-11-05 00:22:11 +02:00
Ilari Liusvaara
ff697846d1
Fix crash if loading type0 PNG without tRNS chunk
2015-10-26 21:38:36 +02:00
Ilari Liusvaara
476f79f14a
Fix disassembly of SNES BRL instruction
2015-10-26 21:20:25 +02:00
Ilari Liusvaara
e9e00fd881
Fix help for +tangent/-tangent to be less obscure
2015-10-04 05:31:11 +03:00
Ilari Liusvaara
51bbbd1772
When loading gamepaks, use #1 as MSU-1 base only if system has BIOS
2015-09-07 21:01:15 +03:00
Ilari Liusvaara
1834c61dfb
Fix MSU-1 bug where write to MSU1BASE+4 is mirred to MSUBASE+5
2015-09-07 20:52:01 +03:00
Ilari Liusvaara
5ab3b133a4
Fix bsnes compilation for GCC 5.X
2015-08-08 11:13:39 +03:00
Ilari Liusvaara
918dc6db7b
Fix gamepad reset
...
Don't create duplicate keys for gamepads during reset (causing those
keys to stop working) and properly offline all buttons and axes in
gamepad that is offlined.
2015-08-01 00:25:37 +03:00
Ilari Liusvaara
97ba0292d6
Fix crash on loading invalid PNG files
...
(Just a divide by zero)
2015-07-25 17:23:59 +03:00
Ilari Liusvaara
d8048863e8
movie::frame_subframes: Gracefully handle invalid frame numbers
...
Doesn't fix cache invalidation errors tho.
2015-07-04 12:18:11 +03:00
Ilari Liusvaara
6d1a67719b
Add movie.subframe_to_frame
2015-07-03 22:24:47 +03:00
Ilari Liusvaara
5e73a844a9
Fix do_load_rom() in readonly case
2015-06-29 20:56:04 +03:00
Ilari Liusvaara
4a4c71acf4
ss_int24_t and ss_uint24_t are integers
...
Fixes memory.readhword pushing the result as a float instead of integer.
2015-06-27 02:45:43 +03:00
Ilari Liusvaara
957738035f
Use standard bitmap composition for rendered text bitmaps
2015-06-24 12:54:45 +03:00
Ilari Liusvaara
859d60513f
Merge some common drawing code between bitmaps and tilemaps
2015-06-23 14:46:14 +03:00
Ilari Liusvaara
7ada70888f
Cleanup bitmap and tilemap rendering a bit
2015-06-23 14:32:59 +03:00
Ilari Liusvaara
250679f656
Merge remote-tracking branch 'origin/master'
2015-06-23 13:46:21 +03:00
Ilari Liusvaara
2e609624fa
Remove bogus comments in gui-tilemap.cpp
...
size_t can't overrun as a pointer.
2015-06-23 13:45:47 +03:00
Ilari Liusvaara
daa5ca41e9
Close the ROM on quit to avoid crashes
2015-06-21 09:12:03 +03:00
Ilari Liusvaara
4a4004d3f8
Fix build breakage on Win32
2015-06-16 21:23:14 +03:00
Ilari Liusvaara
0b3743e258
Lua: CUSTOMFONT:dump(): Dump font to file
...
This can be used in conjuction with edit() method for editing fonts and
then dumping those back into file.
2015-06-11 05:31:23 +03:00
Ilari Liusvaara
73e0232176
Don't crash on trying to create 0x0 bitmap or tilemap
2015-06-10 19:20:44 +03:00
Ilari Liusvaara
d86f713aa4
Eliminate sloppy types from headers
...
This should give identical layouts on all platforms (modulo 32/64 bit)
2015-06-07 12:49:19 +03:00
Ilari Liusvaara
52073af3ac
Fix load preserving movie displaying wrong screenshot
2015-06-05 01:06:53 +03:00
Ilari Liusvaara
1c48e0ab06
Fix multiple problems with text drawing
...
- Fix the background to be of correct size
- Fix pre/post error in gui.text() positioning
- Fix pre/post error in custom font rendering, leading to crap pixels
2015-06-04 02:01:43 +03:00
Ilari Liusvaara
c5b368ab3f
Lua: get_directory_contents & get_file_type
...
Useful for reading contents of directories
2015-06-02 08:38:55 +03:00
Ilari Liusvaara
1056f4b4b2
Don't overflow buffers if bsnes goes bonkers
...
The test state I got by corrupting savestate still crashes however.
2015-05-31 23:45:02 +03:00
Ilari Liusvaara
80867950f3
lsnes rr2-β23
2015-05-28 12:41:52 +03:00
Ilari Liusvaara
88a00a2a84
Some new TODOs
2015-05-28 12:37:40 +03:00
Ilari Liusvaara
2da23de987
Small whitespace cleanup
2015-05-27 23:08:54 +03:00
Ilari Liusvaara
0d83c3aba6
Rework how memory tracking works
...
Also adds a few new tracking categories, like movie storage
2015-05-27 17:59:00 +03:00
Ilari Liusvaara
0960e967ea
Memory tracker: Add tracking of render objects
2015-05-27 16:28:01 +03:00
Ilari Liusvaara
c2a7eed9d8
Clean up system font drawing
...
Refactor font reading to fewer places
2015-05-27 15:38:22 +03:00
Ilari Liusvaara
1dd19faaeb
Make git diff --check happier
2015-05-27 11:14:56 +03:00
Ilari Liusvaara
8bca9ce614
Remove TODO list entry now done
2015-05-27 10:49:58 +03:00