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
Ilari Liusvaara
0c0156647b
Redo text rendering (adds halo support to gui.text())
...
Now gui.text() and friends support halos. Also fixes a bug with partially
opaque halos in CUSTOMFONT rendering.
2015-05-27 10:44:50 +03:00
Ilari Liusvaara
56deafcd4a
Framework for memory usage tracking
...
Adds tracking for Lua VM and ROM images. The rest comes later.
2015-05-26 13:16:09 +03:00
Ilari Liusvaara
82a7c255a4
Lua: Memory usage limit
...
This allows limiting memory usage by Lua, which might very well be useful,
given the behaviour of accumulating garbage in memory if one does not
garbage-collect.
2015-05-25 23:44:51 +03:00
Ilari Liusvaara
6a2d7f9aa2
Use master state for trampolines
...
Fixes memory corruption if any Lua function creates a trampoline
2015-05-25 22:31:51 +03:00
Ilari Liusvaara
478472e883
Have only one main Lua function trampoline
...
This makes it easier to have special modes when Lua functions are running
later...
2015-05-25 21:16:45 +03:00
Ilari Liusvaara
f06eb401c4
font rendering: Use ranges for bounding instead of buggy routine
...
This fixes the drawing junk problem if character is drawn off top or
off left.
2015-05-20 08:51:14 +03:00
Ilari Liusvaara
f04379b03c
Actually kill objects using palette about to be GC'd
2015-05-14 20:37:23 +03:00
Ilari Liusvaara
a8bc4a2cf8
Small rendering speedups
...
Pass the object pins as references instead of values. Saves about
150 CPU cycles per value for me.
2015-05-14 20:04:41 +03:00
Ilari Liusvaara
ae71090387
Fix a compiler warning
...
The warning is false, init of spd can't be avoided if is_string=false.
2015-05-14 19:53:33 +03:00
Ilari Liusvaara
04d7e60fe1
Fix race between killing object and drawing object
...
Previously, it was possible to draw and kill object queue at the same
time, possibly leading to crashes from accessing object state after
destroying it. Fix this.
2015-05-14 19:20:21 +03:00
Ilari Liusvaara
15ff9e0cc8
Don't leak open file descriptors to loaded ROMs
2015-05-09 19:16:44 +03:00
Ilari Liusvaara
8a794244be
Fix typo in Lua reference
2015-05-08 01:10:12 +03:00
Ilari Liusvaara
10eb0dbd22
Add description of PALETTE:get()
2015-05-03 02:24:11 +03:00
Ilari Liusvaara
eeaf3706d8
Add dedicated method for resetting to poweron state
...
This speeds up "rewind to beginning" operation.
2015-04-27 10:03:28 +03:00