mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 02:29:59 -06:00
Reformat all the things!
This commit is contained in:
@ -109,7 +109,9 @@ void GeneralWidget::CreateWidgets()
|
||||
auto* shader_compilation_layout = new QGridLayout();
|
||||
|
||||
const std::array<const char*, 4> modes = {{
|
||||
"Synchronous", "Synchronous (Ubershaders)", "Asynchronous (Ubershaders)",
|
||||
"Synchronous",
|
||||
"Synchronous (Ubershaders)",
|
||||
"Asynchronous (Ubershaders)",
|
||||
"Asynchronous (Skip Drawing)",
|
||||
}};
|
||||
for (size_t i = 0; i < modes.size(); i++)
|
||||
|
@ -198,7 +198,8 @@ void IOWindow::OnDetectButtonPressed()
|
||||
releaseMouse();
|
||||
releaseKeyboard();
|
||||
removeEventFilter(BlockUserInputFilter::Instance());
|
||||
}).detach();
|
||||
})
|
||||
.detach();
|
||||
}
|
||||
|
||||
void IOWindow::OnRangeChanged(int value)
|
||||
|
@ -155,9 +155,10 @@ void BreakpointWidget::Update()
|
||||
|
||||
if (mbp.is_ranged)
|
||||
{
|
||||
m_table->setItem(i, 3, create_item(QStringLiteral("%1 - %2")
|
||||
.arg(mbp.start_address, 8, 16, QLatin1Char('0'))
|
||||
.arg(mbp.end_address, 8, 16, QLatin1Char('0'))));
|
||||
m_table->setItem(i, 3,
|
||||
create_item(QStringLiteral("%1 - %2")
|
||||
.arg(mbp.start_address, 8, 16, QLatin1Char('0'))
|
||||
.arg(mbp.end_address, 8, 16, QLatin1Char('0'))));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -98,13 +98,14 @@ void RegisterColumn::Update()
|
||||
switch (m_display)
|
||||
{
|
||||
case RegisterDisplay::Hex:
|
||||
text = QStringLiteral("%1").arg(
|
||||
m_value, (m_type == RegisterType::ibat || m_type == RegisterType::dbat ||
|
||||
m_type == RegisterType::fpr || m_type == RegisterType::tb ?
|
||||
sizeof(u64) :
|
||||
sizeof(u32)) *
|
||||
2,
|
||||
16, QLatin1Char('0'));
|
||||
text = QStringLiteral("%1").arg(m_value,
|
||||
(m_type == RegisterType::ibat || m_type == RegisterType::dbat ||
|
||||
m_type == RegisterType::fpr ||
|
||||
m_type == RegisterType::tb ?
|
||||
sizeof(u64) :
|
||||
sizeof(u32)) *
|
||||
2,
|
||||
16, QLatin1Char('0'));
|
||||
break;
|
||||
case RegisterDisplay::SInt32:
|
||||
text = QString::number(static_cast<qint32>(m_value));
|
||||
|
@ -247,11 +247,11 @@ void GCMemcardManager::SetSlotFile(int slot, QString path)
|
||||
|
||||
void GCMemcardManager::SetSlotFileInteractive(int slot)
|
||||
{
|
||||
QString path =
|
||||
QFileDialog::getOpenFileName(this, slot == 0 ? tr("Set memory card file for Slot A") :
|
||||
tr("Set memory card file for Slot B"),
|
||||
QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)),
|
||||
tr("GameCube Memory Cards (*.raw *.gcp)"));
|
||||
QString path = QFileDialog::getOpenFileName(
|
||||
this,
|
||||
slot == 0 ? tr("Set memory card file for Slot A") : tr("Set memory card file for Slot B"),
|
||||
QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)),
|
||||
tr("GameCube Memory Cards (*.raw *.gcp)"));
|
||||
if (!path.isEmpty())
|
||||
m_slot_file_edit[slot]->setText(path);
|
||||
}
|
||||
|
@ -291,8 +291,9 @@ void GameList::CompressISO()
|
||||
}
|
||||
|
||||
QString dst_path = QFileDialog::getSaveFileName(
|
||||
this, compressed ? tr("Select where you want to save the decompressed image") :
|
||||
tr("Select where you want to save the compressed image"),
|
||||
this,
|
||||
compressed ? tr("Select where you want to save the decompressed image") :
|
||||
tr("Select where you want to save the compressed image"),
|
||||
QFileInfo(QString::fromStdString(GetSelectedGame()->GetFilePath()))
|
||||
.dir()
|
||||
.absoluteFilePath(QString::fromStdString(file->GetGameID()))
|
||||
|
@ -180,9 +180,10 @@ void GameCubePane::OnConfigPressed(int slot)
|
||||
|
||||
if (!mc.IsValid())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Cannot use that file as a memory card.\n%1\n"
|
||||
"is not a valid GameCube memory card file")
|
||||
.arg(filename));
|
||||
QMessageBox::critical(this, tr("Error"),
|
||||
tr("Cannot use that file as a memory card.\n%1\n"
|
||||
"is not a valid GameCube memory card file")
|
||||
.arg(filename));
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user