From 05cf144d683d6553c0c18d6df5225281a415d4f5 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Sun, 15 Oct 2023 08:18:10 -0500 Subject: [PATCH] feat: remove restriction that root assets must be metadata assets. --- 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,