mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
clang
This commit is contained in:
parent
a1aeed0268
commit
6054fa14c6
@ -107,18 +107,18 @@ void GameDirectoryDialog::Save() {
|
|||||||
|
|
||||||
if (gamesDirectory.isEmpty() || !QDir(gamesDirectory).exists() ||
|
if (gamesDirectory.isEmpty() || !QDir(gamesDirectory).exists() ||
|
||||||
!QDir::isAbsolutePath(gamesDirectory)) {
|
!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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addonsDirectory.isEmpty() || !QDir::isAbsolutePath(addonsDirectory)) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
QDir addonsDir(addonsDirectory);
|
QDir addonsDir(addonsDirectory);
|
||||||
if (!addonsDir.exists()) {
|
if (!addonsDir.exists()) {
|
||||||
if (!addonsDir.mkpath(".")) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -709,7 +709,7 @@ void MainWindow::CreateConnects() {
|
|||||||
.arg(game_path);
|
.arg(game_path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->bootGameAct, &QAction::triggered, this, &MainWindow::BootGame);
|
connect(ui->bootGameAct, &QAction::triggered, this, &MainWindow::BootGame);
|
||||||
connect(ui->gamePathAct, &QAction::triggered, this, &MainWindow::Directories);
|
connect(ui->gamePathAct, &QAction::triggered, this, &MainWindow::Directories);
|
||||||
|
|
||||||
|
@ -381,8 +381,7 @@ public:
|
|||||||
setlistModeGridAct->setText(
|
setlistModeGridAct->setText(
|
||||||
QCoreApplication::translate("MainWindow", "Grid View", nullptr));
|
QCoreApplication::translate("MainWindow", "Grid View", nullptr));
|
||||||
setlistElfAct->setText(QCoreApplication::translate("MainWindow", "Elf Viewer", nullptr));
|
setlistElfAct->setText(QCoreApplication::translate("MainWindow", "Elf Viewer", nullptr));
|
||||||
gamePathAct->setText(
|
gamePathAct->setText(QCoreApplication::translate("MainWindow", "Game Directory", nullptr));
|
||||||
QCoreApplication::translate("MainWindow", "Game Directory", nullptr));
|
|
||||||
downloadCheatsPatchesAct->setText(
|
downloadCheatsPatchesAct->setText(
|
||||||
QCoreApplication::translate("MainWindow", "Download Cheats/Patches", nullptr));
|
QCoreApplication::translate("MainWindow", "Download Cheats/Patches", nullptr));
|
||||||
dumpGameListAct->setText(
|
dumpGameListAct->setText(
|
||||||
|
@ -45,7 +45,7 @@ private:
|
|||||||
void OnCursorStateChanged(s16 index);
|
void OnCursorStateChanged(s16 index);
|
||||||
void closeEvent(QCloseEvent* event) override;
|
void closeEvent(QCloseEvent* event) override;
|
||||||
void setDefaultValues();
|
void setDefaultValues();
|
||||||
|
|
||||||
std::unique_ptr<Ui::SettingsDialog> ui;
|
std::unique_ptr<Ui::SettingsDialog> ui;
|
||||||
|
|
||||||
std::map<std::string, int> languages;
|
std::map<std::string, int> languages;
|
||||||
|
Loading…
Reference in New Issue
Block a user