From f3675320d8eb147c2e2d4f2726ba5a62852ff108 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Mon, 19 Dec 2022 14:55:53 +0400 Subject: [PATCH] Fixed IPS loader to prevent double archive browser --- src/drivers/win/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index 82c845b5..3aae132b 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -1078,12 +1078,12 @@ void CloseGame() bool ALoad(const char *nameo, char* innerFilename, bool silent) { - FCEUFILE* patchTrial = FCEU_fopen(nameo,nullptr,"rb",nullptr,-1); + FILE* patchTrial = fopen(nameo, "rb"); if(patchTrial) { char sig[10] = {0}; - FCEU_fread(sig,1,5,patchTrial); - FCEU_fclose(patchTrial); + fread(sig,1,5,patchTrial); + fclose(patchTrial); if(!strcmp(sig,"PATCH")) { //assuming it's a patch: