diff options
author | Silas Bartha <[email protected]> | 2024-09-09 21:15:35 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-09-09 21:15:35 -0400 |
commit | be3a5782fcfbcbd8498674ba80538db61fd40512 (patch) | |
tree | 776f0a0db92207a037c6abfe8b8e411c6adf2e2c /src/assets.rs | |
parent | 128573aa260644424e834e04ac08dd236736bf5d (diff) |
Add extensions to loader
Diffstat (limited to 'src/assets.rs')
-rw-r--r-- | src/assets.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 |