mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Minor tweaks.
This commit is contained in:
parent
3ba911bf07
commit
d5196b44f9
4 changed files with 4 additions and 4 deletions
|
@ -236,7 +236,7 @@ bool GameManager::InstallGame(std::string zipfile, bool deleteAfter) {
|
|||
}
|
||||
|
||||
zip_file *zf = zip_fopen_index(z, i, 0);
|
||||
FILE *f = File::OpenCFile(outFilename.c_str(), "wb");
|
||||
FILE *f = File::OpenCFile(outFilename, "wb");
|
||||
if (f) {
|
||||
size_t pos = 0;
|
||||
const size_t blockSize = 1024 * 128;
|
||||
|
|
|
@ -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 = File::OpenCFile(fn.c_str(), "wb");
|
||||
FILE *fp = File::OpenCFile(fn, "wb");
|
||||
u32 handle = pspFileSystem.OpenFile(filename, FILEACCESS_READ, "");
|
||||
u8 buffer[4096];
|
||||
while (pspFileSystem.ReadFile(handle, buffer, sizeof(buffer)) > 0) {
|
||||
|
|
|
@ -339,7 +339,7 @@ double CompareScreenshot(const std::vector<u32> &pixels, u32 stride, u32 w, u32
|
|||
// We assume the bitmap is the specified size, not including whatever stride.
|
||||
u32 *reference = (u32 *) calloc(stride * h, sizeof(u32));
|
||||
|
||||
FILE *bmp = File::OpenCFile(screenshotFilename.c_str(), "rb");
|
||||
FILE *bmp = File::OpenCFile(screenshotFilename, "rb");
|
||||
if (bmp)
|
||||
{
|
||||
// The bitmap header is 14 + 40 bytes. We could validate it but the test would fail either way.
|
||||
|
|
|
@ -117,7 +117,7 @@ void WindowsHeadlessHost::SendDebugScreenshot(const u8 *pixbuf, u32 w, u32 h)
|
|||
{
|
||||
// Lazy, just read in the original header to output the failed screenshot.
|
||||
u8 header[14 + 40] = {0};
|
||||
FILE *bmp = File::OpenCFile(comparisonScreenshot.c_str(), "rb");
|
||||
FILE *bmp = File::OpenCFile(comparisonScreenshot, "rb");
|
||||
if (bmp)
|
||||
{
|
||||
fread(&header, sizeof(header), 1, bmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue