* Lua: added debugger.getcyclescount() function
* Lua: added debugger.getinstructionscount() function
* Lua: added debugger.resetcyclescount() function
* Lua: added debugger.resetinstructionscount() function
* Win32: when no script is currently running, Shift+L loads the most recent Lua script
* Video config: renamed "Use console BG color for empty areas" option to just "BG color"
* Video config: added aspect ratio fields for customizing "TV Aspect" ratio, by default it's 4/3
the argument was added in the following functions
state.cpp:FCEUI_LoadState
state.cpp:FCEUI_SaveState
state.cpp:FCEUSS_Save
state.cpp:FCEUSS_Load
This helped with the periodic saving where you don't really want the
save message popping up every time there's a save.
in sdl.cpp:DoFun(), it will save to the state specified by
--savestate periodically. The interval is currently decided by
a #define in sdl.h. I have it this way because you have to mod
by the interval, and having this be a compile time value lets
the compiler optimize out the modulo operation. Since this check
will happen so frequently I thought this was better. However, if
this is better suited to something configurable, I am willing to
change it.
sdl.cpp had a #include "gui.cpp" line, rather than
including the gui.h header (which was lacking). All the declarations
are now in gui.h and gui.cpp is in the sources_list
Previously the Config::getOption functions were not marked as const,
This prevented them being called through a const Config * as I was
attempting to do. I've marked them as const member functions
as well as changed the iteration to use a const_iterator.
there were a lot of lines that needed static_casts to get rid of compiler
errors (c++11 issues) so I added them. Replaced #include<lib.h>s with
#include<clib>s, and moved them below the local includes
autoloading/autosaving
various other small changes around the source, but the big changes
to the program are the command line arguments
--abstartselectexit (0 or 1)
--autoload (0-9 or greater than 9 for no autoload)
--autosave (0-9 or greater than 9 for no autosave)
autosaving only occurs when sdl.cpp:CloseGame() is called, which
doesn't appear to happen when the window is "X'd out"