clang format

clang format

clang format

clang format

clang hates me

work please
This commit is contained in:
ElBread3 2024-09-26 08:54:40 -05:00
parent 277abf7f5a
commit 00890f73e7
4 changed files with 5 additions and 7 deletions

View File

@ -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); const auto rel_path = std::string_view(corrected_path).substr(pos);
std::filesystem::path host_path = mount->host_path / rel_path; 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"; std::filesystem::path patch_path = mount->host_path.string() + "-UPDATE";
if (std::filesystem::exists(patch_path / rel_path)) { if (std::filesystem::exists(patch_path / rel_path)) {
host_path = patch_path / rel_path; host_path = patch_path / rel_path;

View File

@ -292,8 +292,7 @@ public:
QString message_type = tr("Game"); QString message_type = tr("Game");
if (selected == deleteUpdate) { if (selected == deleteUpdate) {
if (!std::filesystem::exists(m_games[itemID].path + "-UPDATE")) { if (!std::filesystem::exists(m_games[itemID].path + "-UPDATE")) {
QMessageBox::critical( QMessageBox::critical(nullptr, tr("Error"),
nullptr, tr("Error"),
QString(tr("This game has no update to delete!"))); QString(tr("This game has no update to delete!")));
error = true; error = true;
} else { } else {