Treat .gba files as binary files, avoid the unknown file extension warning

Former-commit-id: ae5cc43d66fbd55623de97aa6b7c5c6504346018
Former-commit-id: 437ec2ccc79ef355ff0b688994133352ac2d2632
This commit is contained in:
Michel Heily 2022-09-05 01:31:36 +03:00
parent d4b91257b7
commit 716a4d11ae

View file

@ -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))