From 00890f73e7e67dbb73b01163cdf4352b6886031a Mon Sep 17 00:00:00 2001 From: ElBread3 <92335081+ElBread3@users.noreply.github.com> Date: Thu, 26 Sep 2024 08:54:40 -0500 Subject: [PATCH] clang format clang format clang format clang format clang hates me work please --- src/core/file_sys/fs.cpp | 1 - src/emulator.cpp | 2 +- src/qt_gui/gui_context_menus.h | 5 ++--- src/qt_gui/main_window.cpp | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index 88f5b0259..9fc44234e 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -55,7 +55,6 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view guest_directory, b const auto rel_path = std::string_view(corrected_path).substr(pos); std::filesystem::path host_path = mount->host_path / rel_path; - //Use file in update directory instead if it's there (e.g. CUSAXXXXX-UPDATE) std::filesystem::path patch_path = mount->host_path.string() + "-UPDATE"; if (std::filesystem::exists(patch_path / rel_path)) { host_path = patch_path / rel_path; diff --git a/src/emulator.cpp b/src/emulator.cpp index 56f15fc21..2169ddef5 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -116,7 +116,7 @@ void Emulator::Run(const std::filesystem::path& file) { std::filesystem::path game_patch_folder = (file.parent_path().string() + "-UPDATE"); std::filesystem::path sce_sys_folder = std::filesystem::exists(game_patch_folder / "sce_sys") - ? game_patch_folder / "sce_sys" + ? game_patch_folder / "sce_sys" : file.parent_path() / "sce_sys"; if (std::filesystem::is_directory(sce_sys_folder)) { for (const auto& entry : std::filesystem::directory_iterator(sce_sys_folder)) { diff --git a/src/qt_gui/gui_context_menus.h b/src/qt_gui/gui_context_menus.h index 15550fa56..1e0ef6193 100644 --- a/src/qt_gui/gui_context_menus.h +++ b/src/qt_gui/gui_context_menus.h @@ -292,9 +292,8 @@ public: QString message_type = tr("Game"); if (selected == deleteUpdate) { if (!std::filesystem::exists(m_games[itemID].path + "-UPDATE")) { - QMessageBox::critical( - nullptr, tr("Error"), - QString(tr("This game has no update to delete!"))); + QMessageBox::critical(nullptr, tr("Error"), + QString(tr("This game has no update to delete!"))); error = true; } else { folder_path = QString::fromStdString(m_games[itemID].path + "-UPDATE"); diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index 5fb3c16b6..f79febd2a 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -723,8 +723,8 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int } std::filesystem::path sce_folder_path = std::filesystem::exists(game_update_path / "sce_sys" / "param.sfo") - ? game_update_path / "sce_sys" / "param.sfo" - : game_folder_path / "sce_sys" / "param.sfo"; + ? game_update_path / "sce_sys" / "param.sfo" + : game_folder_path / "sce_sys" / "param.sfo"; psf.Open(sce_folder_path); QString game_app_version; if (auto app_ver = psf.GetString("APP_VER"); app_ver.has_value()) {