X-Git-Url: https://git.octo.it/?p=supertux.git;a=blobdiff_plain;f=src%2Fphysfs%2Fphysfs_file_system.cpp;h=65ac0677befeec4f9ef75e3d147b1ceb99613854;hp=15d9f768c2a669d3fcbafd5f23ae5f2a337ad23b;hb=c0b5cfa3eadebef8101f87cd593eb221bdef9280;hpb=27b03ae38a4bdc995d41500ce8d3f4bb1b23a76b diff --git a/src/physfs/physfs_file_system.cpp b/src/physfs/physfs_file_system.cpp index 15d9f768c..65ac0677b 100644 --- a/src/physfs/physfs_file_system.cpp +++ b/src/physfs/physfs_file_system.cpp @@ -16,7 +16,7 @@ #include "physfs/physfs_file_system.hpp" -#include "physfs/ifile_stream.hpp" +#include "physfs/buffered_ifile_stream.hpp" PhysFSFileSystem::PhysFSFileSystem() { @@ -40,7 +40,8 @@ PhysFSFileSystem::open_directory(const std::string& pathname) std::unique_ptr PhysFSFileSystem::open_file(const std::string& filename) { - return std::unique_ptr(new IFileStream(filename)); + BufferedIFileStream* stream = new BufferedIFileStream(filename); + return std::unique_ptr(stream->get_stream()); } /* EOF */