mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 09:49:03 +02:00
Replace some calls to fopen with File::OpenCFile (utf8).
This commit is contained in:
1 parent
27c71aa340
commit
3ba911bf07
8 files changed
+12
-14
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user