Skip to content

Commit

Permalink
Allow inclusion of files from the index that were referenced from out…
Browse files Browse the repository at this point in the history
…side the worlds folder
  • Loading branch information
Eijebong committed May 25, 2024
1 parent 882cfa5 commit 9e43876
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/apworlds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,14 @@ fn download_all<'a>(
.worlds
.values()
.any(|world| world.dependencies.contains(&file_name));
let is_required_file = index.common.required_global_files.contains(&file_name);
let is_required_file = index
.common
.required_global_files
.iter()
.filter_map(|dep| Path::new(dep).file_name())
.map(|s| s.to_string_lossy().to_string())
.collect::<Vec<_>>()
.contains(&file_name);

is_world || is_dependency || is_required_file
})?;
Expand Down

0 comments on commit 9e43876

Please sign in to comment.