DS: Fix building with AGI engine disabled
This commit is contained in:
parent
9111998c49
commit
a873544840
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@
|
||||||
#include "common/file.h"
|
#include "common/file.h"
|
||||||
#include "common/savefile.h"
|
#include "common/savefile.h"
|
||||||
|
|
||||||
#ifdef __DS__
|
#if defined(__DS__) && defined(ENABLE_AGI)
|
||||||
#include "backends/platform/ds/arm9/source/wordcompletion.h"
|
#include "backends/platform/ds/arm9/source/wordcompletion.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -945,7 +945,7 @@ void PredictiveDialog::loadDictionary(Common::SeekableReadStream *in, Dict &dict
|
||||||
while ((ptr = strchr(ptr, '\n'))) {
|
while ((ptr = strchr(ptr, '\n'))) {
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
ptr++;
|
ptr++;
|
||||||
#ifdef __DS__
|
#if defined(__DS__) && defined(ENABLE_AGI)
|
||||||
// Pass the line on to the DS word list
|
// Pass the line on to the DS word list
|
||||||
DS::addAutoCompleteLine(dict.dictLine[i - 1]);
|
DS::addAutoCompleteLine(dict.dictLine[i - 1]);
|
||||||
#endif
|
#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
|
// 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?
|
// 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)
|
// Sort the DS word completion list, to allow for a binary chop later (in the ds backend)
|
||||||
DS::sortAutoCompleteWordList();
|
DS::sortAutoCompleteWordList();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue