Qt: Fix drag/drop of blockdumps

This commit is contained in:
Connor McLaughlin 2022-06-29 19:31:44 +10:00 committed by refractionpcsx2
parent ff0380b456
commit 403b93daf6
2 changed files with 9 additions and 1 deletions

View File

@ -1335,6 +1335,11 @@ bool VMManager::IsElfFileName(const std::string_view& path)
return StringUtil::EndsWithNoCase(path, ".elf");
}
bool VMManager::IsBlockDumpFileName(const std::string_view& path)
{
return StringUtil::EndsWithNoCase(path, ".dump");
}
bool VMManager::IsGSDumpFileName(const std::string_view& path)
{
return (StringUtil::EndsWithNoCase(path, ".gs") ||
@ -1349,7 +1354,7 @@ bool VMManager::IsSaveStateFileName(const std::string_view& path)
bool VMManager::IsLoadableFileName(const std::string_view& path)
{
return IsElfFileName(path) || IsGSDumpFileName(path) || GameList::IsScannableFilename(path);
return IsElfFileName(path) || IsGSDumpFileName(path) || IsBlockDumpFileName(path) || GameList::IsScannableFilename(path);
}
void VMManager::Execute()

View File

@ -140,6 +140,9 @@ namespace VMManager
/// Returns true if the specified path is an ELF.
bool IsElfFileName(const std::string_view& path);
/// Returns true if the specified path is a blockdump.
bool IsBlockDumpFileName(const std::string_view& path);
/// Returns true if the specified path is a GS Dump.
bool IsGSDumpFileName(const std::string_view& path);