namespace Mf {
+Settings::~Settings()
+{
+ save();
+}
+
Settings& Settings::getInstance()
{
static Settings settings;
if (home)
{
boost::replace_all(path, "$HOME", home);
+
+ //Mf::logDebug("Copying global settings...");
+ //mUserFile = path;
+ //mGlobals.pushCopy();
+ //mScript.set("globals", Script::REGISTRY);
}
if (mScript.doFile(path) != Script::SUCCESS)
{
std::string str;
mScript[-1].get(str);
- logScript("%s", str.c_str());
+ logWarning(str);
mScript.clear();
}
}
}
+void Settings::saveAs(const std::string& filePath)
+{
+ mUserFile = filePath;
+ save();
+}
+
+void Settings::save() const
+{
+}
+
+
} // namepsace Mf
/** vim: set ts=4 sw=4 tw=80: *************************************************/