Commit graph

101 commits

Author SHA1 Message Date
Ilari Liusvaara
dfe264f629 Lua: input.keyhook 2012-01-17 21:35:49 +02:00
Ilari Liusvaara
af655f14f3 Lua: New function input.raw, which gives data for all buttons 2012-01-17 16:24:50 +02:00
Ilari Liusvaara
7b9a9590c1 Fix compiling on win32
Turns out the value of .native() can't be put into std::string.

Also provode way to link against boost_thread
2012-01-17 01:17:08 +02:00
Ilari Liusvaara
291024486a Remember absolute path for last save 2012-01-17 00:40:44 +02:00
Ilari Liusvaara
2c4ffdc341 Remember last saved file when populating file to load 2012-01-17 00:31:17 +02:00
Ilari Liusvaara
996cecd164 Add warning about calling synchronous queue in callback to UI
This combo seems to trigger lots of deadlocks, so print warnings about
it so instances of this can be found.
2012-01-15 20:47:57 +02:00
Ilari Liusvaara
9908dc094f wxwidgets: GUI for memory search 2012-01-15 16:50:08 +02:00
Ilari Liusvaara
c07fecc4bc wxwidgets: Actually implement load state preserving input 2012-01-15 01:15:20 +02:00
Ilari Liusvaara
83d72721ac Evdev: Don't call keygroup::set_position in invalid thread
keygroup:::set_position is only supposed to be called in emulation
thread, not in joystick thread. Change it to platform::queue, which
can be safely be called in any thread.
2012-01-14 16:25:12 +02:00
Ilari Liusvaara
603730411e Wxwidgets: Fix thread memory managment
This seems to fix those "invalid handle" errors on Win32.
2012-01-14 11:40:48 +02:00
Ilari Liusvaara
6af6708bf1 NULL some window pointers when quitting
This makes it much less likely that the emulator would segfault when
quit on Win32.
2012-01-14 10:38:24 +02:00
Ilari Liusvaara
ebaaf010ce Fix another order-of-global-ctor bug 2012-01-14 00:58:56 +02:00
Ilari Liusvaara
a2872a20ab SDL: Fix order-of-global-ctor bug 2012-01-14 00:05:16 +02:00
Ilari Liusvaara
07f0969ba5 SDL: Fix command history 2012-01-13 23:28:45 +02:00
Ilari Liusvaara
0a17ffdc3e Support ${project} for filenames
When loading/saving, ${project} is translated into whatever value
$prefix (plus '-', defaulting to 'movieslot') has when saving.
2012-01-13 22:12:52 +02:00
Ilari Liusvaara
b47ebee363 wxwidgets: Save settings on exit, load settings on startup 2012-01-13 21:36:02 +02:00
Ilari Liusvaara
9740d24a29 wxwidgets: Allow editing jukebox from the GUI 2012-01-13 20:42:49 +02:00
Ilari Liusvaara
6b727c9628 Fix desyncs with rewind movie to begnning function 2012-01-13 09:24:19 +02:00
Ilari Liusvaara
63b65ea04d Fix frame number reported to Lua in repaint after load 2012-01-13 08:52:18 +02:00
Ilari Liusvaara
fb757b9780 Rewind movie to beginning function 2012-01-13 07:25:02 +02:00
Ilari Liusvaara
d903f6c83b When showing input in readwrite mode, show last sent input
Most rerecording emulators work this way, not by showing input pressed
right now.
2012-01-13 06:51:47 +02:00
Ilari Liusvaara
5480b3f4aa Remove core/coroutine
This module is obsolete.
2012-01-12 22:57:05 +02:00
Ilari Liusvaara
5bcad5e037 Don't fall off commandline processing routine
Fixes crash when key is typed in command mode in Mac OS X.
2012-01-12 12:41:06 +02:00
Ilari Liusvaara
a0680f8778 Refactor controller input code
This also fixes bugs in autoholding.
2012-01-11 23:07:31 +02:00
Ilari Liusvaara
1eea706956 Win32: Fix compile errors 2012-01-11 17:31:25 +02:00
Ilari Liusvaara
cd28aa2987 Lua: Support Lua 5.2.X too 2012-01-11 16:41:23 +02:00
Ilari Liusvaara
8df91c55f2 Wxwidgets: Allow controlling dumper start/stop from menu 2012-01-11 01:21:13 +02:00
Ilari Liusvaara
34a5e281ca Reformat the version message a bit 2012-01-10 13:26:12 +02:00
Ilari Liusvaara
e1633750a9 Detect git revision and have version shown 2012-01-10 13:14:11 +02:00
Ilari Liusvaara
35560566d1 lsnes rr1-β3 2012-01-10 01:15:50 +02:00
Ilari Liusvaara
261b631ac2 Don't leak palette if freeing screen object 2012-01-10 01:12:50 +02:00
Ilari Liusvaara
dbb2dbd9ee Controller command memory leak fixes 2012-01-10 01:12:17 +02:00
Ilari Liusvaara
394fcbf9da Fix framecount/length given when loading movies 2012-01-10 01:11:53 +02:00
Ilari Liusvaara
ec20694f7b Pack movie data in memory
Instead of using full 2*100 bytes for each subframe of movie data, pack
it in controller-dependent way, reducing the memory usage to 7-20 bytes
per subframe (90-96% reduction).
2012-01-09 21:55:55 +02:00
Ilari Liusvaara
66818758d9 Fix lsnes-dumpavi
Fix lsnes-dumpavi after changes to dumper interface.
2012-01-06 18:38:07 +02:00
Ilari Liusvaara
0603dae6ce Fix controller logical numbers
Controller logical numbers were incorrect if port 1 was multitap but
port 2 wasn't. Fix this.
2012-01-06 17:54:03 +02:00
Ilari Liusvaara
eeca1a7368 Remove dummy test SRAM
Oops, dummy test SRAM entry was left in...
2012-01-06 17:40:38 +02:00
Ilari Liusvaara
c298f8eae7 lsnes rr1-β0 2012-01-06 17:28:01 +02:00
Ilari Liusvaara
d8a7a554e1 Fix bug in skip to next poll function
Don't get stuck in some weird limbo pause mode after advancing to next
poll.
2012-01-04 15:46:01 +02:00
Ilari Liusvaara
c3fc676519 Fix whitespace errors 2011-12-27 09:41:28 +02:00
Ilari Liusvaara
2c3cf8db5e Show distinction between readonly-in-movie and finished in status flags 2011-12-26 23:12:39 +02:00
Ilari Liusvaara
debe5c1110 Don't assume that rshift=16, gshift=8, bshift=0 in blending code
This fixes text colors on SDL with Mac OS X.
2011-12-25 08:30:41 +02:00
Ilari Liusvaara
9e3b7c82d4 Lua: Add gui.textH, gui.textV, gui.textHV 2011-12-25 00:26:25 +02:00
Ilari Liusvaara
7f8b57b7ad lsnes rr0 2011-12-18 18:18:08 +02:00
Ilari Liusvaara
464f4f072a Merge remote-tracking branch 'origin/master' 2011-12-18 08:03:43 +02:00
Ilari Liusvaara
8b8ff0ab8b wxwidgets: Fix loading of ROMs 2011-12-18 08:03:00 +02:00
Ilari Liusvaara
85360162d0 Poll all events in poll_inputs_internal, not just the first in queue 2011-12-17 05:25:57 +02:00
Ilari Liusvaara
20b796f7bf Make pause-on-end actually controllable
Pause-on-end was buggy: It always was on, regardless of pause-on-end
value. Fix it so pause only happens if pause-on-end is true.
2011-12-16 03:26:14 +02:00
Ilari Liusvaara
f3e3c4f6f7 lsnes rr0-β27
Fixes show-bindings to show the commands bound.
2011-12-14 00:11:16 +02:00
Ilari Liusvaara
271efb7f1d lsnes rr0-β26 2011-12-12 19:17:40 +02:00