fix NetDb save bug, console cyrillic symbols, add files to project

This commit is contained in:
chertov 2014-01-25 10:58:11 +04:00
parent 72fcff35b6
commit bc3bf838d9
4 changed files with 17 additions and 1 deletions

View file

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