Savestates: Fixup file write

This commit is contained in:
Elad Ashkenazi 2024-05-05 04:37:49 +03:00
parent 0fcb0b7d8e
commit 91a54c11eb
3 changed files with 11 additions and 8 deletions

View file

@ -740,7 +740,7 @@ void gui_application::InitializeCallbacks()
verbose_message = "\n" + *str_ptr;
}
bytes_written = std::max<usz>(ar_ptr->get_size(), old_written);
bytes_written = ar_ptr->is_writing() ? std::max<usz>(ar_ptr->get_size(), old_written) : old_written;
break;
}