[Scummvm-cvs-logs] scummvm master -> 2822df856d2ff4ca730a0a2a12fe9a120e495784

Strangerke Strangerke at scummvm.org
Tue Mar 11 07:33:05 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2822df856d CGE: Remove the useless return value of XCrypt()


Commit: 2822df856d2ff4ca730a0a2a12fe9a120e495784
    https://github.com/scummvm/scummvm/commit/2822df856d2ff4ca730a0a2a12fe9a120e495784
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-03-11T07:31:12+01:00

Commit Message:
CGE: Remove the useless return value of XCrypt()

Changed paths:
    engines/cge/fileio.cpp
    engines/cge/fileio.h



diff --git a/engines/cge/fileio.cpp b/engines/cge/fileio.cpp
index bab01b6..2b1f74d 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 803d6b2..77404fb 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();






More information about the Scummvm-git-logs mailing list