From cd8be1846b72abf1c067ffec6b71ca4b3f84bc4e Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 15 Aug 2015 15:45:27 -0400 Subject: Give CIA file type a name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make `GetFileTypeString` return ‘CIA’ for CIA (CTR Importable Archive) files. --- src/core/loader/loader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index f5b349a77..ec2731873 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -77,6 +77,8 @@ static const char* GetFileTypeString(FileType type) { return "NCSD"; case FileType::CXI: return "NCCH"; + case FileType::CIA: + return "CIA"; case FileType::ELF: return "ELF"; case FileType::THREEDSX: -- cgit v1.2.3 From c0a87bc89f0c7fee0a3f3371b7b60b4cebb248b1 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 15 Aug 2015 16:05:38 -0400 Subject: Properly indicate that CIA support is not implemented yet Make `Loader::LoadFile` return an `ErrorNotImplemented` if you call it on a CIA file. --- src/core/loader/loader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index ec2731873..062291006 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -136,6 +136,10 @@ ResultStatus LoadFile(const std::string& filename) { break; } + // CIA file format... + case FileType::CIA: + return ResultStatus::ErrorNotImplemented; + // Error occurred durring IdentifyFile... case FileType::Error: -- cgit v1.2.3