mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Decouple clearing condition cache from evaluating general messages
This commit is contained in:
@@ -52,6 +52,14 @@ bool Database::Evaluate(const std::string& condition) const {
|
||||
}
|
||||
}
|
||||
|
||||
void Database::ClearConditionCache() {
|
||||
try {
|
||||
return database_->clear_condition_cache();
|
||||
} catch (const ::rust::Error& e) {
|
||||
std::rethrow_exception(mapError(e));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> Database::GetKnownBashTags() const {
|
||||
try {
|
||||
return convert<std::string>(database_->known_bash_tags());
|
||||
|
||||
@@ -26,6 +26,8 @@ public:
|
||||
|
||||
bool Evaluate(const std::string& condition) const override;
|
||||
|
||||
void ClearConditionCache() override;
|
||||
|
||||
std::vector<std::string> GetKnownBashTags() const override;
|
||||
|
||||
std::vector<Message> GetGeneralMessages(
|
||||
|
||||
Reference in New Issue
Block a user