Skip to content

Commit

Permalink
CGE: Remove the useless return value of XCrypt()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Mar 11, 2014
1 parent 820d96f commit 2822df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions engines/cge/fileio.cpp
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion engines/cge/fileio.h
Expand Up @@ -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();
Expand Down

0 comments on commit 2822df8

Please sign in to comment.