aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel
diff options
context:
space:
mode:
authorFilippos Karapetis2010-10-13 13:07:16 +0000
committerFilippos Karapetis2010-10-13 13:07:16 +0000
commit681ec592927b8d9a81eed7b1038743bf8e378de2 (patch)
treee78b164f2539b46927207757fae6148f776a25bd /engines/sword25/kernel
parent30ed39e381648154ab18bd5d80f196a77a50eb7c (diff)
downloadscummvm-rg350-681ec592927b8d9a81eed7b1038743bf8e378de2.tar.gz
scummvm-rg350-681ec592927b8d9a81eed7b1038743bf8e378de2.tar.bz2
scummvm-rg350-681ec592927b8d9a81eed7b1038743bf8e378de2.zip
SWORD25: Added a ENABLE_THEORA define inside fmv/theora_decoder.h
This define can be used to disable building of the Theora decoder, and thus makes libtheora optional (therefore resolving an item in the Sword25 TODO). Disabling the Theora decoder will effectively disable the game's videos Note that running the game with the Theora decoder disabled is still untested svn-id: r53416
Diffstat (limited to 'engines/sword25/kernel')
-rw-r--r--engines/sword25/kernel/kernel.cpp2
-rw-r--r--engines/sword25/kernel/kernel.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/sword25/kernel/kernel.cpp b/engines/sword25/kernel/kernel.cpp
index cccfc6ea53..cbe71edcbb 100644
--- a/engines/sword25/kernel/kernel.cpp
+++ b/engines/sword25/kernel/kernel.cpp
@@ -430,12 +430,14 @@ ScriptEngine *Kernel::GetScript() {
// -----------------------------------------------------------------------------
+#ifdef ENABLE_THEORA
/**
* Returns a pointer to the movie player, or NULL if it is not active
*/
MoviePlayer *Kernel::GetFMV() {
return static_cast<MoviePlayer *>(GetService("fmv"));
}
+#endif
// -----------------------------------------------------------------------------
diff --git a/engines/sword25/kernel/kernel.h b/engines/sword25/kernel/kernel.h
index 29cf1b550c..0962957d10 100644
--- a/engines/sword25/kernel/kernel.h
+++ b/engines/sword25/kernel/kernel.h
@@ -55,6 +55,7 @@
#include "sword25/kernel/common.h"
#include "sword25/kernel/window.h"
#include "sword25/kernel/resmanager.h"
+#include "sword25/fmv/theora_decoder.h" // for ENABLE_THEORA
namespace Sword25 {
@@ -200,10 +201,13 @@ public:
* Returns a pointer to the script engine, or NULL if it is not active
*/
ScriptEngine *GetScript();
+
+#ifdef ENABLE_THEORA
/**
* Returns a pointer to the movie player, or NULL if it is not active
*/
MoviePlayer *GetFMV();
+#endif
/**
* Pauses for the specified amount of time