Ilari Liusvaara
6f35061747
Setting sets
2014-05-13 09:06:14 +03:00
Ilari Liusvaara
30d7196cd4
Listener object is better than 3 lambdas + handle
2014-05-12 23:44:12 +03:00
Ilari Liusvaara
ab9c568062
Inverse binding sets
2014-05-12 20:37:04 +03:00
Ilari Liusvaara
8eb23a34ca
Use recursive locks to deal with the locking mess in command::*
2014-05-12 19:08:45 +03:00
Ilari Liusvaara
7f8fd7b393
Simplify command::* memory management
2014-05-12 15:48:08 +03:00
Ilari Liusvaara
f4c6c6e322
Command sets WIP
2014-05-11 20:01:26 +03:00
Ilari Liusvaara
6ced0ce890
Split random number functions from misc.cpp to dedicated file
2014-05-10 15:17:12 +03:00
Ilari Liusvaara
6f65559571
Get rid of lsnes_vset[foo]
2014-05-10 12:15:57 +03:00
Ilari Liusvaara
c961f78f03
Use urandom / rtlgenrandom
...
Simplify the mess of random number generation.
Also, even if rtlgenrandom is officially documented as don't use, if
it gets changed/removed, if this emulator works is the least of your
worries (Microsoft just broke all backward compatibility).
2014-05-04 19:08:25 +03:00
Ilari Liusvaara
45388e8ee2
Support configurable URI shorthands
2014-05-01 13:56:33 +03:00
Ilari Liusvaara
be838db972
Lua: Fix some includes
2014-04-29 08:29:33 +03:00
Ilari Liusvaara
a3c81eec0c
Wipe all sorts of potentially sensitive stuff after use
2014-04-24 17:06:22 +03:00
Ilari Liusvaara
c594082dfa
Lua: Deprecate global addresses
...
These are a frequent source of bugs in Lua scripts, so deprecate those.
2014-04-21 16:16:55 +03:00
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