diff --git a/src/dosbox.cpp b/src/dosbox.cpp index ec935eb4..4ef0f46f 100644 --- a/src/dosbox.cpp +++ b/src/dosbox.cpp @@ -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 #include @@ -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; diff --git a/src/misc/setup.cpp b/src/misc/setup.cpp index 139f44e9..ace47e87 100644 --- a/src/misc/setup.cpp +++ b/src/misc/setup.cpp @@ -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());