Qt: Fix drag/drop of blockdumps

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-06-29 11:55:58 +01:00
1 parent ff0380b456
commit 403b93daf6
2 files changed
+9 -1

No files matched your search

+6 -1
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()
+3
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);