From f7acc7f669537210b513559474799e52a04bd528 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 25 Aug 2009 23:15:18 +0000 Subject: Fixed compilation when ENABLE_SCI32 is not set svn-id: r43744 --- engines/sci/engine/kernel32.cpp | 4 ++++ engines/sci/resource.cpp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index eac0007ee3..0c1e35068c 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -27,6 +27,8 @@ namespace Sci { +#ifdef ENABLE_SCI32 + static const char *sci2_default_knames[] = { /*0x00*/ "Load", /*0x01*/ "UnLoad", @@ -356,4 +358,6 @@ void Kernel::setKernelNamesSci21() { _kernelNames = Common::StringList(sci21_default_knames, ARRAYSIZE(sci21_default_knames)); } +#endif // ENABLE_SCI32 + } // End of namespace Sci diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 68186a7501..9943ae0ae1 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -1587,7 +1587,11 @@ SciVersion ResourceManager::detectSciVersion() { } // Set view type - if (viewCompression == kCompDCL || viewCompression == kCompSTACpack) { + if (viewCompression == kCompDCL +#ifdef ENABLE_SCI32 + || viewCompression == kCompSTACpack +#endif + ) { // SCI1.1 VGA views _viewType = kViewVga11; } else { -- cgit v1.2.3