mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Add missing FileType declarations in GuessFromExtension and GetFileTypeString
This commit is contained in:
parent
feae1c4c32
commit
06e288cea0
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,10 @@ FileType GuessFromExtension(const std::string& extension_) {
|
|||
|
||||
if (extension == ".elf" || extension == ".axf")
|
||||
return FileType::ELF;
|
||||
else if (extension == ".nro")
|
||||
return FileType::NRO;
|
||||
else if (extension == ".nso")
|
||||
return FileType::NSO;
|
||||
|
||||
return FileType::Unknown;
|
||||
}
|
||||
|
@ -61,6 +65,10 @@ const char* GetFileTypeString(FileType type) {
|
|||
switch (type) {
|
||||
case FileType::ELF:
|
||||
return "ELF";
|
||||
case FileType::NRO:
|
||||
return "NRO";
|
||||
case FileType::NSO:
|
||||
return "NSO";
|
||||
case FileType::Error:
|
||||
case FileType::Unknown:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue