|
|
|
@ -26,8 +26,6 @@ ConfigureFilesystem::ConfigureFilesystem(QWidget* parent)
|
|
|
|
|
[this] { SetDirectory(DirectoryTarget::Dump, ui->dump_path_edit); });
|
|
|
|
|
connect(ui->load_path_button, &QToolButton::pressed, this,
|
|
|
|
|
[this] { SetDirectory(DirectoryTarget::Load, ui->load_path_edit); });
|
|
|
|
|
connect(ui->cache_directory_button, &QToolButton::pressed, this,
|
|
|
|
|
[this] { SetDirectory(DirectoryTarget::Cache, ui->cache_directory_edit); });
|
|
|
|
|
|
|
|
|
|
connect(ui->reset_game_list_cache, &QPushButton::pressed, this,
|
|
|
|
|
&ConfigureFilesystem::ResetMetadata);
|
|
|
|
@ -50,8 +48,6 @@ void ConfigureFilesystem::setConfiguration() {
|
|
|
|
|
QString::fromStdString(Common::FS::GetUserPath(Common::FS::UserPath::DumpDir)));
|
|
|
|
|
ui->load_path_edit->setText(
|
|
|
|
|
QString::fromStdString(Common::FS::GetUserPath(Common::FS::UserPath::LoadDir)));
|
|
|
|
|
ui->cache_directory_edit->setText(
|
|
|
|
|
QString::fromStdString(Common::FS::GetUserPath(Common::FS::UserPath::CacheDir)));
|
|
|
|
|
|
|
|
|
|
ui->gamecard_inserted->setChecked(Settings::values.gamecard_inserted);
|
|
|
|
|
ui->gamecard_current_game->setChecked(Settings::values.gamecard_current_game);
|
|
|
|
@ -72,9 +68,6 @@ void ConfigureFilesystem::applyConfiguration() {
|
|
|
|
|
ui->dump_path_edit->text().toStdString());
|
|
|
|
|
Common::FS::GetUserPath(Common::FS::UserPath::LoadDir,
|
|
|
|
|
ui->load_path_edit->text().toStdString());
|
|
|
|
|
Common::FS::GetUserPath(Common::FS::UserPath::CacheDir,
|
|
|
|
|
ui->cache_directory_edit->text().toStdString());
|
|
|
|
|
Settings::values.gamecard_path = ui->gamecard_path_edit->text().toStdString();
|
|
|
|
|
|
|
|
|
|
Settings::values.gamecard_inserted = ui->gamecard_inserted->isChecked();
|
|
|
|
|
Settings::values.gamecard_current_game = ui->gamecard_current_game->isChecked();
|
|
|
|
@ -103,9 +96,6 @@ void ConfigureFilesystem::SetDirectory(DirectoryTarget target, QLineEdit* edit)
|
|
|
|
|
case DirectoryTarget::Load:
|
|
|
|
|
caption = tr("Select Mod Load Directory...");
|
|
|
|
|
break;
|
|
|
|
|
case DirectoryTarget::Cache:
|
|
|
|
|
caption = tr("Select Cache Directory...");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString str;
|
|
|
|
|