|
|
@ -56,18 +56,18 @@ static FileType IdentifyFile(FileUtil::IOFile& file) {
|
|
|
|
static FileType GuessFromExtension(const std::string& extension_) {
|
|
|
|
static FileType GuessFromExtension(const std::string& extension_) {
|
|
|
|
std::string extension = Common::ToLower(extension_);
|
|
|
|
std::string extension = Common::ToLower(extension_);
|
|
|
|
|
|
|
|
|
|
|
|
if (extension == ".elf")
|
|
|
|
if (extension == ".elf" || extension == ".axf")
|
|
|
|
return FileType::ELF;
|
|
|
|
return FileType::ELF;
|
|
|
|
else if (extension == ".axf")
|
|
|
|
|
|
|
|
return FileType::ELF;
|
|
|
|
if (extension == ".cci" || extension == ".3ds")
|
|
|
|
else if (extension == ".cxi")
|
|
|
|
return FileType::CCI;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (extension == ".cxi")
|
|
|
|
return FileType::CXI;
|
|
|
|
return FileType::CXI;
|
|
|
|
else if (extension == ".cci")
|
|
|
|
|
|
|
|
return FileType::CCI;
|
|
|
|
if (extension == ".3dsx")
|
|
|
|
else if (extension == ".3ds")
|
|
|
|
|
|
|
|
return FileType::CCI;
|
|
|
|
|
|
|
|
else if (extension == ".3dsx")
|
|
|
|
|
|
|
|
return FileType::THREEDSX;
|
|
|
|
return FileType::THREEDSX;
|
|
|
|
|
|
|
|
|
|
|
|
return FileType::Unknown;
|
|
|
|
return FileType::Unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|