mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
Revert part of r6bfb8c9597dc so new memory card files will be created.
some how I neglected to remember that r+ requires the file to exist.
still should fix the issue with 0 byte memory cards.
This reverts commit 6bfb8c9597
.
This commit is contained in:
parent
702905131b
commit
87954dacad
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ void innerFlush(FlushData* data)
|
||||||
SplitPath(data->filename, &dir, 0, 0);
|
SplitPath(data->filename, &dir, 0, 0);
|
||||||
if (!File::IsDirectory(dir))
|
if (!File::IsDirectory(dir))
|
||||||
File::CreateFullPath(dir);
|
File::CreateFullPath(dir);
|
||||||
pFile.Open(data->filename, "r+b");
|
pFile.Open(data->filename, "wb");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pFile) // Note - pFile changed inside above if
|
if (!pFile) // Note - pFile changed inside above if
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue