X-Git-Url: http://git.hcoop.net/clinton/Virtual-Jaguar-Rx.git/blobdiff_plain/5fa7aa73305908579b14bd1dc27417352bf5acdf..HEAD:/src/gui/app.cpp diff --git a/src/gui/app.cpp b/src/gui/app.cpp index b9903e0..bc56752 100644 --- a/src/gui/app.cpp +++ b/src/gui/app.cpp @@ -17,13 +17,14 @@ // JPM Sept./2016 Visual Studio support, and Soft debugger support (--debugger) // JPM 09/ /2017 Added option (--dram-max) to support 8MB ram (which doesn't exist) // JPM Sept./2017 Added the 'Rx' word to the emulator name, updated the credits line, added option (--es-all, --es-ui, --es-alpine & --es-debugger) to support the erase settings -// JPM 10/09/2018 Added the Rx version's contact in the help text +// JPM Oct./2018 Added the Rx version's contact in the help text, added timer initialisation in the SDL_Init +// JPM Apr./2019 Fixed a command line option duplication // #include "app.h" #include -#include +#include #include "gamepad.h" #include "log.h" #include "mainwin.h" @@ -106,7 +107,7 @@ int main(int argc, char * argv[]) } // Set up SDL library - if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_AUDIO) < 0) + if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0) { WriteLog("VJ: Could not initialize the SDL library: %s\n", SDL_GetError()); } @@ -173,7 +174,7 @@ bool ParseCommandLine(int argc, char * argv[]) if ((strcmp(argv[i], "--help") == 0) || (strcmp(argv[i], "-h") == 0) || (strcmp(argv[i], "-?") == 0)) { printf( - "Virtual Jaguar " VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ") Rx\n" + "Virtual Jaguar " VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ") Rx - " __DATE__ "\n" "Based upon Virtual Jaguar core v1.0.0 by David Raingeard.\n" "Based upon the work by James Hammons (Linux/WIN32), Niels Wagenaar (Linux/WIN32),\n" "Carwin Jones (BeOS), and Adam Green (MacOS)\n" @@ -187,7 +188,7 @@ bool ParseCommandLine(int argc, char * argv[]) " ---------------- -----------------------------------\n" " Name of file to autoload\n" " --alpine -a Put Virtual Jaguar into Alpine mode\n" - " --debugger -d Put Virtual Jaguar into Debugger mode\n" + " --debugger -D Put Virtual Jaguar into Debugger mode\n" " --pal -p PAL mode\n" " --ntsc -n NTSC mode\n" " --dram-max Set DRAM size to 8MB\n" @@ -252,7 +253,7 @@ bool ParseCommandLine(int argc, char * argv[]) } // Debugger mode - if ((strcmp(argv[i], "--debugger") == 0) || (strcmp(argv[i], "-d") == 0)) + if ((strcmp(argv[i], "--debugger") == 0) || (strcmp(argv[i], "-D") == 0)) { printf("Debugger mode enabled.\n"); vjs.softTypeDebugger = true;