Merge pull request #1233 from LuigiBlood/64ddsave
[64DD] Avoid Disk save disappearing when crashing during save
This commit is contained in:
commit
5d18a5ec5c
|
@ -76,7 +76,7 @@ bool CN64Disk::SaveDiskImage()
|
||||||
|
|
||||||
WriteTrace(TraceN64System, TraceDebug, "Trying to open %s (Shadow File)", ShadowFile.c_str());
|
WriteTrace(TraceN64System, TraceDebug, "Trying to open %s (Shadow File)", ShadowFile.c_str());
|
||||||
m_DiskFile.Close();
|
m_DiskFile.Close();
|
||||||
if (!m_DiskFile.Open(ShadowFile.c_str(), CFileBase::modeWrite | CFileBase::modeCreate))
|
if (!m_DiskFile.Open(ShadowFile.c_str(), CFileBase::modeWrite | CFileBase::modeCreate | CFileBase::modeNoTruncate))
|
||||||
{
|
{
|
||||||
WriteTrace(TraceN64System, TraceError, "Failed to open %s (Shadow File)", ShadowFile.c_str());
|
WriteTrace(TraceN64System, TraceError, "Failed to open %s (Shadow File)", ShadowFile.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue