Skip to content

Commit

Permalink
Add new whitelisted globs
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamVenner committed Sep 27, 2023
1 parent 24c6dc5 commit df66247
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fastgmad-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastgmad-bin"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["William Venner <william@venner.io>"]
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion fastgmad-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastgmad"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["William Venner <william@venner.io>"]
license = "MIT OR Apache-2.0"
Expand Down
18 changes: 18 additions & 0 deletions fastgmad-lib/src/whitelist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const ADDON_WHITELIST: &[&str] = &[
"scripts/vehicles/*.txt",
"resource/localization/*/*.properties",
"maps/*.bsp",
"maps/*.lmp",
"maps/*.nav",
"maps/*.ain",
"maps/thumb/*.png",
Expand All @@ -20,6 +21,7 @@ const ADDON_WHITELIST: &[&str] = &[
"materials/*.png",
"materials/*.jpg",
"materials/*.jpeg",
"materials/colorcorrection/*.raw",
"models/*.mdl",
"models/*.vtx",
"models/*.phy",
Expand All @@ -46,6 +48,7 @@ const ADDON_WHITELIST: &[&str] = &[
"gamemodes/*/content/materials/*.png",
"gamemodes/*/content/materials/*.jpg",
"gamemodes/*/content/materials/*.jpeg",
"gamemodes/*/content/materials/colorcorrection/*.raw",
"gamemodes/*/content/scenes/*.vcd",
"gamemodes/*/content/particles/*.pcf",
"gamemodes/*/content/resource/fonts/*.ttf",
Expand All @@ -58,6 +61,21 @@ const ADDON_WHITELIST: &[&str] = &[
"gamemodes/*/content/sound/*.wav",
"gamemodes/*/content/sound/*.mp3",
"gamemodes/*/content/sound/*.ogg",
"data_static/*.txt",
"data_static/*.dat",
"data_static/*.json",
"data_static/*.xml",
"data_static/*.csv",
"data_static/*.dem",
"data_static/*.vcd",
"data_static/*.vtf",
"data_static/*.vmt",
"data_static/*.png",
"data_static/*.jpg",
"data_static/*.jpeg",
"data_static/*.mp3",
"data_static/*.wav",
"data_static/*.ogg",
];

const WILD_BYTE: u8 = b'*';
Expand Down

0 comments on commit df66247

Please sign in to comment.