Added Triforce support
This commit is contained in:
1 parent
d6b5af57d0
commit
2c62214875
61 files changed
+5627
-174
No files matched your search
@@ -151,6 +151,7 @@ void GameCubePane::CreateWidgets()
|
||||
EXIDeviceType::EthernetIPC,
|
||||
#endif
|
||||
EXIDeviceType::ModemTapServer,
|
||||
EXIDeviceType::Baseboard,
|
||||
})
|
||||
{
|
||||
m_slot_combos[ExpansionInterface::Slot::SP1]->addItem(tr(fmt::format("{:n}", device).c_str()),
|
||||
@@ -418,6 +419,10 @@ void GameCubePane::OnConfigPressed(ExpansionInterface::Slot slot)
|
||||
dialog.exec();
|
||||
return;
|
||||
}
|
||||
case ExpansionInterface::EXIDeviceType::Baseboard:
|
||||
{
|
||||
return;
|
||||
}
|
||||
default:
|
||||
PanicAlertFmt("Unknown settings pressed for {}", device);
|
||||
return;
|
||||
@@ -452,19 +457,23 @@ bool GameCubePane::SetMemcard(ExpansionInterface::Slot slot, const QString& file
|
||||
const std::string jp_path = Config::GetMemcardPath(raw_path, slot, DiscIO::Region::NTSC_J);
|
||||
const std::string us_path = Config::GetMemcardPath(raw_path, slot, DiscIO::Region::NTSC_U);
|
||||
const std::string eu_path = Config::GetMemcardPath(raw_path, slot, DiscIO::Region::PAL);
|
||||
const bool raw_path_valid = raw_path == jp_path || raw_path == us_path || raw_path == eu_path;
|
||||
const std::string dv_path = Config::GetMemcardPath(raw_path, slot, DiscIO::Region::DEV);
|
||||
const bool raw_path_valid =
|
||||
raw_path == jp_path || raw_path == us_path || raw_path == eu_path || raw_path == dv_path;
|
||||
|
||||
if (!raw_path_valid)
|
||||
{
|
||||
// TODO: We could try to autodetect the card region here and offer automatic renaming.
|
||||
ModalMessageBox::critical(this, tr("Error"),
|
||||
tr("The filename %1 does not conform to Dolphin's region code format "
|
||||
"for memory cards. Please rename this file to either %2, %3, or "
|
||||
"%4, matching the region of the save files that are on it.")
|
||||
.arg(QString::fromStdString(PathToFileName(raw_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(us_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(eu_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(jp_path))));
|
||||
ModalMessageBox::critical(
|
||||
this, tr("Error"),
|
||||
tr("The filename %1 does not conform to Dolphin's region code format "
|
||||
"for memory cards. Please rename this file to either %2, %3, %4, or "
|
||||
"%5, matching the region of the save files that are on it.")
|
||||
.arg(QString::fromStdString(PathToFileName(raw_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(us_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(eu_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(jp_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(dv_path))));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -556,8 +565,9 @@ bool GameCubePane::SetGCIFolder(ExpansionInterface::Slot slot, const QString& pa
|
||||
const std::string default_jp_path = Config::GetGCIFolderPath("", slot, DiscIO::Region::NTSC_J);
|
||||
const std::string default_us_path = Config::GetGCIFolderPath("", slot, DiscIO::Region::NTSC_U);
|
||||
const std::string default_eu_path = Config::GetGCIFolderPath("", slot, DiscIO::Region::PAL);
|
||||
const bool is_default_path =
|
||||
raw_path == default_jp_path || raw_path == default_us_path || raw_path == default_eu_path;
|
||||
const std::string default_dv_path = Config::GetGCIFolderPath("", slot, DiscIO::Region::DEV);
|
||||
const bool is_default_path = raw_path == default_jp_path || raw_path == default_us_path ||
|
||||
raw_path == default_eu_path || raw_path == default_dv_path;
|
||||
|
||||
bool path_changed;
|
||||
if (is_default_path)
|
||||
@@ -574,7 +584,9 @@ bool GameCubePane::SetGCIFolder(ExpansionInterface::Slot slot, const QString& pa
|
||||
const std::string jp_path = Config::GetGCIFolderPath(raw_path, slot, DiscIO::Region::NTSC_J);
|
||||
const std::string us_path = Config::GetGCIFolderPath(raw_path, slot, DiscIO::Region::NTSC_U);
|
||||
const std::string eu_path = Config::GetGCIFolderPath(raw_path, slot, DiscIO::Region::PAL);
|
||||
const bool raw_path_valid = raw_path == jp_path || raw_path == us_path || raw_path == eu_path;
|
||||
const std::string dv_path = Config::GetGCIFolderPath(raw_path, slot, DiscIO::Region::DEV);
|
||||
const bool raw_path_valid =
|
||||
raw_path == jp_path || raw_path == us_path || raw_path == eu_path || raw_path == dv_path;
|
||||
|
||||
if (!raw_path_valid)
|
||||
{
|
||||
@@ -582,12 +594,13 @@ bool GameCubePane::SetGCIFolder(ExpansionInterface::Slot slot, const QString& pa
|
||||
ModalMessageBox::critical(
|
||||
this, tr("Error"),
|
||||
tr("The folder %1 does not conform to Dolphin's region code format "
|
||||
"for GCI folders. Please rename this folder to either %2, %3, or "
|
||||
"%4, matching the region of the save files that are in it.")
|
||||
"for GCI folders. Please rename this folder to either %2, %3, %4, or "
|
||||
"%5, matching the region of the save files that are in it.")
|
||||
.arg(QString::fromStdString(PathToFileName(raw_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(us_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(eu_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(jp_path))));
|
||||
.arg(QString::fromStdString(PathToFileName(jp_path)))
|
||||
.arg(QString::fromStdString(PathToFileName(dv_path))));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user