Commit graph

30 commits

Author SHA1 Message Date
Ilari Liusvaara
847519c961 Use ld --wrap to intercept time() by bsnes core
This allows games using S-RTC to be rerecorded.
2011-09-25 02:13:50 +03:00
Ilari Liusvaara
99a969b54e lsnes rr0-β12 2011-09-24 21:07:25 +03:00
Ilari Liusvaara
42a2f92a44 Keep track of RTC
This can't be used yet (no support for external time source in bsnes, but
it should become handy when such support exists).
2011-09-24 21:05:56 +03:00
Ilari Liusvaara
765c637ae5 Major oops, forgot one source code file 2011-09-24 20:53:37 +03:00
Ilari Liusvaara
eb8dc58677 lsnes rr0-β11 2011-09-24 19:38:27 +03:00
Ilari Liusvaara
f90a3503ef Take interlace into account when determining framerate 2011-09-24 19:29:21 +03:00
Ilari Liusvaara
345daf2cc5 Panic if Lua runs out of memory
This eliminates the most frequent class of Lua errors causing who knows
what to happen.
2011-09-24 13:43:17 +03:00
Ilari Liusvaara
fb5d773339 Create helper class for globals/module-locals used in global ctors 2011-09-24 13:40:13 +03:00
Ilari Liusvaara
a7dd6e22be Reinitialize controls after continuing from loadstate
This should prevent annoying controls getting lost problem.
2011-09-24 06:10:12 +03:00
Ilari Liusvaara
a9edf4cb30 Make autofire pattern repeat in absolute time, not linear time 2011-09-24 06:09:25 +03:00
Ilari Liusvaara
685c2f7deb lsnes rr0-β10 2011-09-23 23:35:52 +03:00
Ilari Liusvaara
7f9c7a5f96 Don't hit the watchdog during executing delayed reset 2011-09-22 14:55:36 +03:00
Ilari Liusvaara
f0c3f7b61c Use dedicated callbacks for mouse/close, not commands 2011-09-22 14:54:00 +03:00
Ilari Liusvaara
20521e13dd lsnes rr0-β9 2011-09-22 08:05:15 +03:00
Ilari Liusvaara
de7cc3a980 Rewrite modifier matching algorithm
The previous modifier matching algorithm was seriously buggy. For instance
thinking that it should return true if set={}, trigger={shift} and
mask={shift}, which is totally wrong.
2011-09-22 08:00:09 +03:00
Ilari Liusvaara
5b1fc0fc7b lsnes rr0-β8 2011-09-21 16:01:19 +03:00
Ilari Liusvaara
3b6a5230b2 Don't initialize coreversion and projectid in moviefile ctor
It turns out that global ctor runs default ctor for moviefile, and
those two fields can't be initialized in that context. Fixes the
instant crash on wine.
2011-09-21 15:47:10 +03:00
Ilari Liusvaara
f57ab0dee5 Strip trailing CRs from commands
Apparently on windows reading text files (like batch scripts!) gives
CR line endings, causing commands to end on CR. Strip those so nothing
gets confused by stuff like that.
2011-09-21 15:45:52 +03:00
Ilari Liusvaara
83db3a0834 Various fixups from trying to compile this for win32 2011-09-21 02:58:15 +03:00
Ilari Liusvaara
66fcf13980 Unattended dumping support 2011-09-20 22:05:49 +03:00
Ilari Liusvaara
83e2d655ed lsnes rr0-β7 2011-09-20 00:25:04 +03:00
Ilari Liusvaara
16f94f9cef Load movie SRAM as movie SRAM, not save SRAM
This fixes start from SRAM, and also movieinfo.
2011-09-19 23:08:57 +03:00
Ilari Liusvaara
94770e0beb Add movieinfo program
Movieinfo shows information about savestate/movie file passed to it.
2011-09-19 22:39:58 +03:00
Ilari Liusvaara
8c8fc98d19 Fix rerecord counting
This also fixes the off-by-one in rerecord count.
2011-09-19 21:45:35 +03:00
Ilari Liusvaara
d9ed993a4a Fix author name parsing 2011-09-19 21:44:05 +03:00
Ilari Liusvaara
d2ac8d9c3c Fix firmware lookup
Turns out path() has to return full path, not just the directory
name.
2011-09-19 18:24:39 +03:00
Ilari Liusvaara
773c3068ad lsnes rr0-β6 2011-09-18 19:41:35 +03:00
Ilari Liusvaara
b975ebaea5 Don't crash if initial savestate can't be loaded
Instead of crashing if initial savestate can't be loaded, enter system
state corrupt mode.
2011-09-18 17:27:03 +03:00
Ilari Liusvaara
3ad61393dc Backup savestates before overwriting 2011-09-18 12:55:34 +03:00
Ilari Liusvaara
89d511f321 Major source reorganization 2011-09-18 12:42:33 +03:00