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
635e1fac44
Move lsnes_kbd and lsnes_mapper to be instance vars
2014-05-11 15:29:27 +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
04ba635f1a
Instancefy emustatus.cpp stuff
2014-05-10 14:48:08 +03:00
Ilari Liusvaara
21dbab5a77
Instancefy multitrack.cpp stuff
2014-05-10 14:36:54 +03:00
Ilari Liusvaara
97ecbe06f0
Kill unused generic_controller_name()
2014-05-10 14:18:33 +03:00
Ilari Liusvaara
4099291b35
Instancefy mbranch.cpp stuff
2014-05-10 14:11:24 +03:00
Ilari Liusvaara
3e4c03d114
Clean up some uses of lsnes_instance
2014-05-10 13:55:07 +03:00
Ilari Liusvaara
ee0d0089dc
Instancefy subtitles.cpp stuff
2014-05-10 13:36:00 +03:00
Ilari Liusvaara
4be906fa36
Instancefy inthread.cpp stuff
2014-05-10 13:12:42 +03:00
Ilari Liusvaara
6f65559571
Get rid of lsnes_vset[foo]
2014-05-10 12:15:57 +03:00
Ilari Liusvaara
b57e6d5eda
lsnes_vsetc -> lsnes_instance.setcache
2014-05-10 11:54:15 +03:00
Ilari Liusvaara
d95f247e9f
lsnes_memorywatch -> lsnes_instance.mwatch
2014-05-10 11:41:08 +03:00
Ilari Liusvaara
ee6b522395
lsnes_lua_state -> lsnes_instance.lua
2014-05-10 11:32:48 +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
c84a8125c9
lsnes_memory -> lsnes_instance.memory
2014-05-10 11:22:31 +03:00
Ilari Liusvaara
dcd9bec1fc
movb -> lsnes_instance.mlogic
2014-05-10 11:09:28 +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
ffcdc987bd
If loading ROM with multiple candidates, prompt before adding to recentrom
2014-05-03 08:27:18 +03:00
Ilari Liusvaara
45388e8ee2
Support configurable URI shorthands
2014-05-01 13:56:33 +03:00
Ilari Liusvaara
e10a2fcfe5
Trace logger (Window): Show start of frame
2014-05-01 04:12:15 +03:00
Ilari Liusvaara
be838db972
Lua: Fix some includes
2014-04-29 08:29:33 +03:00
Ilari Liusvaara
175a080382
Autodetect followed by undefined with multiple choices: Ask user
2014-04-26 20:55:42 +03:00
Ilari Liusvaara
a3c81eec0c
Wipe all sorts of potentially sensitive stuff after use
2014-04-24 17:06:22 +03:00
Ilari Liusvaara
4560782668
moviefile::get_movie_length: Use milliseconds, not nanoseconds
...
The fractional division should still be exact (but rounds up).
2014-04-21 21:46:29 +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
ceed4f622f
Merge multiple versions of get_read_address() into one
2014-04-21 15:54:36 +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
d7daa8963c
c-interface: Add some translation templates
2014-04-06 16:42:58 +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
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
12c9a5fdfb
Don't update statusbar fast outside paint event
...
Turns out spamming wxStatusBar::SetStatusText() outside paint event
causes wxWidgets to livelock.
2014-04-01 14:25:11 +03:00
Ilari Liusvaara
5cc3661437
Refactor emulator status reporting (and fix the statusbar doesn't update bug)
2014-04-01 00:13:36 +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
2498bad58d
Autosave settings immediately after closing settings
2014-03-30 21:20:21 +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
b367334238
Only update emulator status from within update_movie_state()
2014-03-28 12:36:21 +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
5a0ccb1401
Free some more memory before quitting
2014-03-22 13:28:53 +02:00