[Scummvm-cvs-logs] SF.net SVN: scummvm:[52187] scummvm/trunk/engines/hugo/file.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Wed Aug 18 17:33:59 CEST 2010
Revision: 52187
http://scummvm.svn.sourceforge.net/scummvm/?rev=52187&view=rev
Author: strangerke
Date: 2010-08-18 15:33:59 +0000 (Wed, 18 Aug 2010)
Log Message:
-----------
No longer error when BSF file is not found in H1 Dos, as it may be a freeware version.
Modified Paths:
--------------
scummvm/trunk/engines/hugo/file.cpp
Modified: scummvm/trunk/engines/hugo/file.cpp
===================================================================
--- scummvm/trunk/engines/hugo/file.cpp 2010-08-18 14:12:09 UTC (rev 52186)
+++ scummvm/trunk/engines/hugo/file.cpp 2010-08-18 15:33:59 UTC (rev 52187)
@@ -746,7 +746,12 @@
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 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list