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:
parent
d4b91257b7
commit
716a4d11ae
|
@ -109,6 +109,7 @@ pub(super) fn load_from_file(path: &Path) -> LoadRomResult {
|
||||||
Some("zip") => try_load_zip(&bytes),
|
Some("zip") => try_load_zip(&bytes),
|
||||||
#[cfg(feature = "elf_support")]
|
#[cfg(feature = "elf_support")]
|
||||||
Some("elf") => try_load_elf(&bytes),
|
Some("elf") => try_load_elf(&bytes),
|
||||||
|
Some("gba") => Ok(LoadRom::Raw(bytes)),
|
||||||
_ => {
|
_ => {
|
||||||
warn!("unknown file extension, loading as raw binary file");
|
warn!("unknown file extension, loading as raw binary file");
|
||||||
Ok(LoadRom::Raw(bytes))
|
Ok(LoadRom::Raw(bytes))
|
||||||
|
|
Reference in a new issue