Add TGC disc image compatibility

This commit is contained in:
JosJuice
2016-12-17 14:48:49 +01:00
parent 49384208cf
commit 9bd514ed1c
19 changed files with 246 additions and 18 deletions

View File

@ -54,7 +54,7 @@ void PathDialog::BrowseDefaultGame()
{
QString file = QFileDialog::getOpenFileName(
this, tr("Select a Game"), QDir::currentPath(),
tr("All GC/Wii files (*.elf *.dol *.gcm *.iso *.wbfs *.ciso *.gcz *.wad);;"
tr("All GC/Wii files (*.elf *.dol *.gcm *.iso *.tgc *.wbfs *.ciso *.gcz *.wad);;"
"All Files (*)"));
if (!file.isEmpty())
{

View File

@ -9,10 +9,10 @@
#include "DolphinQt2/GameList/GameTracker.h"
#include "DolphinQt2/Settings.h"
static const QStringList game_filters{QStringLiteral("*.gcm"), QStringLiteral("*.iso"),
QStringLiteral("*.ciso"), QStringLiteral("*.gcz"),
QStringLiteral("*.wbfs"), QStringLiteral("*.wad"),
QStringLiteral("*.elf"), QStringLiteral("*.dol")};
static const QStringList game_filters{
QStringLiteral("*.gcm"), QStringLiteral("*.iso"), QStringLiteral("*.tgc"),
QStringLiteral("*.ciso"), QStringLiteral("*.gcz"), QStringLiteral("*.wbfs"),
QStringLiteral("*.wad"), QStringLiteral("*.elf"), QStringLiteral("*.dol")};
GameTracker::GameTracker(QObject* parent) : QFileSystemWatcher(parent)
{

View File

@ -13,6 +13,7 @@
<string>gcm</string>
<string>gcz</string>
<string>iso</string>
<string>tgc</string>
<string>wad</string>
<string>wbfs</string>
</array>

View File

@ -137,7 +137,7 @@ void MainWindow::Open()
{
QString file = QFileDialog::getOpenFileName(
this, tr("Select a File"), QDir::currentPath(),
tr("All GC/Wii files (*.elf *.dol *.gcm *.iso *.wbfs *.ciso *.gcz *.wad);;"
tr("All GC/Wii files (*.elf *.dol *.gcm *.iso *.tgc *.wbfs *.ciso *.gcz *.wad);;"
"All Files (*)"));
if (!file.isEmpty())
StartGame(file);