aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBenjamin Barenblat <bbaren@mit.edu>2015-08-15 16:05:38 -0400
committerBenjamin Barenblat <bbaren@mit.edu>2015-08-15 16:05:38 -0400
commitc0a87bc89f0c7fee0a3f3371b7b60b4cebb248b1 (patch)
tree0d4214719de96b803ac9701068f2f8bbcfd7bbe2
parentcd8be1846b72abf1c067ffec6b71ca4b3f84bc4e (diff)
Properly indicate that CIA support is not implemented yet
Make `Loader::LoadFile` return an `ErrorNotImplemented` if you call it on a CIA file.
-rw-r--r--src/core/loader/loader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index ec273187..06229100 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: