clang format

This commit is contained in:
ElBread3 2024-10-01 07:53:51 -05:00
parent 64f50f434b
commit 34390f5586
3 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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();
} }

View File

@ -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.
} }