hotfix: fix parentheses when saving some files
Some checks failed
Generate Translation Template / Generate Translation Template (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux.sh, gcc, rpcs3/rpcs3-ci-jammy:1.5, ubuntu-24.04) (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (a1d35836e8d45bfc6f63c26f0a3e5d46ef622fe1, rpcs3/rpcs3-binaries-linux-arm64, /rpcs3/.ci/build-linux-aarch64.sh, clang, rpcs3/rpcs3-ci-jammy-aarch64:1.5, ubuntu-24.04-arm) (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (d812f1254a1157c80fd402f94446310560f54e5f, rpcs3/rpcs3-binaries-linux, /rpcs3/.ci/build-linux.sh, clang, rpcs3/rpcs3-ci-jammy:1.5, ubuntu-24.04) (push) Has been cancelled
Build RPCS3 / RPCS3 Windows (push) Has been cancelled

This commit is contained in:
Megamouse 2025-04-23 15:39:42 +02:00
parent c401c0f9db
commit 1960b5a605
3 changed files with 3 additions and 3 deletions

View File

@ -1732,7 +1732,7 @@ void patch_engine::save_config(const patch_map& patches_map)
fs::pending_file file(path);
if (!file.file || file.file.write(out.c_str(), out.size() < out.size() || !file.commit()))
if (!file.file || file.file.write(out.c_str(), out.size()) < out.size() || !file.commit())
{
patch_log.error("Failed to create patch config file %s (error=%s)", path, fs::g_tls_error);
}

View File

@ -145,7 +145,7 @@ void music_selection_context::create_playlist(const std::string& new_hash)
fs::pending_file file(yaml_path);
if (!file.file || file.file.write(out.c_str(), out.size() < out.size() || !file.commit()))
if (!file.file || file.file.write(out.c_str(), out.size()) < out.size() || !file.commit())
{
cellMusicSelectionContext.error("create_playlist: Failed to create music playlist file '%s' (error=%s)", yaml_path, fs::g_tls_error);
}

View File

@ -1279,7 +1279,7 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
// Overwrite current patch file
fs::pending_file patch_file(path);
if (!patch_file.file || (patch_file.file.write(content), !patch_file.commit()))
if (!patch_file.file || !patch_file.file.write(content) || !patch_file.commit())
{
patch_log.error("Could not save new patches to %s (error=%s)", path, fs::g_tls_error);
return false;