Do not call static class methods as if they were instance methods

svn-id: r22172
This commit is contained in:
Max Horn 2006-04-26 08:34:01 +00:00
parent 8bb9ae92ad
commit 8fdcfedf19
2 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ void Disk::dumpFile(uint16 fileNr) {
filePtr = loadFile(fileNr);
sprintf(buf, "dumps/file-%d.dmp", fileNr);
if (!out.exists(buf)) {
if (!Common::File::exists(buf)) {
if (out.open(buf, Common::File::kFileWriteMode))
out.write(filePtr, _lastLoadedFileSize);
}

View File

@ -333,7 +333,7 @@ byte *ResourceManager::openResource(uint32 res, bool dump) {
sprintf(buf, "dumps/%s-%d.dmp", tag, res);
#endif
if (!out.exists(buf)) {
if (!Common::File::exists(buf)) {
if (out.open(buf, Common::File::kFileWriteMode))
out.write(_resList[res].ptr, len);
}