Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 16, 2014
1 parent 9f3672c commit 56d3bf3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doomsday/libcore/src/core/config.cpp
Expand Up @@ -66,6 +66,12 @@ DENG2_PIMPL_NOREF(Config)
catch(...)
{}
}

void write()
{
if(configPath.isEmpty()) return;
refuge.write();
}
};

Config::Config(Path const &path) : RecordAccessor(0), d(new Instance(path))
Expand Down Expand Up @@ -173,9 +179,7 @@ void Config::read()

void Config::write() const
{
if(d->configPath.isEmpty()) return;

d->refuge.write();
d->write();
}

Record &Config::names()
Expand Down

0 comments on commit 56d3bf3

Please sign in to comment.