summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/core/loader/loader.cpp8
2 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a31fb5793..09fe9bcd3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,7 +216,7 @@ if (YUZU_USE_BUNDLED_UNICORN)
set(LIBUNICORN_LIBRARY "${UNICORN_PREFIX}/lib/x64/unicorn_dynload.lib" CACHE PATH "Path to Unicorn library")
set(UNICORN_DLL_DIR "${UNICORN_PREFIX}/lib/x64/" CACHE PATH "Path to unicorn.dll")
else()
- find_package(unicorn REQUIRED)
+ find_package(Unicorn REQUIRED)
endif()
if (UNICORN_FOUND)
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;