diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/ds/ds-fs.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp index d977483852..f52bf6f501 100644 --- a/backends/fs/ds/ds-fs.cpp +++ b/backends/fs/ds/ds-fs.cpp @@ -201,11 +201,11 @@ AbstractFSNode *DSFileSystemNode::getParent() const { } Common::SeekableReadStream *DSFileSystemNode::createReadStream() { - return DSFileStream::makeFromPath(getPath().c_str(), false); + return DSFileStream::makeFromPath(getPath(), false); } Common::WriteStream *DSFileSystemNode::createWriteStream() { - return DSFileStream::makeFromPath(getPath().c_str(), true); + return DSFileStream::makeFromPath(getPath(), true); } ////////////////////////////////////////////////////////////////////////// @@ -381,12 +381,12 @@ Common::SeekableReadStream *GBAMPFileSystemNode::createReadStream() { if (!strncmp(getPath().c_str(), "mp:/", 4)) { return DSFileStream::makeFromPath(getPath().c_str() + 3, false); } else { - return DSFileStream::makeFromPath(getPath().c_str(), false); + return DSFileStream::makeFromPath(getPath(), false); } } Common::WriteStream *GBAMPFileSystemNode::createWriteStream() { - return DSFileStream::makeFromPath(getPath().c_str(), true); + return DSFileStream::makeFromPath(getPath(), true); } @@ -477,8 +477,6 @@ DSFileStream *DSFileStream::makeFromPath(const Common::String &path, bool writeM } - - // Stdio replacements enum { MAX_FILE_HANDLES = 32 |