Commit graph

319 commits

Author SHA1 Message Date
Ilari Liusvaara
4c952beb3b Use open/read/write/close for binary saves instead of iostreams 2014-04-10 22:51:42 +03:00
Ilari Liusvaara
154abcb8d7 Numeric range class, obsolete clip_range. 2014-04-02 15:18:33 +03:00
Ilari Liusvaara
d533647560 Delete the now-unused emulator_status stuff 2014-04-02 08:43:25 +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
4a027d5f4e Make compiler more anal and fix what comes up
Probably got multiple Lua crash bugs...
2014-03-29 20:43:58 +02:00
Ilari Liusvaara
c9777bba18 Fix the 0 movie length bug 2014-03-29 17:21:50 +02:00
Ilari Liusvaara
39d2ecaa62 Refactor triple buffering logic to its own file 2014-03-26 12:27:17 +02:00
Ilari Liusvaara
99475b2a0b Lock/Unlock multiple locks at once function / class 2014-03-23 10:28:33 +02:00
Ilari Liusvaara
32f2e2ce81 Refactor streamcompress.hpp 2014-03-23 09:56:22 +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
2823958ffb Fix another potential dtor order crash 2014-03-22 13:49:56 +02:00
Ilari Liusvaara
57992947ae Optimize movie.find_frame()
The new version is about 6x faster.
2014-03-19 18:21:36 +02:00
Ilari Liusvaara
08b41877a3 Recentfiles object: named object 2014-02-25 04:03:52 +02:00
Ilari Liusvaara
960fd4f892 Move library recentfiles to its own namespace 2014-02-25 04:02:54 +02:00
Ilari Liusvaara
fc95e85126 Pass dummy object parameter to do_unregister
This allows getting rid of proxy objects
2014-02-23 07:07:20 +02:00
Ilari Liusvaara
c685319f88 Lua: Clean up region bounds computation 2014-02-18 20:26:50 +02:00
Ilari Liusvaara
d1176cbf9e Lua: memory2: More functions corresponding to memory.* 2014-02-13 13:48:01 +02:00
Ilari Liusvaara
0e0ca079fa Lua: memory.hash_region(), memory.store(), memory.storecmp() 2014-02-10 21:25:25 +02:00
Ilari Liusvaara
783d20f690 Don't use framebuffer palettes 2014-02-10 00:07:31 +02:00
Ilari Liusvaara
89aab3b1db Cleanup lua code by introducing lua::functions 2014-02-05 13:27:51 +02:00
Ilari Liusvaara
a50cadb1a8 Support multi-branch movies 2014-02-04 21:16:38 +02:00
Ilari Liusvaara
3e92462a3d Dynamically allocate moviefile, rrdata and movie structures 2014-02-02 18:35:36 +02:00
Ilari Liusvaara
ceb35eb72c Back movie data off movie file structure 2014-02-01 17:35:22 +02:00
Ilari Liusvaara
3e8eed0ac1 Make git diff --check happy 2014-01-31 06:26:04 +02:00
Ilari Liusvaara
a2407c4e79 Refactor some generic reading/writing routines out of moviefile.cpp 2014-01-31 05:20:52 +02:00
Ilari Liusvaara
2e4502896f Fix some exception specifier mismatches 2014-01-30 12:36:02 +02:00
Ilari Liusvaara
67ed92de33 Lua: all_classes() 2014-01-29 12:57: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
59113ed24d Lua: Convert some core-specific stuff and kill lua::fnptr 2014-01-28 14:26:00 +02:00
Ilari Liusvaara
a848e9d154 Lua: use multi-argument parsing for more files 2014-01-28 01:01:46 +02:00
Ilari Liusvaara
bb6bf9ca26 Lua: Multi-argument parsing and unify color parsing 2014-01-27 11:00:34 +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
156a23782a Rename ERROR to FAILED in evaluation status
This avoids a name conflict.
2014-01-20 17:37:33 +02:00
Ilari Liusvaara
31ff9a4b8f Move main movie compatiblity checking to controller_frame_vector 2014-01-16 12:21:29 +02:00
Ilari Liusvaara
a9bc132e20 Make frame count controller_frame_vector property 2014-01-14 20:43:56 +02:00
Ilari Liusvaara
0a41e8d901 More advanced memory watches 2014-01-10 12:12:14 +02:00
Ilari Liusvaara
1a0f0448e8 Plugin blacklist/killlist (needed on some toys) 2013-12-31 21:49:50 +02:00
Ilari Liusvaara
1c2885fc12 Fix compiling on Win32
Damn linker...
2013-12-31 21:49:50 +02:00
Ilari Liusvaara
5b76990e97 Also load plugins from location relative to the executable 2013-12-30 22:57:22 +02:00
Ilari Liusvaara
c6d744b867 Fix off-by-one in counting number of objects in render queue 2013-12-29 15:40:49 +02:00
Ilari Liusvaara
0d39cfc692 Wxwidgets: Plugin manager 2013-12-29 00:03:57 +02:00
Ilari Liusvaara
b74d47ae5b JSON Pretty printing support and pretty-print joystick configuration 2013-12-27 11:38:16 +02:00
Ilari Liusvaara
3f14664f0c Lua: HSL colors and color modifiers 2013-12-24 20:29:31 +02:00
Ilari Liusvaara
00b961bb55 Some refactoring of the named colors stuff (and a lot more colors) 2013-12-24 12:18:01 +02:00
Ilari Liusvaara
f032ae3b60 Allow color names as color specifications 2013-12-24 04:58:09 +02:00
Ilari Liusvaara
42f8862283 Clean up some hash and RNG code 2013-12-22 05:48:58 +02:00
Ilari Liusvaara
36f56232b5 Get rid of utf8::to32i2() and extract_token() 2013-12-21 16:36:33 +02:00