When scanning in 7z files make sure we are actually setting the rom file size.
Fixes issue #255
This commit is contained in:
parent
69ef7d12d3
commit
23eeaeeb2c
|
@ -751,6 +751,9 @@ void CRomBrowser::FillRomList ( strlist & FileList, const CPath & BaseDirectory,
|
||||||
RomInfo.InternalName[count + 2] ^= RomInfo.InternalName[count + 1];
|
RomInfo.InternalName[count + 2] ^= RomInfo.InternalName[count + 1];
|
||||||
RomInfo.InternalName[count + 1] ^= RomInfo.InternalName[count + 2];
|
RomInfo.InternalName[count + 1] ^= RomInfo.InternalName[count + 2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RomInfo.RomSize = f->Size;
|
||||||
|
|
||||||
WriteTrace(TraceDebug,__FUNCTION__ ": 15");
|
WriteTrace(TraceDebug,__FUNCTION__ ": 15");
|
||||||
RomInfo.InternalName[21] = '\0';
|
RomInfo.InternalName[21] = '\0';
|
||||||
RomInfo.CartID[0] = *(RomData + 0x3F);
|
RomInfo.CartID[0] = *(RomData + 0x3F);
|
||||||
|
|
Loading…
Reference in New Issue