The -d command line option, dedicated to the debugger, has been renamed to avoid...
authorJean-Paul Mari <djipi.mari@gmail.com>
Mon, 22 Apr 2019 02:36:56 +0000 (22:36 -0400)
committerJean-Paul Mari <djipi.mari@gmail.com>
Mon, 22 Apr 2019 02:36:56 +0000 (22:36 -0400)
docs/vj_HistoryNotes.txt
src/gui/app.cpp

index c9756bb..de608d4 100644 (file)
@@ -85,6 +85,8 @@ Git commit: TBD
 47) Added ELF sections check so a potential unknown section will stop, or not stop, the decoding
 48) Project has switched to QT 5.12.0 library 64bits for VS 2017
 49) Added a Save Dump As... feature to save a memory zone to a file
+50) The -d command line option, dedicated to the debugger, has been renamed to avoid duplication with the dsp one
+-- -d has been renamed by -D because another -d was also used for the dsp command line option
 
 Release 3 (13th November 2017)
 ------------------------------
index 63a2501..9392692 100644 (file)
@@ -18,6 +18,7 @@
 // JPM  09/  /2017  Added option (--dram-max) to support 8MB ram (which doesn't exist)\r
 // 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\r
 // JPM   Oct./2018  Added the Rx version's contact in the help text, added timer initialisation in the SDL_Init\r
+// JPM   Apr./2019  Fixed a command line option duplication\r
 //\r
 \r
 #include "app.h"\r
@@ -187,7 +188,7 @@ bool ParseCommandLine(int argc, char * argv[])
                                "   ----------------  -----------------------------------\n"\r
                                "   <filename>        Name of file to autoload\n"\r
                                "   --alpine      -a  Put Virtual Jaguar into Alpine mode\n"\r
-                               "   --debugger    -d  Put Virtual Jaguar into Debugger mode\n"\r
+                               "   --debugger    -D  Put Virtual Jaguar into Debugger mode\n"\r
                                "   --pal         -p  PAL mode\n"\r
                                "   --ntsc        -n  NTSC mode\n"\r
                                "   --dram-max        Set DRAM size to 8MB\n"\r
@@ -252,7 +253,7 @@ bool ParseCommandLine(int argc, char * argv[])
                }\r
 \r
                // Debugger mode\r
-               if ((strcmp(argv[i], "--debugger") == 0) || (strcmp(argv[i], "-d") == 0))\r
+               if ((strcmp(argv[i], "--debugger") == 0) || (strcmp(argv[i], "-D") == 0))\r
                {\r
                        printf("Debugger mode enabled.\n");\r
                        vjs.softTypeDebugger = true;\r