summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-13 03:21:49 +0200
committerbunnei <bunneidev@gmail.com>2017-10-13 03:21:49 +0200
commit72b03025ac4ef0d8633c2f3e55b513cd149c59e5 (patch)
treef1fbeb915a0b3df8e4e988a6a562a763e18ea666 /src/core/loader/loader.cpp
parenthle: Remove a large amount of 3ds-specific service code. (diff)
downloadyuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.gz
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.bz2
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.lz
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.xz
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.zst
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.zip
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 73318c584..46b2c28d2 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -31,9 +31,7 @@ FileType IdentifyFile(FileUtil::IOFile& file) {
if (FileType::Error != type) \
return type;
- CHECK_TYPE(THREEDSX)
CHECK_TYPE(ELF)
- CHECK_TYPE(NCCH)
CHECK_TYPE(NSO)
CHECK_TYPE(NRO)
@@ -58,33 +56,13 @@ FileType GuessFromExtension(const std::string& extension_) {
if (extension == ".elf" || extension == ".axf")
return FileType::ELF;
- if (extension == ".cci" || extension == ".3ds")
- return FileType::CCI;
-
- if (extension == ".cxi")
- return FileType::CXI;
-
- if (extension == ".3dsx")
- return FileType::THREEDSX;
-
- if (extension == ".cia")
- return FileType::CIA;
-
return FileType::Unknown;
}
const char* GetFileTypeString(FileType type) {
switch (type) {
- case FileType::CCI:
- return "NCSD";
- case FileType::CXI:
- return "NCCH";
- case FileType::CIA:
- return "CIA";
case FileType::ELF:
return "ELF";
- case FileType::THREEDSX:
- return "3DSX";
case FileType::Error:
case FileType::Unknown:
break;
@@ -106,19 +84,10 @@ static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileTyp
const std::string& filepath) {
switch (type) {
- // 3DSX file format.
- case FileType::THREEDSX:
- return std::make_unique<AppLoader_THREEDSX>(std::move(file), filename, filepath);
-
// Standard ELF file format.
case FileType::ELF:
return std::make_unique<AppLoader_ELF>(std::move(file), filename);
- // NCCH/NCSD container formats.
- case FileType::CXI:
- case FileType::CCI:
- return std::make_unique<AppLoader_NCCH>(std::move(file), filepath);
-
// NX NSO file format.
case FileType::NSO:
return std::make_unique<AppLoader_NSO>(std::move(file), filepath);