From d7d1a851431a688401178c728e2b27e8da12d4f6 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sat, 19 Mar 2022 12:02:26 +0100 Subject: [PATCH] Restore dialogue autocompletion in the console --- apps/openmw/mwworld/store.cpp | 7 +++++++ apps/openmw/mwworld/store.hpp | 2 ++ 2 files changed, 9 insertions(+) diff --git a/apps/openmw/mwworld/store.cpp b/apps/openmw/mwworld/store.cpp index d35746dfff..1a6fdaf215 100644 --- a/apps/openmw/mwworld/store.cpp +++ b/apps/openmw/mwworld/store.cpp @@ -1072,6 +1072,13 @@ namespace MWWorld return true; } + void Store::listIdentifier(std::vector& list) const + { + list.reserve(list.size() + getSize()); + for (const auto& dialogue : mShared) + list.push_back(dialogue->mId); + } + const MWDialogue::KeywordSearch& Store::getDialogIdKeywordSearch() const { if (mKeywordSearchModFlag) diff --git a/apps/openmw/mwworld/store.hpp b/apps/openmw/mwworld/store.hpp index 1ec51ad5fd..36860f291a 100644 --- a/apps/openmw/mwworld/store.hpp +++ b/apps/openmw/mwworld/store.hpp @@ -474,6 +474,8 @@ namespace MWWorld RecordId load(ESM::ESMReader &esm) override; + void listIdentifier(std::vector &list) const override; + const MWDialogue::KeywordSearch& getDialogIdKeywordSearch() const; };