Add new features to the config command for control of the config file:
- manipulate the autoexec section - display information on sections and values - show the used config files and startup command line parameters - restart capability - save config files either in the config or program directory Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3651
This commit is contained in:
parent
0d7b792d05
commit
143beec6b1
15 changed files with 847 additions and 248 deletions
|
@ -124,13 +124,14 @@ const char * MSG_Get(char const * msg) {
|
|||
}
|
||||
|
||||
|
||||
void MSG_Write(const char * location) {
|
||||
bool MSG_Write(const char * location) {
|
||||
FILE* out=fopen(location,"w+t");
|
||||
if(out==NULL) return;//maybe an error?
|
||||
if(out==NULL) return false;//maybe an error?
|
||||
for(itmb tel=Lang.begin();tel!=Lang.end();tel++){
|
||||
fprintf(out,":%s\n%s\n.\n",(*tel).name.c_str(),(*tel).val.c_str());
|
||||
}
|
||||
fclose(out);
|
||||
return true;
|
||||
}
|
||||
|
||||
void MSG_Init(Section_prop * section) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue