diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-05-18 14:12:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-18 14:12:55 +0200 |
| commit | f3c0a5626dc2c8a6638979faa2f17d0e647f2db0 (patch) | |
| tree | a646693806f8737e789dbab94e65612c8a1bbf51 /Source | |
| parent | 493a42d792e3140b3e708c58d2f685210aee796d (diff) | |
| parent | c206ce846a4ca314515c65559f23fb9791818c5a (diff) | |
Merge pull request #12781 from deReeperJosh/skylanderfiletypes
IOS/USB: Change Skylander File Type Filter
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp b/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp index 79b1dc1221..f8b29a5674 100644 --- a/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp +++ b/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp @@ -554,7 +554,7 @@ void SkylanderPortalWindow::LoadFromFile() const u8 slot = GetCurrentSlot(); const QString file_path = DolphinFileDialog::getOpenFileName(this, tr("Select Skylander File"), m_last_skylander_path, - tr("Skylander (*.sky);;All Files (*)")); + tr("Skylander (*.sky *.bin *.dmp *.dump);;All Files (*)")); ; if (file_path.isEmpty()) { @@ -708,7 +708,9 @@ void SkylanderPortalWindow::RefreshList() { const QDir collection = QDir(m_collection_path); auto& system = Core::System::GetInstance(); - for (const auto& file : collection.entryInfoList(QStringList(QStringLiteral("*.sky")))) + for (const auto& file : collection.entryInfoList( + QStringList() << QStringLiteral("*.sky") << QStringLiteral("*.bin") + << QStringLiteral("*.dmp") << QStringLiteral("*.dump"))) { File::IOFile sky_file(file.filePath().toStdString(), "r+b"); if (!sky_file) @@ -910,7 +912,9 @@ QString SkylanderPortalWindow::GetFilePath(u16 id, u16 var) const { const QDir collection = QDir(m_collection_path); auto& system = Core::System::GetInstance(); - for (const auto& file : collection.entryInfoList(QStringList(QStringLiteral("*.sky")))) + for (const auto& file : collection.entryInfoList( + QStringList() << QStringLiteral("*.sky") << QStringLiteral("*.bin") + << QStringLiteral("*.dmp") << QStringLiteral("*.dump"))) { File::IOFile sky_file(file.filePath().toStdString(), "r+b"); if (!sky_file) |
