mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
IopBios: Use FileSystem for host access
This commit is contained in:
committed by
refractionpcsx2
parent
a143122804
commit
501af632f7
+2
-1
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "PrecompiledHeader.h"
|
||||
#include "Common.h"
|
||||
#include "common/FileSystem.h"
|
||||
|
||||
#include "GS.h" // for sending game crc to mtgs
|
||||
#include "Elfheader.h"
|
||||
@@ -152,7 +153,7 @@ void ElfObject::readIso(IsoFile& file)
|
||||
void ElfObject::readFile()
|
||||
{
|
||||
int rsize = 0;
|
||||
FILE *f = wxFopen( filename, "rb" );
|
||||
FILE *f = FileSystem::OpenCFile( filename.ToUTF8(), "rb" );
|
||||
if (f == NULL) throw Exception::FileNotFound( filename );
|
||||
|
||||
fseek(f, 0, SEEK_SET);
|
||||
|
||||
Reference in New Issue
Block a user