From a6c00441d817354c2c1cb5be98fc4a54ab0e1c47 Mon Sep 17 00:00:00 2001 From: dcvz Date: Sun, 2 Jun 2024 19:26:01 +0200 Subject: [PATCH] Fix bug with saving error detection, changed saving error message --- librecomp/src/pi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librecomp/src/pi.cpp b/librecomp/src/pi.cpp index fb1f494..8ee7025 100644 --- a/librecomp/src/pi.cpp +++ b/librecomp/src/pi.cpp @@ -116,10 +116,10 @@ void update_save_file() { } } if (!saving_failed) { - saving_failed = recomp::finalize_output_file_with_backup(get_save_file_path()); + saving_failed = !recomp::finalize_output_file_with_backup(get_save_file_path()); } if (saving_failed) { - ultramodern::error_handling::message_box("Failed to write to the save file. Check your file permissions. If you have moved your appdata folder to Dropbox or similar, this can cause issues."); + ultramodern::error_handling::message_box("Failed to write to the save file. Check your file permissions and whether the save folder has been moved to Dropbox or similar, as this can cause issues."); } }