aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorArnaud Boutonné2010-08-18 15:33:59 +0000
committerArnaud Boutonné2010-08-18 15:33:59 +0000
commitab5bb86e207c3af61d713d72121232a7ac1dd3bc (patch)
tree210e1f94f53c8f4e6f3ef7817ac4a410e769011b /engines
parent3b81b301716bd2426eb455db254f085c94cc66ce (diff)
downloadscummvm-rg350-ab5bb86e207c3af61d713d72121232a7ac1dd3bc.tar.gz
scummvm-rg350-ab5bb86e207c3af61d713d72121232a7ac1dd3bc.tar.bz2
scummvm-rg350-ab5bb86e207c3af61d713d72121232a7ac1dd3bc.zip
No longer error when BSF file is not found in H1 Dos, as it may be a freeware version.
svn-id: r52187
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/file.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp
index 672051fe2b..487f331039 100644
--- a/engines/hugo/file.cpp
+++ b/engines/hugo/file.cpp
@@ -746,7 +746,12 @@ void FileManager::printBootText() {
debugC(1, kDebugFile, "printBootText");
if (!ofp.open(BOOTFILE))
- Utils::Error(FILE_ERR, BOOTFILE);
+ if (_vm._gameVariant == 3) {
+ //TODO initialize properly _boot structure
+ warning("printBootText - Skipping as H1 Dos may be a freeware");
+ return;
+ } else
+ Utils::Error(FILE_ERR, BOOTFILE);
// Allocate space for the text and print it
buf = (char *)malloc(_boot.exit_len + 1);
@@ -781,7 +786,12 @@ void FileManager::readBootFile() {
debugC(1, kDebugFile, "readBootFile");
if (!ofp.open(BOOTFILE))
- Utils::Error(FILE_ERR, BOOTFILE);
+ if (_vm._gameVariant == 3) {
+ //TODO initialize properly _boot structure
+ warning("readBootFile - Skipping as H1 Dos may be a freeware");
+ return;
+ } else
+ Utils::Error(FILE_ERR, BOOTFILE);
if (ofp.size() < (int32)sizeof(_boot))
Utils::Error(FILE_ERR, BOOTFILE);