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
|
|
@ -122,6 +122,19 @@ void Cross::CreateDir(std::string const& in) {
|
|||
#endif
|
||||
}
|
||||
|
||||
bool Cross::IsPathAbsolute(std::string const& in) {
|
||||
// Absolute paths
|
||||
#if defined (WIN32) || defined(OS2)
|
||||
// drive letter
|
||||
if (in.size() > 2 && in[1] == ':' ) return true;
|
||||
// UNC path
|
||||
else if (in.size() > 2 && in[0]=='\\' && in[1]=='\\') return true;
|
||||
#else
|
||||
if (in.size() > 1 && in[0] == '/' ) return true;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined (WIN32)
|
||||
|
||||
dir_information* open_directory(const char* dirname) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue