diff options
-rw-r--r-- | engines/wintermute/Base/BRegistry.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/wintermute/Base/BRegistry.cpp b/engines/wintermute/Base/BRegistry.cpp index fcb20ad54f..26d62ff3d0 100644 --- a/engines/wintermute/Base/BRegistry.cpp +++ b/engines/wintermute/Base/BRegistry.cpp @@ -26,17 +26,15 @@ * Copyright (c) 2011 Jan Nedoma
*/
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
-#include <fstream>
#include "engines/wintermute/tinyxml/tinyxml.h"
-#undef FORBIDDEN_SYMBOL_ALLOW_ALL
#include "engines/wintermute/Base/BGame.h"
#include "engines/wintermute/Base/BRegistry.h"
#include "engines/wintermute/utils/PathUtil.h"
#include "engines/wintermute/utils/StringUtil.h"
-#include "engines/wintermute/tinyxml/tinyxml.h"
#include "engines/wintermute/utils/utils.h"
+#include "common/file.h"
+
namespace WinterMute {
//////////////////////////////////////////////////////////////////////////
@@ -218,12 +216,12 @@ void CBRegistry::SaveXml(const AnsiString fileName, PathValueMap &values) { TiXmlPrinter printer;
doc.Accept(&printer);
- std::ofstream stream;
+ Common::DumpFile stream;
stream.open(fileName.c_str());
- if (!stream.is_open()) return;
+ if (!stream.isOpen()) return;
else {
- stream << printer.CStr();
+ stream.write(printer.CStr(), printer.Size());
stream.close();
}
}
|