From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and
fopen to osgDB::fopen to facilitate support for wide character filenames using UT8 encoding.
This commit is contained in:
@@ -11,10 +11,9 @@
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include <osgDB/FileNameUtils>
|
||||
#include <osgDB/FileUtils>
|
||||
#include <osgDB/fstream>
|
||||
#include <osgDB/Registry>
|
||||
#include <osg/Notify>
|
||||
|
||||
@@ -38,7 +37,7 @@ class ReaderWriterTXF : public osgDB::ReaderWriter
|
||||
std::string fileName = osgDB::findDataFile(file, options);
|
||||
if (fileName.empty()) return ReadResult::FILE_NOT_FOUND;
|
||||
|
||||
std::ifstream stream;
|
||||
osgDB::ifstream stream;
|
||||
stream.open(fileName.c_str(), std::ios::in | std::ios::binary);
|
||||
if (!stream.is_open()) return ReadResult::FILE_NOT_FOUND;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user