summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorThog <me@thog.eu>2018-01-14 19:00:16 +0100
committerThog <me@thog.eu>2018-01-14 19:00:16 +0100
commit06e288cea04e6080744b2c198bafc7fa04fcba5c (patch)
treed9a64d96302b111530dd507999827acd80986740 /src/core/loader/loader.cpp
parentexternals: Remove unused repos. (diff)
downloadyuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.tar
yuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.tar.gz
yuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.tar.bz2
yuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.tar.lz
yuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.tar.xz
yuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.tar.zst
yuzu-06e288cea04e6080744b2c198bafc7fa04fcba5c.zip
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 6fa7afb42..92defd381 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -53,6 +53,10 @@ FileType GuessFromExtension(const std::string& extension_) {
if (extension == ".elf" || extension == ".axf")
return FileType::ELF;
+ else if (extension == ".nro")
+ return FileType::NRO;
+ else if (extension == ".nso")
+ return FileType::NSO;
return FileType::Unknown;
}
@@ -61,6 +65,10 @@ const char* GetFileTypeString(FileType type) {
switch (type) {
case FileType::ELF:
return "ELF";
+ case FileType::NRO:
+ return "NRO";
+ case FileType::NSO:
+ return "NSO";
case FileType::Error:
case FileType::Unknown:
break;