Skip to content

Commit

Permalink
CDVD: Correct NVM file saving to be in write mode
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jun 14, 2024
1 parent f3776fa commit a0d32d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/CDVD/CDVD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit a0d32d4

Please sign in to comment.