fmt
This commit is contained in:
parent
d7cb093a1a
commit
43437eabf6
3 changed files with 9 additions and 5 deletions
|
|
@ -906,7 +906,12 @@ pub mod slot_policy {
|
|||
}
|
||||
Policies {
|
||||
slot_policies: policies,
|
||||
blanket_slot_policy: Policy::from_name(&SETTINGS.default_base_policy().map(|p| p).unwrap_or_else(|| "XXOO".to_owned())),
|
||||
blanket_slot_policy: Policy::from_name(
|
||||
&SETTINGS
|
||||
.default_base_policy()
|
||||
.map(|p| p)
|
||||
.unwrap_or_else(|| "XXOO".to_owned()),
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ impl ScriptStore {
|
|||
let mut scripts: HashedMap<SmartString<LazyCompact>, ScriptRecord> = Default::default();
|
||||
let mut file = PathBuf::from(GetRuntimeDirectory().to_string());
|
||||
file.push("Data\\SKSE\\Plugins\\");
|
||||
let filename_regex =
|
||||
Regex::new(r"SkyrimOutfitSystem_PolicyScript_(\w+).rhai").expect("Failed to compile regex");
|
||||
let filename_regex = Regex::new(r"SkyrimOutfitSystem_PolicyScript_(\w+).rhai")
|
||||
.expect("Failed to compile regex");
|
||||
for file in std::fs::read_dir(file)? {
|
||||
if scripts.len() >= 127 {
|
||||
log::warn!("You have reached or exceeded the maximum number of scripts (the limit is 127).");
|
||||
|
|
|
|||
|
|
@ -41,8 +41,7 @@ impl Settings {
|
|||
}
|
||||
|
||||
pub fn default_base_policy(&self) -> Option<String> {
|
||||
self.ini
|
||||
.get("Customization", "NewOutfitDefaultBasePolicy")
|
||||
self.ini.get("Customization", "NewOutfitDefaultBasePolicy")
|
||||
}
|
||||
|
||||
pub fn should_set_default_per_slot_policy(&self) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue