moved save to file to RI

This commit is contained in:
orignal 2014-07-10 15:33:42 -04:00
parent 4de9ed80af
commit ad65e52ce0
5 changed files with 17 additions and 10 deletions

View file

@ -307,8 +307,7 @@ namespace data
{
if (it.second->IsUpdated ())
{
std::ofstream r (GetFilePath(fullDirectory, it.second), std::ofstream::binary);
r.write ((char *)it.second->GetBuffer (), it.second->GetBufferLen ());
it.second->SaveToFile (GetFilePath(fullDirectory, it.second));
it.second->SetUpdated (false);
count++;
}