mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Make Game::set_additional_data_paths() take Vec<PathBuf>, not &[&Path]
This commit is contained in:
+2
-3
@@ -125,9 +125,8 @@ impl Game {
|
||||
&mut self,
|
||||
additional_data_paths: &[&str],
|
||||
) -> Result<(), VerboseError> {
|
||||
self.0
|
||||
.set_additional_data_paths(&strings_to_paths(additional_data_paths))
|
||||
.map_err(Into::into)
|
||||
let paths = additional_data_paths.iter().map(Into::into).collect();
|
||||
self.0.set_additional_data_paths(paths).map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn database(&self) -> Box<Database> {
|
||||
|
||||
Reference in New Issue
Block a user