1
0
Fork 0

Add intro text to configfile.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2895
This commit is contained in:
Peter Veenstra 2007-06-27 14:51:30 +00:00
parent b15b9575e4
commit 4053f8693e
2 changed files with 10 additions and 2 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dosbox.cpp,v 1.116 2007-06-14 08:23:46 qbix79 Exp $ */
/* $Id: dosbox.cpp,v 1.117 2007-06-27 14:51:30 qbix79 Exp $ */
#include <stdlib.h>
#include <stdarg.h>
@ -236,6 +236,10 @@ static void DOSBOX_RealInit(Section * sec) {
ticksLocked = false;
DOSBOX_SetLoop(&Normal_Loop);
MSG_Init(section);
MSG_Add("CONFIGFILE_INTRO",
"# This is the configurationfile for DOSBox %s.\n"
"# Lines starting with a # are commentlines.\n"
"# They are used to (briefly) document the effect of each option.\n");
MAPPER_AddHandler(DOSBOX_UnlockSpeed, MK_f12, MMOD2,"speedlock","Speedlock");
svgaCard = SVGA_S3Trio;

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: setup.cpp,v 1.39 2007-06-14 08:23:46 qbix79 Exp $ */
/* $Id: setup.cpp,v 1.40 2007-06-27 14:51:30 qbix79 Exp $ */
#include "dosbox.h"
#include "cross.h"
@ -197,6 +197,10 @@ void Config::PrintConfig(char const * const configfilename) const {
char temp[50];char helpline[256];
FILE* outfile=fopen(configfilename,"w+t");
if(outfile==NULL) return;
/* Print start of configfile and add an return to improve readibility. */
fprintf(outfile,MSG_Get("CONFIGFILE_INTRO"),VERSION);
fprintf(outfile,"\n");
for (const_it tel=sectionlist.begin(); tel!=sectionlist.end(); tel++){
/* Print out the Section header */
strcpy(temp,(*tel)->GetName());