Commit graph

94 commits

Author SHA1 Message Date
Ilari Liusvaara
48029eb1c8 Builtin r16m dumper
Deals with the usual SNES cases, and some unusual things like split
subframes, but does not deal with things like Super Game Boy.
2020-09-28 23:38:46 +03:00
Ilari Liusvaara
1b582c8fbd Allow just-in-time override of input to be recorded from Lua
This is useful e.g., for implementing .r16m playback.
2020-03-31 18:22:39 +03:00
Ilari Liusvaara
436b1d183d Remove partial exception specifiers
These are deprecated in newer C++ versions.
2019-01-30 19:26:21 +02:00
Rodrigo A. do Amaral
9318e4de94 Lua (d)bitmap: add hflip and vflip functions 2017-07-14 06:07:03 +03:00
Ilari Liusvaara
f85cdab6c5 Linear transformed texture sampling for (d)bitmap 2017-07-13 15:44:52 +03:00
Ilari Liusvaara
7903ba1fda Small cleanup: move up some lsnes_instance stuff 2016-04-16 10:51:02 +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
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
2da23de987 Small whitespace cleanup 2015-05-27 23:08:54 +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
39286f820a Refactor unsafe rewinding a bit now that state is its own subobject 2015-04-25 13:18:37 +03:00
Ilari Liusvaara
5dedb34943 Lua: PALETTE:get() 2014-12-20 06:38:47 +02:00
Ilari Liusvaara
9fdd0bdd38 Tweak format of command help files and do some further command cleanup 2014-11-18 16:19:01 +02:00
Ilari Liusvaara
9a69dc3511 Namespace library port-controller stuff 2014-11-10 05:13:34 +02:00
Ilari Liusvaara
63dfbd59d6 Make render queue scratch variables instance variables 2014-06-07 03:24:33 +03:00
Ilari Liusvaara
99577e806a Actually don't start if sysrc.lua is bad 2014-06-06 15:53:38 +03:00
Ilari Liusvaara
b021e7b5af read_lua_fragment: Don't duplicate the script infinite number of times 2014-06-06 15:51:53 +03:00
Ilari Liusvaara
14a0862342 Instancefy lua core stuff
This should fix crashes on startup on Win32
2014-06-06 15:03:16 +03:00
Ilari Liusvaara
bf00f42e0a Lua: Memory address object 2014-06-03 11:33:53 +03:00
Ilari Liusvaara
95d1b5130f Move some debug stuff to be in class scope 2014-05-23 18:11:06 +03:00
Ilari Liusvaara
b601b18bf6 lua.hpp: Forward-declare keyboard::key 2014-05-14 16:21:03 +03:00
Ilari Liusvaara
29ee02309b Move lua-framebuffer to lua namespace 2014-05-14 11:50:59 +03:00
Ilari Liusvaara
5ee9514791 Don't extern lsnes_lua_state, it is only used in one file 2014-05-10 11:28:11 +03:00
Ilari Liusvaara
ceed4f622f Merge multiple versions of get_read_address() into one 2014-04-21 15:54:36 +03:00
Ilari Liusvaara
f2e1930909 Lua: (D)BITMAP:draw_clip, (D)BITMAP:draw_outside, TILEMAP:draw_outside 2014-04-03 00:59:05 +03:00
Ilari Liusvaara
5d0fb0f39a Error out creating too large bitmaps / tilemaps instead of corrupting memory 2014-03-31 14:15:24 +03:00
Ilari Liusvaara
7ba7fc24f6 Use overcommit for palettes, bitmaps, dbitmaps and tilemaps
This makes the large size of these objects visible to Lua, hopefully
allowing Lua GC to make better decisions.
2014-03-31 12:42:33 +03:00
Ilari Liusvaara
e0827ce54f Add base support for Lua object overcommit 2014-03-31 11:31:25 +03:00
Ilari Liusvaara
b367334238 Only update emulator status from within update_movie_state() 2014-03-28 12:36:21 +02:00
Ilari Liusvaara
4f0e636b9b Refactor workthread.hpp and threadtypes.hpp (renamed to threads.hpp)
Also rename all variables and fields named "mutex" (gdb does not like
that name).
2014-03-23 09:45:42 +02:00
Ilari Liusvaara
c685319f88 Lua: Clean up region bounds computation 2014-02-18 20:26:50 +02:00
Ilari Liusvaara
9bd1791701 Lua: Don't run Lua until the emulator has fully started up 2014-02-15 13:51:39 +02:00
Ilari Liusvaara
ef1f61a6e7 Lua: COMPARE_OBJ: Check strided memory block for modifications 2014-02-14 22:22:45 +02:00
Ilari Liusvaara
d1176cbf9e Lua: memory2: More functions corresponding to memory.* 2014-02-13 13:48:01 +02:00
Ilari Liusvaara
3e92462a3d Dynamically allocate moviefile, rrdata and movie structures 2014-02-02 18:35:36 +02:00
Ilari Liusvaara
9a9f58d747 lua_func_callback isn't used anymore, remove it 2014-01-30 00:44:42 +02:00
Ilari Liusvaara
85d78e2632 Lua: Give the print method as pointer instead of assuming T::print 2014-01-29 11:32:52 +02:00
Ilari Liusvaara
53d7bbd633 Lua: Make class methods take lua::parameters 2014-01-28 14:38:25 +02:00
Ilari Liusvaara
b7ea7bb2c7 Lua: cleanup some more files 2014-01-26 17:42:22 +02:00
Ilari Liusvaara
676dfe7ac8 Lua: Refactor classes
- Support static methods for classes
- Allow Lua to enumerate static and class methods
- Support dynamic class lookup
- Support class groups (in style of function groups)
2014-01-25 16:30:25 +02:00
Ilari Liusvaara
94114f1e2e Lua: Refactor lots of stuff
- Split lua-base.hpp into number of files.
- New Lua function parameters parser.
- Convert some Lua code files in order to test the stuff
2014-01-25 12:51:13 +02:00
Ilari Liusvaara
b54a776f13 Lua: Scaling blits, color priority blits, Porter-Duff blits 2014-01-22 19:18:03 +02:00
Ilari Liusvaara
4bb75bc30e Lua: gui.set_video_scale() 2014-01-17 22:19:50 +02:00
Ilari Liusvaara
43952138a3 Lua: Bitmap/renderq object methods 2013-12-23 16:32:11 +02:00
Ilari Liusvaara
2c4a3a5f84 Refactor library Lua base to dedicated namespace 2013-12-20 02:02:22 +02:00
Ilari Liusvaara
dce933b76d Refactor library framebuffer to dedicated namespace 2013-12-19 07:00:43 +02:00
Ilari Liusvaara
69f06ce1b0 Remove some crazy dependencies to keymapper 2013-12-19 02:58:22 +02:00