summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-26 00:19:38 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-26 00:19:38 +0200
commit6e1659c9fdfc05d558215de712c885f498c1a26c (patch)
tree0553429c810002866cf31f3b7925f3db43e49fcb /src/core/loader
parentMerge pull request #888 from zawata/Warning-Fixes-2 (diff)
parentloader: Remove unnecessary else usages (diff)
downloadyuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.tar
yuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.tar.gz
yuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.tar.bz2
yuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.tar.lz
yuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.tar.xz
yuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.tar.zst
yuzu-6e1659c9fdfc05d558215de712c885f498c1a26c.zip
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/loader.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 9ef2f8900..f5b349a77 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -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")
- return FileType::CXI;
- else if (extension == ".cci")
- return FileType::CCI;
- else if (extension == ".3ds")
+
+ if (extension == ".cci" || extension == ".3ds")
return FileType::CCI;
- else if (extension == ".3dsx")
+
+ if (extension == ".cxi")
+ return FileType::CXI;
+
+ if (extension == ".3dsx")
return FileType::THREEDSX;
+
return FileType::Unknown;
}