Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use std::borrow::Cow;
|
||||
pub mod asset_cache;
|
||||
|
||||
impl AssetProvider for () {
|
||||
fn get(&self, path: &str) -> Result<Cow<'_, [u8]>> {
|
||||
Err(anyhow!(
|
||||
"get called on empty asset provider with \"{}\"",
|
||||
path
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait AssetProvider: 'static {
|
||||
fn get(&self, path: &str) -> Result<Cow<'_, [u8]>>;
|
||||
}
|
||||
Reference in New Issue
Block a user