*/
#include <fstream>
-#include <msp/core/error.h>
+#include <msp/core/except.h>
#include <msp/path/utils.h>
#include <msp/time/utils.h>
#include "builder.h"
void Config::save() const
{
- Path::Path fn=package.get_source()/".options.cache";
+ Path fn=package.get_source()/".options.cache";
OptionMap::const_iterator i=options.find("profile");
if(i!=options.end())
void Config::load()
{
- Path::Path fn=package.get_source()/".options.cache";
+ Path fn=package.get_source()/".options.cache";
OptionMap::iterator i=options.find("profile");
if(i!=options.end())
ifstream in(fn.str().c_str());
if(!in) return;
- struct stat st;
- Path::stat(fn, st);
- mtime=Time::TimeStamp::from_unixtime(st.st_mtime);
+ mtime=Time::TimeStamp::from_unixtime(stat(fn).st_mtime);
DataFile::Parser parser(in, fn.str());
Loader loader(*this);