aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/dc/vmsave.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/dc/vmsave.cpp b/backends/dc/vmsave.cpp
index 63710a0344..b116b16201 100644
--- a/backends/dc/vmsave.cpp
+++ b/backends/dc/vmsave.cpp
@@ -222,6 +222,7 @@ private:
int pos, size;
uint32 read(void *buf, uint32 cnt);
+ void skip(uint32 offset);
public:
InVMSave()
@@ -327,6 +328,14 @@ uint32 InVMSave::read(void *buf, uint32 cnt)
return cnt;
}
+void InVMSave::skip(uint32 offset)
+{
+ int nbyt = offset;
+ if (pos + nbyt > size)
+ nbyt = (size - pos);
+ pos += nbyt;
+}
+
uint32 OutVMSave::write(const void *buf, uint32 cnt)
{
int nbyt = cnt;