-/*] Copyright (c) 2009-2010, Charles McGarvey [**************************
+/*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
**] All rights reserved.
*
-* vi:ts=4 sw=4 tw=75
-*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
-**************************************************************************/
+*****************************************************************************/
#include <stlplus/portability/file_system.hpp>
save();
}
-
void settings::parse_args(int argc, char* argv[])
{
for (int i = 1; i < argc; ++i)
}
}
-
void settings::load_files(const std::string& path)
{
std::vector<std::string> paths;
boost::split(paths, path, boost::is_any_of(":"));
-
load_files(paths);
}
boost::replace_all(*it, "$HOME", home);
//logDebug("Copying global settings...");
- //mUserFile = *it;
+ //userfile_ = *it;
//mGlobals.push_copy();
//script_.set("globals", script::registry_index);
}
-
if (script_.do_file(*it) != script::success)
{
std::string str;
}
}
-
void settings::clear()
{
script_.reset();
}
-
void settings::save_as(const std::string& path)
{
- mUserFile = path;
+ userfile_ = path;
save();
}