[Scummvm-cvs-logs] scummvm master -> 6e11720e298805904181656b282b217cacc3675a
Strangerke
Strangerke at scummvm.org
Mon Jun 18 21:28:37 CEST 2012
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:
6e11720e29 HUGO: Missing file in previous commit
Commit: 6e11720e298805904181656b282b217cacc3675a
https://github.com/scummvm/scummvm/commit/6e11720e298805904181656b282b217cacc3675a
Author: Strangerke (strangerke at scummvm.org)
Date: 2012-06-18T12:27:58-07:00
Commit Message:
HUGO: Missing file in previous commit
Changed paths:
engines/hugo/file.cpp
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp
index 5556f5a..15ee06c 100644
--- a/engines/hugo/file.cpp
+++ b/engines/hugo/file.cpp
@@ -523,49 +523,6 @@ bool FileManager::restoreGame(const int16 slot) {
}
/**
- * Read the encrypted text from the boot file and print it
- */
-void FileManager::printBootText() {
- debugC(1, kDebugFile, "printBootText()");
-
- Common::File ofp;
- if (!ofp.open(getBootFilename())) {
- if (_vm->getPlatform() == Common::kPlatformPC) {
- //TODO initialize properly _boot structure
- warning("printBootText - Skipping as Dos versions may be a freeware or shareware");
- return;
- } else {
- Utils::notifyBox(Common::String::format("Missing startup file '%s'", getBootFilename()));
- _vm->getGameStatus()._doQuitFl = true;
- return;
- }
- }
-
- // Allocate space for the text and print it
- char *buf = (char *)malloc(_vm->_boot._exitLen + 1);
- if (buf) {
- // Skip over the boot structure (already read) and read exit text
- ofp.seek((long)sizeof(_vm->_boot), SEEK_SET);
- if (ofp.read(buf, _vm->_boot._exitLen) != (size_t)_vm->_boot._exitLen) {
- Utils::notifyBox(Common::String::format("Error while reading startup file '%s'", getBootFilename()));
- _vm->getGameStatus()._doQuitFl = true;
- return;
- }
-
- // Decrypt the exit text, using CRYPT substring
- int i;
- for (i = 0; i < _vm->_boot._exitLen; i++)
- buf[i] ^= s_bootCypher[i % s_bootCypherLen];
-
- buf[i] = '\0';
- Utils::notifyBox(buf);
- }
-
- free(buf);
- ofp.close();
-}
-
-/**
* Reads boot file for program environment. Fatal error if not there or
* file checksum is bad. De-crypts structure while checking checksum
*/
More information about the Scummvm-git-logs
mailing list