cellMusic: improve logging

This commit is contained in:
Megamouse 2025-04-22 22:57:31 +02:00
parent 5ca5b54bf6
commit 22c184bf75
4 changed files with 59 additions and 31 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()), !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);
}