aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-04 13:08:25 +0200
committerEugene Sandulenko2016-08-04 13:08:25 +0200
commitcb195a813bdc710864acfc26130e77a86e264493 (patch)
tree05d611bcd5ca230b746b18f7e68a605b0c60b472 /backends/platform/dc
parenta4d39b23853ed7663051a25a0b414517fe314d6d (diff)
downloadscummvm-rg350-cb195a813bdc710864acfc26130e77a86e264493.tar.gz
scummvm-rg350-cb195a813bdc710864acfc26130e77a86e264493.tar.bz2
scummvm-rg350-cb195a813bdc710864acfc26130e77a86e264493.zip
DC: Fix compilation
Diffstat (limited to 'backends/platform/dc')
-rw-r--r--backends/platform/dc/vmsave.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/backends/platform/dc/vmsave.cpp b/backends/platform/dc/vmsave.cpp
index f71a3bff5b..d896ba1299 100644
--- a/backends/platform/dc/vmsave.cpp
+++ b/backends/platform/dc/vmsave.cpp
@@ -269,16 +269,16 @@ public:
class OutVMSave : public Common::OutSaveFile {
private:
char *buffer;
- int pos, size, committed;
+ int _pos, size, committed;
char filename[16];
bool iofailed;
public:
uint32 write(const void *buf, uint32 cnt);
- virtual int32 pos() const { return pos; }
+ virtual int32 pos() const { return _pos; }
OutVMSave(const char *_filename)
- : pos(0), committed(-1), iofailed(false)
+ : _pos(0), committed(-1), iofailed(false)
{
strncpy(filename, _filename, 16);
buffer = new char[size = MAX_SAVE_SIZE];
@@ -321,14 +321,14 @@ void OutVMSave::finalize()
extern const char *gGameName;
extern Icon icon;
- if (committed >= pos)
+ if (committed >= _pos)
return;
char *data = buffer;
- int len = pos;
+ int len = _pos;
vmsaveResult r = writeSaveGame(gGameName, data, len, filename, icon);
- committed = pos;
+ committed = _pos;
if (r != VMSAVE_OK)
iofailed = true;
displaySaveResult(r);
@@ -387,13 +387,13 @@ bool InVMSave::seek(int32 offs, int whence)
uint32 OutVMSave::write(const void *buf, uint32 cnt)
{
int nbyt = cnt;
- if (pos + nbyt > size) {
- cnt = (size - pos);
+ if (_pos + nbyt > size) {
+ cnt = (size - _pos);
nbyt = cnt;
}
if (nbyt)
- memcpy(buffer + pos, buf, nbyt);
- pos += nbyt;
+ memcpy(buffer + _pos, buf, nbyt);
+ _pos += nbyt;
return cnt;
}