aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-03-11 07:31:12 +0100
committerStrangerke2014-03-11 07:31:12 +0100
commit2822df856d2ff4ca730a0a2a12fe9a120e495784 (patch)
treeb83e66835c4021c35419c75359f3804df12c52ea /engines
parent820d96f41cdfe22ad504115057548ab33fdca672 (diff)
downloadscummvm-rg350-2822df856d2ff4ca730a0a2a12fe9a120e495784.tar.gz
scummvm-rg350-2822df856d2ff4ca730a0a2a12fe9a120e495784.tar.bz2
scummvm-rg350-2822df856d2ff4ca730a0a2a12fe9a120e495784.zip
CGE: Remove the useless return value of XCrypt()
Diffstat (limited to 'engines')
-rw-r--r--engines/cge/fileio.cpp4
-rw-r--r--engines/cge/fileio.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/engines/cge/fileio.cpp b/engines/cge/fileio.cpp
index bab01b62d3..2b1f74db02 100644
--- a/engines/cge/fileio.cpp
+++ b/engines/cge/fileio.cpp
@@ -93,13 +93,11 @@ ResourceManager::~ResourceManager() {
delete _buff[i]._page;
}
-uint16 ResourceManager::XCrypt(byte *buf, uint16 length) {
+void ResourceManager::XCrypt(byte *buf, uint16 length) {
byte *b = buf;
for (uint16 i = 0; i < length; i++)
*b++ ^= kCryptSeed;
-
- return kCryptSeed;
}
bool ResourceManager::seek(int32 offs, int whence) {
diff --git a/engines/cge/fileio.h b/engines/cge/fileio.h
index 803d6b2d58..77404fb552 100644
--- a/engines/cge/fileio.h
+++ b/engines/cge/fileio.h
@@ -86,7 +86,7 @@ class ResourceManager {
uint16 catRead(byte *buf, uint16 length);
Common::File *_catFile;
Common::File *_datFile;
- uint16 XCrypt(byte *buf, uint16 length);
+ void XCrypt(byte *buf, uint16 length);
public:
ResourceManager();