bug fix
This commit is contained in:
parent
5d5879bd26
commit
44c2a8c243
|
@ -582,7 +582,9 @@ bool GameInfo::loadROM(u8* file, s32 fileSize)
|
||||||
closeROM();
|
closeROM();
|
||||||
|
|
||||||
// create memory stream
|
// create memory stream
|
||||||
reader = MemROMReaderRead_TrueInit(file, fileSize);
|
romdataForReader = new u8[fileSize];
|
||||||
|
memcpy(romdataForReader, file, fileSize);
|
||||||
|
reader = MemROMReaderRead_TrueInit(romdataForReader, fileSize);
|
||||||
fROM = reader->Init(NULL);
|
fROM = reader->Init(NULL);
|
||||||
|
|
||||||
headerOffset = 0;
|
headerOffset = 0;
|
||||||
|
|
Loading…
Reference in New Issue