[no]Bug in IFileSystem::createAndOpenFile || IReadFile
Posted: Mon Mar 12, 2018 9:21 pm
Hi, I load a file two different ways. Irrlicht has exponents tacked onto the end. Must have happened in openFile or ReadFile. Not sure. But it makes the irrlicht file loader unusable for me.
The log:
Code: Select all
io::IReadFile* ini = filesystem->createAndOpenFile(io::path("C:/Users/cool_/Documents/VisualStudio2017Projects/GoldenAgeClient/x64/Assets/ini.txt"));
char* buffer = (char*) malloc(ini->getSize());
ini->read(buffer, ini->getSize());
stringstream ss;
ss << buffer;
cout << ss.str() << endl;
ifstream t("C:/Users/cool_/Documents/VisualStudio2017Projects/GoldenAgeClient/x64/Assets/ini.txt");
stringstream buf;
buf << t.rdbuf();
cout << buf.str() << endl;
#This should be set to your "Assets" folder
WorkingDirectory = C:/Users/cool_/Documents/VisualStudio2017Projects/GoldenAgeClient/x64/Assets²²²²
#This should be set to your "Assets" folder
WorkingDirectory = C:/Users/cool_/Documents/VisualStudio2017Projects/GoldenAgeClient/x64/Assets