mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
clang format
clang format clang format clang format clang hates me work please
This commit is contained in:
parent
277abf7f5a
commit
00890f73e7
@ -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;
|
||||||
|
@ -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 game_patch_folder = (file.parent_path().string() + "-UPDATE");
|
||||||
std::filesystem::path sce_sys_folder = std::filesystem::exists(game_patch_folder / "sce_sys")
|
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";
|
: file.parent_path() / "sce_sys";
|
||||||
if (std::filesystem::is_directory(sce_sys_folder)) {
|
if (std::filesystem::is_directory(sce_sys_folder)) {
|
||||||
for (const auto& entry : std::filesystem::directory_iterator(sce_sys_folder)) {
|
for (const auto& entry : std::filesystem::directory_iterator(sce_sys_folder)) {
|
||||||
|
@ -292,9 +292,8 @@ 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 {
|
||||||
folder_path = QString::fromStdString(m_games[itemID].path + "-UPDATE");
|
folder_path = QString::fromStdString(m_games[itemID].path + "-UPDATE");
|
||||||
|
@ -723,8 +723,8 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int
|
|||||||
}
|
}
|
||||||
std::filesystem::path sce_folder_path =
|
std::filesystem::path sce_folder_path =
|
||||||
std::filesystem::exists(game_update_path / "sce_sys" / "param.sfo")
|
std::filesystem::exists(game_update_path / "sce_sys" / "param.sfo")
|
||||||
? game_update_path / "sce_sys" / "param.sfo"
|
? game_update_path / "sce_sys" / "param.sfo"
|
||||||
: game_folder_path / "sce_sys" / "param.sfo";
|
: game_folder_path / "sce_sys" / "param.sfo";
|
||||||
psf.Open(sce_folder_path);
|
psf.Open(sce_folder_path);
|
||||||
QString game_app_version;
|
QString game_app_version;
|
||||||
if (auto app_ver = psf.GetString("APP_VER"); app_ver.has_value()) {
|
if (auto app_ver = psf.GetString("APP_VER"); app_ver.has_value()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user