Commit graph

173 commits

Author SHA1 Message Date
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
f9354847fa Fix make clean 2011-09-22 07:54:57 +03:00
Ilari Liusvaara
87d02c3bcb Small documentation tweaks 2011-09-21 19:32:36 +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
dfea0bce31 Work even if sound can't be initialized
If sound wasn't initialized, then the program tried to drop/dup samples
using increment 0 modulus 1, which causes instant lockup on first audio
sample. Fix the program to use increment 0 modulus 0 (which causes all
audio to be dropped) if audio can't be initialized.
2011-09-21 15:44:47 +03:00
Ilari Liusvaara
83db3a0834 Various fixups from trying to compile this for win32 2011-09-21 02:58:15 +03:00
Ilari Liusvaara
aedd34d774 Some documentation & makefile tweaks 2011-09-21 00:10:34 +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
e96fadcd09 Print messages to console if SDL is not initialized 2011-09-19 22:37:16 +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
Ilari Liusvaara
c97be81246 lsnes rr0-β5 2011-09-18 10:22:28 +03:00
Ilari Liusvaara
9a0e890157 Support specifying extra configuration files to run from commmand line 2011-09-18 10:13:42 +03:00
Ilari Liusvaara
bb54273daa Try to fix nasty corner cases of failing loads
Hopefully one no causes a desync if one tries to load state/movie
that can't be loaded or resolve corrupt system using a savestate.
2011-09-18 10:06:05 +03:00
Ilari Liusvaara
96d1ef665c rr0-β4 2011-09-18 02:49:14 +03:00
Ilari Liusvaara
3f11a63a52 Implement save jukebox
Handy if you want to control the game using gamepad.
2011-09-18 02:47:45 +03:00
Ilari Liusvaara
9fef45851d Add some missing changelog entries. 2011-09-18 02:20:30 +03:00
Ilari Liusvaara
232df64731 Fix binding to multi-button keygroup
Oops, the code didn't check subkey number. Fix this.
2011-09-18 02:16:18 +03:00
Ilari Liusvaara
fe7112bc24 lsnes rr0-β3 2011-09-18 01:28:37 +03:00
Ilari Liusvaara
faafcd2c7d Make joysticks actually work 2011-09-18 01:26:45 +03:00
Ilari Liusvaara
6bb1685a36 lsnes rr0-β2 2011-09-17 13:45:02 +03:00
Ilari Liusvaara
83b5a68abe Autofire support 2011-09-17 13:43:22 +03:00
Ilari Liusvaara
6a823be7d1 Pass tokensplitter& as argument to command handler 2011-09-17 13:15:20 +03:00
Ilari Liusvaara
9564054f27 Create function pointer to lua function adapter and migrate what we can 2011-09-17 12:26:58 +03:00
Ilari Liusvaara
08b416c94c Fix crash on invalid Lua function arguments 2011-09-17 12:17:14 +03:00
Ilari Liusvaara
000d45b9eb Allow variable arguments to command functions 2011-09-17 12:00:49 +03:00
Ilari Liusvaara
a396b9c39f Move take-screenshot: mainloop.cpp -> framebuffer.cpp 2011-09-17 11:33:35 +03:00
Ilari Liusvaara
e203b4f492 Make AVI dumper setting names more specific 2011-09-17 11:30:57 +03:00
Ilari Liusvaara
5d9465f578 Migrate the rest to function_ptr_command 2011-09-17 11:29:10 +03:00
Ilari Liusvaara
e0a4bfa510 Get rid of fieldsplitter
It was used more before, now it was just used to split author names
into component parts. This can be much better done with a dedicated
function.
2011-09-17 10:15:35 +03:00
Ilari Liusvaara
0c4431001c More random cleanups 2011-09-17 09:55:35 +03:00
Ilari Liusvaara
d47eaa277b Migrate settings.cpp to function_ptr_command 2011-09-17 01:12:53 +03:00
Ilari Liusvaara
35d1875b44 Since window is singleton anyway, get rid of window* parameters 2011-09-17 01:05:41 +03:00
Ilari Liusvaara
d38da1b04b More code cleanups 2011-09-17 00:06:20 +03:00
Ilari Liusvaara
2f9338fd75 Settings: Use std::ostream& instead of window* 2011-09-16 21:16:27 +03:00
Ilari Liusvaara
366336d560 More cleanups 2011-09-16 21:09:22 +03:00
Ilari Liusvaara
1e0d57b503 Allow forcing maximum number of frames per segment 2011-09-16 15:24:34 +03:00
Ilari Liusvaara
247a1ba33a Refactor .avi dumping
Extract the sample rate reduction and SOX writing code from AVI writing
code. Place sample rate reduction to AVI dump control code and split
SOX code to its own class.
2011-09-16 11:25:55 +03:00
Ilari Liusvaara
b4d18f7309 Refactor mainloop.cpp a lot 2011-09-16 06:13:33 +03:00