When scanning in 7z files make sure we are actually setting the rom file size.

Fixes issue #255
This commit is contained in:
Emmet Young 2015-04-29 23:02:53 +10:00
parent 69ef7d12d3
commit 23eeaeeb2c
1 changed files with 3 additions and 0 deletions

View File

@ -751,6 +751,9 @@ void CRomBrowser::FillRomList ( strlist & FileList, const CPath & BaseDirectory,
RomInfo.InternalName[count + 2] ^= RomInfo.InternalName[count + 1];
RomInfo.InternalName[count + 1] ^= RomInfo.InternalName[count + 2];
}
RomInfo.RomSize = f->Size;
WriteTrace(TraceDebug,__FUNCTION__ ": 15");
RomInfo.InternalName[21] = '\0';
RomInfo.CartID[0] = *(RomData + 0x3F);