mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
clang format
This commit is contained in:
parent
64f50f434b
commit
34390f5586
@ -90,7 +90,8 @@ QWidget* GameInstallDialog::SetupUserDirectory() {
|
|||||||
|
|
||||||
m_userDirectory = new QLineEdit();
|
m_userDirectory = new QLineEdit();
|
||||||
QString user_dir;
|
QString user_dir;
|
||||||
std::filesystem::path default_path = Config::getEmulatorUserDir().empty()
|
std::filesystem::path default_path =
|
||||||
|
Config::getEmulatorUserDir().empty()
|
||||||
? Common::FS::GetUserPath(Common::FS::PathType::ConfigDir)
|
? Common::FS::GetUserPath(Common::FS::PathType::ConfigDir)
|
||||||
: Config::getEmulatorUserDir();
|
: Config::getEmulatorUserDir();
|
||||||
Common::FS::PathToQString(user_dir, default_path);
|
Common::FS::PathToQString(user_dir, default_path);
|
||||||
|
@ -30,7 +30,8 @@ int main(int argc, char* argv[]) {
|
|||||||
bool has_command_line_argument = argc > 1;
|
bool has_command_line_argument = argc > 1;
|
||||||
|
|
||||||
// Check if the game install directory is set
|
// Check if the game install directory is set
|
||||||
if ((Config::getGameInstallDir().empty() || Config::getEmulatorUserDir().empty()) && !has_command_line_argument) {
|
if ((Config::getGameInstallDir().empty() || Config::getEmulatorUserDir().empty()) &&
|
||||||
|
!has_command_line_argument) {
|
||||||
GameInstallDialog dlg;
|
GameInstallDialog dlg;
|
||||||
dlg.exec();
|
dlg.exec();
|
||||||
}
|
}
|
||||||
|
@ -969,7 +969,7 @@ void MainWindow::AddRecentFiles(QString filePath) {
|
|||||||
}
|
}
|
||||||
Config::setRecentFiles(vec);
|
Config::setRecentFiles(vec);
|
||||||
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::ConfigDir);
|
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::ConfigDir);
|
||||||
Config::save(config_dir);
|
Config::save(config_dir / "config.toml");
|
||||||
CreateRecentGameActions(); // Refresh the QActions.
|
CreateRecentGameActions(); // Refresh the QActions.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user