From 270c9351e28d9b98d029bce8419b733e2604b7a2 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Fri, 14 Feb 2020 12:57:27 +0100 Subject: [PATCH] Print newline after 'config /?' Also, remove unnecesary line breaks and improve formatting a little. --- src/misc/programs.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/misc/programs.cpp b/src/misc/programs.cpp index 0165bcd7..613176da 100644 --- a/src/misc/programs.cpp +++ b/src/misc/programs.cpp @@ -780,7 +780,7 @@ void CONFIG::Run(void) { } first = false; } - return; + } @@ -806,23 +806,23 @@ void PROGRAMS_Init(Section* /*sec*/) { MSG_Add("PROGRAM_CONFIG_FILE_WHICH","Writing config file %s"); // help - MSG_Add("PROGRAM_CONFIG_USAGE","Config tool:\n"\ - "-writeconf or -wc without parameter: write to primary loaded config file.\n"\ - "-writeconf or -wc with filename: write file to config directory.\n"\ - "Use -writelang or -wl filename to write the current language strings.\n"\ - "-r [parameters]\n Restart DOSBox, either using the previous parameters or any that are appended.\n"\ - "-wcp [filename]\n Write config file to the program directory, dosbox.conf or the specified \n filename.\n"\ - "-wcd\n Write to the default config file in the config directory.\n"\ - "-l lists configuration parameters.\n"\ - "-h, -help, -? sections / sectionname / propertyname\n"\ - " Without parameters, displays this help screen. Add \"sections\" for a list of\n sections."\ - " For info about a specific section or property add its name behind.\n"\ - "-axclear clears the autoexec section.\n"\ - "-axadd [line] adds a line to the autoexec section.\n"\ - "-axtype prints the content of the autoexec section.\n"\ - "-securemode switches to secure mode.\n"\ - "-get \"section property\" returns the value of the property.\n"\ - "-set \"section property=value\" sets the value." ); + MSG_Add("PROGRAM_CONFIG_USAGE", "Config tool:\n" + "-writeconf or -wc without parameter: write to primary loaded config file.\n" + "-writeconf or -wc with filename: write file to config directory.\n" + "Use -writelang or -wl filename to write the current language strings.\n" + "-r [parameters]\n Restart DOSBox, either using the previous parameters or any that are appended.\n" + "-wcp [filename]\n Write config file to the program directory, dosbox.conf or the specified \n filename.\n" + "-wcd\n Write to the default config file in the config directory.\n" + "-l lists configuration parameters.\n" + "-h, -help, -? sections / sectionname / propertyname\n" + " Without parameters, displays this help screen. Add \"sections\" for a list of\n sections." + " For info about a specific section or property add its name behind.\n" + "-axclear clears the autoexec section.\n" + "-axadd [line] adds a line to the autoexec section.\n" + "-axtype prints the content of the autoexec section.\n" + "-securemode switches to secure mode.\n" + "-get \"section property\" returns the value of the property.\n" + "-set \"section property=value\" sets the value.\n"); MSG_Add("PROGRAM_CONFIG_HLP_PROPHLP","Purpose of property \"%s\" (contained in section \"%s\"):\n%s\n\nPossible Values: %s\nDefault value: %s\nCurrent value: %s\n"); MSG_Add("PROGRAM_CONFIG_HLP_LINEHLP","Purpose of section \"%s\":\n%s\nCurrent value:\n%s\n"); MSG_Add("PROGRAM_CONFIG_HLP_NOCHANGE","This property cannot be changed at runtime.\n");