From 716a4d11ae69ae76f2b351ae1fbf8345e62b651f Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Mon, 5 Sep 2022 01:31:36 +0300 Subject: [PATCH] Treat .gba files as binary files, avoid the unknown file extension warning Former-commit-id: ae5cc43d66fbd55623de97aa6b7c5c6504346018 Former-commit-id: 437ec2ccc79ef355ff0b688994133352ac2d2632 --- core/src/cartridge/loader.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/cartridge/loader.rs b/core/src/cartridge/loader.rs index 69d3df5..ec9fc28 100644 --- a/core/src/cartridge/loader.rs +++ b/core/src/cartridge/loader.rs @@ -109,6 +109,7 @@ pub(super) fn load_from_file(path: &Path) -> LoadRomResult { Some("zip") => try_load_zip(&bytes), #[cfg(feature = "elf_support")] Some("elf") => try_load_elf(&bytes), + Some("gba") => Ok(LoadRom::Raw(bytes)), _ => { warn!("unknown file extension, loading as raw binary file"); Ok(LoadRom::Raw(bytes))