diff --git a/librashader-presets/src/parse/mod.rs b/librashader-presets/src/parse/mod.rs index 7043d27..adef7e4 100644 --- a/librashader-presets/src/parse/mod.rs +++ b/librashader-presets/src/parse/mod.rs @@ -34,7 +34,7 @@ mod test { #[test] pub fn parse_preset() { let root = - PathBuf::from("test/slang-shaders/bezel/Mega_Bezel/Presets/Base_CRT_Presets/MBZ__3__STD__MEGATRON-NTSC.slangp"); + PathBuf::from("test/slang-shaders/ntsc/ntsc-256px-svideo.slangp"); let basic = Preset::try_parse(root); eprintln!("{:#?}", basic); assert!(basic.is_ok()); diff --git a/librashader-presets/src/parse/preset.rs b/librashader-presets/src/parse/preset.rs index 4c1a259..6a4c59c 100644 --- a/librashader-presets/src/parse/preset.rs +++ b/librashader-presets/src/parse/preset.rs @@ -72,12 +72,12 @@ pub fn resolve_values(mut values: Vec) -> Preset { }); let mut scale_type_x = shader_values.iter().find_map(|f| match f { - Value::ScaleType(_, value) => Some(*value), + Value::ScaleTypeX(_, value) => Some(*value), _ => None, }); let mut scale_type_y = shader_values.iter().find_map(|f| match f { - Value::ScaleType(_, value) => Some(*value), + Value::ScaleTypeY(_, value) => Some(*value), _ => None, });