Explorar el Código

Properly indicate that CIA support is not implemented yet

Make `Loader::LoadFile` return an `ErrorNotImplemented` if you call
it on a CIA file.
Benjamin Barenblat hace 11 años
padre
commit
c0a87bc89f
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/core/loader/loader.cpp

+ 4 - 0
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: