Add evaluation of active() and many_active() conditions

This commit is contained in:
Oliver Hamlet
2018-10-03 18:31:26 +01:00
parent 8526ca5a83
commit 2e57585787
2 changed files with 104 additions and 0 deletions
+3
View File
@@ -5,6 +5,7 @@ extern crate regex;
#[cfg(test)]
extern crate tempfile;
use std::collections::HashSet;
use std::io;
use std::path::PathBuf;
use std::str;
@@ -61,6 +62,7 @@ impl GameType {
pub struct State {
game_type: GameType,
data_path: PathBuf,
active_plugins: HashSet<String>, // Lowercased plugin filenames.
}
// Compound conditions joined by 'or'
@@ -160,6 +162,7 @@ mod tests {
State {
game_type: GameType::tes4,
data_path: data_path,
active_plugins: HashSet::new(),
}
}