aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-07-07 07:44:25 +0000
committerFilippos Karapetis2009-07-07 07:44:25 +0000
commitc716e43a2bad7fbf7ad6e1ea0594a84cb24ae49b (patch)
tree38efc5afd0a928a3db3fc9e6cbb9d32459f579e2 /engines/sci/sci.cpp
parentb50b5ae5a4d896a0319d661f16641e5b35855b60 (diff)
downloadscummvm-rg350-c716e43a2bad7fbf7ad6e1ea0594a84cb24ae49b.tar.gz
scummvm-rg350-c716e43a2bad7fbf7ad6e1ea0594a84cb24ae49b.tar.bz2
scummvm-rg350-c716e43a2bad7fbf7ad6e1ea0594a84cb24ae49b.zip
- Added auto-detection for EGA graphics. As a result of this, GF_SCI1_EGA has been removed and versions SCI_VERSION_01_EGA and SCI_VERSION_01_VGA have been merged into SCI_VERSION_01
- Simplified the checks for EGA and VGA graphics - Fixed a bug in script_adjust_opcode_formats() - Simplified the code in GfxResManager::getView() a bit svn-id: r42206
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index fb5356ba64..698983acaf 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -43,11 +43,10 @@ namespace Sci {
class GfxDriver;
-const char *versionNames[8] = {
+const char *versionNames[7] = {
"Autodetected",
"SCI0",
- "SCI01 EGA",
- "SCI01 VGA",
+ "SCI01",
"SCI01 VGA ODD",
"SCI1",
"SCI1.1",
@@ -151,9 +150,6 @@ Common::Error SciEngine::run() {
// Verify that we haven't got an invalid game detection entry
if (version < SCI_VERSION_1) {
// SCI0/SCI01
- if (flags & GF_SCI1_EGA) {
- error("This game entry is erroneous. It's marked as SCI0/SCI01, but it has SCI1 flags set");
- }
} else if (version == SCI_VERSION_1) {
// SCI1
@@ -162,10 +158,6 @@ Common::Error SciEngine::run() {
error("This game entry is erroneous. It's marked as SCI1, but it has SCI0 flags set");
}
} else if (version == SCI_VERSION_1_1 || version == SCI_VERSION_32) {
- if (flags & GF_SCI1_EGA) {
- error("This game entry is erroneous. It's marked as SCI1.1/SCI32, but it has SCI1 flags set");
- }
-
if (flags & GF_SCI0_OLD ||
flags & GF_SCI0_OLDGETTIME) {
error("This game entry is erroneous. It's marked as SCI1.1/SCI32, but it has SCI0 flags set");
@@ -218,8 +210,7 @@ Common::Error SciEngine::run() {
// Default config ends
#endif
- bool isVGA = _resmgr->_sciVersion >= SCI_VERSION_01_VGA && !(getFlags() & GF_SCI1_EGA);
- if (gfxop_init(_resmgr->_sciVersion, isVGA, &gfx_state, &gfx_options, _resmgr)) {
+ if (gfxop_init(_resmgr->_sciVersion, &gfx_state, &gfx_options, _resmgr)) {
warning("Graphics initialization failed. Aborting...");
return Common::kUnknownError;
}