aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hugo/display.cpp2
-rw-r--r--engines/hugo/file.cpp43
-rw-r--r--engines/hugo/file.h3
-rw-r--r--engines/hugo/hugo.cpp15
-rw-r--r--engines/hugo/parser.cpp3
5 files changed, 2 insertions, 64 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index b86b1f0366..fbe39b3a0c 100644
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -488,7 +488,7 @@ void Screen::userHelp() const {
"F5 - Restore game\n"
"F6 - Inventory\n"
"F8 - Turbo button\n"
- "F9 - Boss button\n\n"
+ "\n"
"ESC - Return to game");
}
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp
index 5556f5abc0..15ee06c82a 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
*/
diff --git a/engines/hugo/file.h b/engines/hugo/file.h
index e4aa7f7fec..1438bd2054 100644
--- a/engines/hugo/file.h
+++ b/engines/hugo/file.h
@@ -123,9 +123,6 @@ protected:
private:
byte *convertPCC(byte *p, const uint16 y, const uint16 bpl, ImagePtr dataPtr) const;
UifHdr *getUIFHeader(const Uif id);
-
-//Strangerke : Not used?
- void printBootText();
};
class FileManager_v1d : public FileManager {
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp
index f2db630198..9d28e0ac69 100644
--- a/engines/hugo/hugo.cpp
+++ b/engines/hugo/hugo.cpp
@@ -541,19 +541,6 @@ void HugoEngine::initStatus() {
// Initialize every start of new game
_status._tick = 0; // Tick count
_status._viewState = kViewIdle; // View state
-
-// Strangerke - Suppress as related to playback
-// _status._recordFl = false; // Not record mode
-// _status._playbackFl = false; // Not playback mode
-// Strangerke - Not used ?
-// _status._mmtime = false; // Multimedia timer support
-// _status._helpFl = false; // Not calling WinHelp()
-// _status._demoFl = false; // Not demo mode
-// _status._path[0] = 0; // Path to write files
-// _status._screenWidth = 0; // Desktop screen width
-// _status._saveTick = 0; // Time of last save
-// _status._saveSlot = 0; // Slot to save/restore game
-// _status._textBoxFl = false; // Not processing a text box
}
/**
@@ -566,7 +553,7 @@ void HugoEngine::initConfig() {
_config._soundFl = true; // Sound state initially on
_config._turboFl = false; // Turbo state initially off
initPlaylist(_config._playlist); // Initialize default tune playlist
- _file->readBootFile(); // Read startup structure
+ _file->readBootFile(); // Read startup structure
}
/**
diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp
index d18cc2181c..5fdb2026a7 100644
--- a/engines/hugo/parser.cpp
+++ b/engines/hugo/parser.cpp
@@ -362,9 +362,6 @@ void Parser::keyHandler(Common::Event event) {
case Common::KEYCODE_F8: // Turbo mode
switchTurbo();
break;
- case Common::KEYCODE_F9: // Boss button
- warning("STUB: F9 (DOS) - BossKey");
- break;
default: // Any other key
if (!gameStatus._storyModeFl) { // Keyboard disabled
// Add printable keys to ring buffer