mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 19:14:18 +01:00
gsdx:windows: Fix screenshot/GS dump path issues
Fixes an issue with screenshots/GS dumps not saving if the path contains characters not present in the current codepage.
This commit is contained in:
1 parent
c9dbd4118b
commit
286e7293fa
4 files changed
+4
-3
No files matched your search
@@ -52,7 +52,7 @@ namespace GSPng {
|
||||
const int offset = first_image ? 0 : pixel[fmt].bytes_per_pixel_out;
|
||||
const int bytes_per_pixel_out = first_image ? pixel[fmt].bytes_per_pixel_out : bytes_per_pixel_in - offset;
|
||||
|
||||
FILE *fp = fopen(file.c_str(), "wb");
|
||||
FILE *fp = px_fopen(file, "wb");
|
||||
if (fp == nullptr)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user