summaryrefslogtreecommitdiffstats
path: root/src/fakerw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-01 14:22:23 +0200
committeraap <aap@papnet.eu>2020-05-01 14:22:23 +0200
commit1ef67aee22f894468e5479a9d0c0a5b361e5bb22 (patch)
tree9ae8120d46611e67a09b601ff25fd1060130da76 /src/fakerw
parentMerge pull request #499 from aap/master (diff)
downloadre3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.tar
re3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.tar.gz
re3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.tar.bz2
re3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.tar.lz
re3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.tar.xz
re3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.tar.zst
re3-1ef67aee22f894468e5479a9d0c0a5b361e5bb22.zip
Diffstat (limited to 'src/fakerw')
-rw-r--r--src/fakerw/fake.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index 113c4519..d2547815 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -392,8 +392,8 @@ RwStream *RwStreamOpen(RwStreamType type, RwStreamAccessType accessType, const v
}
}
RwBool RwStreamClose(RwStream * stream, void *pData) { stream->close(); rwFree(stream); return true; }
-RwUInt32 RwStreamRead(RwStream * stream, void *buffer, RwUInt32 length) { return stream->read(buffer, length); }
-RwStream *RwStreamWrite(RwStream * stream, const void *buffer, RwUInt32 length) { stream->write(buffer, length); return stream; }
+RwUInt32 RwStreamRead(RwStream * stream, void *buffer, RwUInt32 length) { return stream->read8(buffer, length); }
+RwStream *RwStreamWrite(RwStream * stream, const void *buffer, RwUInt32 length) { stream->write8(buffer, length); return stream; }
RwStream *RwStreamSkip(RwStream * stream, RwUInt32 offset) { stream->seek(offset); return stream; }
RwBool RwStreamFindChunk(RwStream *stream, RwUInt32 type, RwUInt32 *lengthOut, RwUInt32 *versionOut)