Skip to content
Snippets Groups Projects
Unverified Commit 06e288ce authored by Thog's avatar Thog
Browse files

Add missing FileType declarations in GuessFromExtension and GetFileTypeString

parent feae1c4c
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,10 @@ FileType GuessFromExtension(const std::string& extension_) { ...@@ -53,6 +53,10 @@ FileType GuessFromExtension(const std::string& extension_) {
if (extension == ".elf" || extension == ".axf") if (extension == ".elf" || extension == ".axf")
return FileType::ELF; return FileType::ELF;
else if (extension == ".nro")
return FileType::NRO;
else if (extension == ".nso")
return FileType::NSO;
return FileType::Unknown; return FileType::Unknown;
} }
...@@ -61,6 +65,10 @@ const char* GetFileTypeString(FileType type) { ...@@ -61,6 +65,10 @@ const char* GetFileTypeString(FileType type) {
switch (type) { switch (type) {
case FileType::ELF: case FileType::ELF:
return "ELF"; return "ELF";
case FileType::NRO:
return "NRO";
case FileType::NSO:
return "NSO";
case FileType::Error: case FileType::Error:
case FileType::Unknown: case FileType::Unknown:
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment