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
|
@ -63,7 +63,14 @@ private:
|
|||
void (* _start_function)(void);
|
||||
bool secure_mode; //Sandbox mode
|
||||
public:
|
||||
Config(CommandLine * cmd):cmdline(cmd),secure_mode(false){}
|
||||
bool initialised;
|
||||
std::vector<std::string> startup_params;
|
||||
std::vector<std::string> configfiles;
|
||||
Config(CommandLine * cmd):cmdline(cmd),secure_mode(false) {
|
||||
startup_params.push_back(cmdline->GetFileName());
|
||||
cmdline->FillVector(startup_params);
|
||||
initialised=false;
|
||||
}
|
||||
~Config();
|
||||
|
||||
Section_line * AddSection_line(char const * const _name,void (*_initfunction)(Section*));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue