mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix drag/drop of blockdumps
This commit is contained in:
parent
ff0380b456
commit
403b93daf6
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue