This commit is contained in:
SuuperW 2019-09-30 11:38:24 -05:00
parent 5d5879bd26
commit 44c2a8c243
1 changed files with 3 additions and 1 deletions

View File

@ -582,7 +582,9 @@ bool GameInfo::loadROM(u8* file, s32 fileSize)
closeROM();
// 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);
headerOffset = 0;