From be3a5782fcfbcbd8498674ba80538db61fd40512 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Mon, 9 Sep 2024 21:15:35 -0400 Subject: Add extensions to loader --- src/assets.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/assets.rs b/src/assets.rs index 5f0e08b..2d2206c 100644 --- a/src/assets.rs +++ b/src/assets.rs @@ -41,6 +41,10 @@ impl AssetLoader for MidiAssetLoader { reader.read_to_end(&mut bytes).await?; Ok(MidiAudio { midi: bytes }) } + + fn extensions(&self) -> &[&str] { + &["mid", "midi"] + } } /// Decoder for MIDI file playback -- cgit v1.2.3