Replace some calls to fopen with File::OpenCFile (utf8).

This commit is contained in:
Henrik Rydgard
2016-01-17 15:59:20 +01:00
parent 27c71aa340
commit 3ba911bf07
8 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -806,7 +806,7 @@ namespace MainWindow {
} else if (info.type == FILETYPE_DIRECTORY) {
MessageBox(hWnd, L"Cannot extract directories.", L"Sorry", 0);
} else if (W32Util::BrowseForFileName(false, hWnd, L"Save file as...", 0, L"All files\0*.*\0\0", L"", fn)) {
FILE *fp = fopen(fn.c_str(), "wb");
FILE *fp = File::OpenCFile(fn.c_str(), "wb");
u32 handle = pspFileSystem.OpenFile(filename, FILEACCESS_READ, "");
u8 buffer[4096];
while (pspFileSystem.ReadFile(handle, buffer, sizeof(buffer)) > 0) {