mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
clang format
This commit is contained in:
parent
64f50f434b
commit
34390f5586
3 changed files with 5 additions and 3 deletions
|
@ -90,7 +90,8 @@ QWidget* GameInstallDialog::SetupUserDirectory() {
|
|||
|
||||
m_userDirectory = new QLineEdit();
|
||||
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)
|
||||
: Config::getEmulatorUserDir();
|
||||
Common::FS::PathToQString(user_dir, default_path);
|
||||
|
|
|
@ -30,7 +30,8 @@ int main(int argc, char* argv[]) {
|
|||
bool has_command_line_argument = argc > 1;
|
||||
|
||||
// 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;
|
||||
dlg.exec();
|
||||
}
|
||||
|
|
|
@ -969,7 +969,7 @@ void MainWindow::AddRecentFiles(QString filePath) {
|
|||
}
|
||||
Config::setRecentFiles(vec);
|
||||
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.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue