Skip to content

Commit 1960b5a

Browse files
committed
hotfix: fix parentheses when saving some files
1 parent c401c0f commit 1960b5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Utilities/bin_patch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ void patch_engine::save_config(const patch_map& patches_map)
17321732

17331733
fs::pending_file file(path);
17341734

1735-
if (!file.file || file.file.write(out.c_str(), out.size() < out.size() || !file.commit()))
1735+
if (!file.file || file.file.write(out.c_str(), out.size()) < out.size() || !file.commit())
17361736
{
17371737
patch_log.error("Failed to create patch config file %s (error=%s)", path, fs::g_tls_error);
17381738
}

rpcs3/Emu/Cell/Modules/cellMusicSelectionContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void music_selection_context::create_playlist(const std::string& new_hash)
145145

146146
fs::pending_file file(yaml_path);
147147

148-
if (!file.file || file.file.write(out.c_str(), out.size() < out.size() || !file.commit()))
148+
if (!file.file || file.file.write(out.c_str(), out.size()) < out.size() || !file.commit())
149149
{
150150
cellMusicSelectionContext.error("create_playlist: Failed to create music playlist file '%s' (error=%s)", yaml_path, fs::g_tls_error);
151151
}

rpcs3/rpcs3qt/patch_manager_dialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
12791279
// Overwrite current patch file
12801280
fs::pending_file patch_file(path);
12811281

1282-
if (!patch_file.file || (patch_file.file.write(content), !patch_file.commit()))
1282+
if (!patch_file.file || !patch_file.file.write(content) || !patch_file.commit())
12831283
{
12841284
patch_log.error("Could not save new patches to %s (error=%s)", path, fs::g_tls_error);
12851285
return false;

0 commit comments

Comments
 (0)