diff options
author | Max Horn | 2009-11-23 23:17:50 +0000 |
---|---|---|
committer | Max Horn | 2009-11-23 23:17:50 +0000 |
commit | fc84e258b29dc441f63dd53abd4cd494e03e4463 (patch) | |
tree | e790ac09ad7a77c8df7611063f6281bec5a639e8 /backends/fs/ps2 | |
parent | 9b8c088af5c56366f176fee334f636f40b1b156d (diff) | |
download | scummvm-rg350-fc84e258b29dc441f63dd53abd4cd494e03e4463.tar.gz scummvm-rg350-fc84e258b29dc441f63dd53abd4cd494e03e4463.tar.bz2 scummvm-rg350-fc84e258b29dc441f63dd53abd4cd494e03e4463.zip |
PS2: Add new PS2FileStream class for std I/O.
* Add new class PS2FileStream as substitute for class StdioStream on PS2
* Remove PS2 specific hacks from stdiostream.cpp / class StdioStream
* Remove various ps2_f*() wrapper funcs, merging them into PS2FileStream
TODO: Merge class Ps2File into PS2FileStream
svn-id: r46111
Diffstat (limited to 'backends/fs/ps2')
-rw-r--r-- | backends/fs/ps2/ps2-fs.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/fs/ps2/ps2-fs.cpp b/backends/fs/ps2/ps2-fs.cpp index c8d27e4890..0968ecc9d3 100644 --- a/backends/fs/ps2/ps2-fs.cpp +++ b/backends/fs/ps2/ps2-fs.cpp @@ -23,11 +23,9 @@ */ #include "backends/fs/abstract-fs.h" -#include "backends/fs/stdiostream.h" #include <kernel.h> #include <stdio.h> #include <stdlib.h> -#include <unistd.h> #include "backends/platform/ps2/asyncfio.h" #include "backends/platform/ps2/fileio.h" #include "backends/platform/ps2/systemps2.h" @@ -504,10 +502,10 @@ const char *Ps2FilesystemNode::getDeviceDescription() const { } Common::SeekableReadStream *Ps2FilesystemNode::createReadStream() { - Common::SeekableReadStream *ss = StdioStream::makeFromPath(getPath().c_str(), false); + Common::SeekableReadStream *ss = PS2FileStream::makeFromPath(getPath().c_str(), false); return ss; } Common::WriteStream *Ps2FilesystemNode::createWriteStream() { - return StdioStream::makeFromPath(getPath().c_str(), true); + return PS2FileStream::makeFromPath(getPath().c_str(), true); } |