summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-01 14:22:56 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-01 14:22:56 +0200
commit0d5f56cacce4d25b32738e7b57ad6c334c73674b (patch)
tree9dbce72d7133b6b923e189d8dc44d568daa0dd6c /src
parentMerge remote-tracking branch 'upstream/master' (diff)
parentupdate librw (diff)
downloadre3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.tar
re3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.tar.gz
re3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.tar.bz2
re3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.tar.lz
re3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.tar.xz
re3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.tar.zst
re3-0d5f56cacce4d25b32738e7b57ad6c334c73674b.zip
Diffstat (limited to 'src')
-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)