mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
loader: Remove unnecessary else usages
This commit is contained in:
parent
24d7c05c8d
commit
43d799fd9d
1 changed files with 9 additions and 9 deletions
|
@ -56,18 +56,18 @@ static FileType IdentifyFile(FileUtil::IOFile& file) {
|
|||
static FileType GuessFromExtension(const std::string& extension_) {
|
||||
std::string extension = Common::ToLower(extension_);
|
||||
|
||||
if (extension == ".elf")
|
||||
if (extension == ".elf" || extension == ".axf")
|
||||
return FileType::ELF;
|
||||
else if (extension == ".axf")
|
||||
return FileType::ELF;
|
||||
else if (extension == ".cxi")
|
||||
|
||||
if (extension == ".cci" || extension == ".3ds")
|
||||
return FileType::CCI;
|
||||
|
||||
if (extension == ".cxi")
|
||||
return FileType::CXI;
|
||||
else if (extension == ".cci")
|
||||
return FileType::CCI;
|
||||
else if (extension == ".3ds")
|
||||
return FileType::CCI;
|
||||
else if (extension == ".3dsx")
|
||||
|
||||
if (extension == ".3dsx")
|
||||
return FileType::THREEDSX;
|
||||
|
||||
return FileType::Unknown;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue