This commit is contained in:
Dmugetsu 2025-06-29 06:21:51 -06:00
parent a1aeed0268
commit 6054fa14c6
4 changed files with 6 additions and 7 deletions

View File

@ -107,18 +107,18 @@ void GameDirectoryDialog::Save() {
if (gamesDirectory.isEmpty() || !QDir(gamesDirectory).exists() ||
!QDir::isAbsolutePath(gamesDirectory)) {
QMessageBox::critical(this, tr("Error"),"The value location for games is not valid.");
QMessageBox::critical(this, tr("Error"), "The value location for games is not valid.");
return;
}
if (addonsDirectory.isEmpty() || !QDir::isAbsolutePath(addonsDirectory)) {
QMessageBox::critical(this, tr("Error"),"The value location for DLC is not valid.");
QMessageBox::critical(this, tr("Error"), "The value location for DLC is not valid.");
return;
}
QDir addonsDir(addonsDirectory);
if (!addonsDir.exists()) {
if (!addonsDir.mkpath(".")) {
QMessageBox::critical(this, tr("Error"),"The DLC location could not be created.");
QMessageBox::critical(this, tr("Error"), "The DLC location could not be created.");
return;
}
}

View File

@ -709,7 +709,7 @@ void MainWindow::CreateConnects() {
.arg(game_path);
}
});
connect(ui->bootGameAct, &QAction::triggered, this, &MainWindow::BootGame);
connect(ui->gamePathAct, &QAction::triggered, this, &MainWindow::Directories);

View File

@ -381,8 +381,7 @@ public:
setlistModeGridAct->setText(
QCoreApplication::translate("MainWindow", "Grid View", nullptr));
setlistElfAct->setText(QCoreApplication::translate("MainWindow", "Elf Viewer", nullptr));
gamePathAct->setText(
QCoreApplication::translate("MainWindow", "Game Directory", nullptr));
gamePathAct->setText(QCoreApplication::translate("MainWindow", "Game Directory", nullptr));
downloadCheatsPatchesAct->setText(
QCoreApplication::translate("MainWindow", "Download Cheats/Patches", nullptr));
dumpGameListAct->setText(

View File

@ -45,7 +45,7 @@ private:
void OnCursorStateChanged(s16 index);
void closeEvent(QCloseEvent* event) override;
void setDefaultValues();
std::unique_ptr<Ui::SettingsDialog> ui;
std::map<std::string, int> languages;