CDVD: Correct NVM file saving to be in write mode

This commit is contained in:
refractionpcsx2 2024-06-14 21:32:23 +01:00
parent f3776fa886
commit a0d32d493c
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ void cdvdSaveNVRAM()
{
Error error;
const std::string nvmfile = cdvdGetNVRAMPath();
auto fp = FileSystem::OpenManagedCFile(nvmfile.c_str(), "r+b", &error);
auto fp = FileSystem::OpenManagedCFile(nvmfile.c_str(), "wb", &error);
if (!fp)
{
ERROR_LOG("Failed to open NVRAM at {} for updating: {}", Path::GetFileName(nvmfile), error.GetDescription());