Commits

Anonymous committed 07b78b0

default to save config file in ui-console front-end

  • Participants
  • Parent commits 68177ae

Comments (0)

Files changed (1)

 
 static int  *l_TestShotList = NULL;      // list of screenshots to take for regression test support
 static int   l_TestShotIdx = 0;          // index of next screenshot frame in list
-static int   l_SaveOptions = 0;          // save command-line options in configuration file
+static int   l_SaveOptions = 1;          // save command-line options in configuration file (enabled by default)
 static int   l_CoreCompareMode = 0;      // 0 = disable, 1 = send, 2 = receive
 
 static eCheatMode l_CheatMode = CHEAT_DISABLE;
            "    --set (param-spec)    : set a configuration variable, format: ParamSection[ParamName]=Value\n"
            "    --core-compare-send   : use the Core Comparison debugging feature, in data sending mode\n"
            "    --core-compare-recv   : use the Core Comparison debugging feature, in data receiving mode\n"
-           "    --saveoptions         : save the given command-line options in configuration file for future\n"
+           "    --nosaveoptions       : do not save the given command-line options in configuration file\n"
            "    --verbose             : print lots of information\n"
            "    --help                : see this help message\n\n"
            "(plugin-spec):\n"
         {
             l_CoreCompareMode = 2;
         }
-        else if (strcmp(argv[i], "--saveoptions") == 0)
+        else if (strcmp(argv[i], "--nosaveoptions") == 0)
         {
-            l_SaveOptions = 1;
+            l_SaveOptions = 0;
         }
         else if (ArgsLeft == 0)
         {
     /* close the ROM image */
     (*CoreDoCommand)(M64CMD_ROM_CLOSE, 0, NULL);
 
-    /* save the configuration file again if --saveoptions was specified, to keep any updated parameters from the core/plugins */
+    /* save the configuration file again if --nosaveoptions was not specified, to keep any updated parameters from the core/plugins */
     if (l_SaveOptions)
         SaveConfigurationOptions();