aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2015-07-25 18:10:13 -0400
committerGravatar Lioncash <mathew1800@gmail.com>2015-07-25 18:10:13 -0400
commit43d799fd9d52f45eaf6b3ea68961a2f3fd7115dc (patch)
tree0553429c810002866cf31f3b7925f3db43e49fcb /src
parent24d7c05c8dd96a447699ba5059410d2009fab5c8 (diff)
loader: Remove unnecessary else usages
Diffstat (limited to 'src')
-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 9ef2f890..f5b349a7 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;
}