aboutsummaryrefslogtreecommitdiff
path: root/gui/predictivedialog.cpp
diff options
context:
space:
mode:
authorCameron Cawley2017-11-14 23:01:32 +0000
committerEugene Sandulenko2018-04-07 09:30:07 +0200
commita8735448407d2e88d4c6b5fe169237b4eac9b73c (patch)
tree94100a9e4019d60729d8762ee733c116d69a7e18 /gui/predictivedialog.cpp
parent9111998c49958646a9216548b9c886136afd7c14 (diff)
downloadscummvm-rg350-a8735448407d2e88d4c6b5fe169237b4eac9b73c.tar.gz
scummvm-rg350-a8735448407d2e88d4c6b5fe169237b4eac9b73c.tar.bz2
scummvm-rg350-a8735448407d2e88d4c6b5fe169237b4eac9b73c.zip
DS: Fix building with AGI engine disabled
Diffstat (limited to 'gui/predictivedialog.cpp')
-rw-r--r--gui/predictivedialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp
index 5650fd8e94..b01e4950d5 100644
--- a/gui/predictivedialog.cpp
+++ b/gui/predictivedialog.cpp
@@ -35,7 +35,7 @@
#include "common/file.h"
#include "common/savefile.h"
-#ifdef __DS__
+#if defined(__DS__) && defined(ENABLE_AGI)
#include "backends/platform/ds/arm9/source/wordcompletion.h"
#endif
@@ -945,7 +945,7 @@ void PredictiveDialog::loadDictionary(Common::SeekableReadStream *in, Dict &dict
while ((ptr = strchr(ptr, '\n'))) {
*ptr = 0;
ptr++;
-#ifdef __DS__
+#if defined(__DS__) && defined(ENABLE_AGI)
// Pass the line on to the DS word list
DS::addAutoCompleteLine(dict.dictLine[i - 1]);
#endif
@@ -960,7 +960,7 @@ void PredictiveDialog::loadDictionary(Common::SeekableReadStream *in, Dict &dict
// FIXME: We use binary search on _predictiveDict.dictLine, yet we make no at_tempt
// to ever sort this array (except for the DS port). That seems risky, doesn't it?
-#ifdef __DS__
+#if defined(__DS__) && defined(ENABLE_AGI)
// Sort the DS word completion list, to allow for a binary chop later (in the ds backend)
DS::sortAutoCompleteWordList();
#endif