mirror of https://github.com/PCSX2/pcsx2.git
CDVD: Correct NVM file saving to be in write mode
This commit is contained in:
parent
f3776fa886
commit
a0d32d493c
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue