#include "physfs/ofile_stream.hpp"
-#include "physfs/ofile_streambuf.hpp"
-
-OFileStream::OFileStream(const std::string& filename) :
- std::ostream(new OFileStreambuf(filename))
+OFileStream::OFileStream(OFileStreambuf* buf) :
+ std::ostream(buf)
{
}