From 657522248ea28b9cbb14f4cf53ff62857eb5034d Mon Sep 17 00:00:00 2001 From: Zicklag Date: Sun, 15 Oct 2023 13:44:32 +0000 Subject: [PATCH] feat: remove restriction that root assets must be metadata assets. (#236) --- framework_crates/bones_asset/src/server.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/framework_crates/bones_asset/src/server.rs b/framework_crates/bones_asset/src/server.rs index 2d96689276..d94c743400 100644 --- a/framework_crates/bones_asset/src/server.rs +++ b/framework_crates/bones_asset/src/server.rs @@ -328,13 +328,6 @@ impl AssetServer { ); } - if !path_is_metadata(&meta.root) { - anyhow::bail!( - "Root asset must be a JSON or YAML file with a name in the form: \ - [filename].[asset_kind].[yaml|json]" - ); - } - // Load the asset and produce a handle let root_loc = AssetLocRef { path: &meta.root, @@ -372,13 +365,6 @@ impl AssetServer { .context("Could not load pack file")?; let meta: CorePackfileMeta = serde_yaml::from_slice(&packfile_contents)?; - if !path_is_metadata(&meta.root) { - anyhow::bail!( - "Root asset must be a JSON or YAML file with a name in the form: \ - [filename].[asset_kind].[yaml|json]" - ); - } - // Load the asset and produce a handle let root_loc = AssetLocRef { path: &meta.root,