From 23eeaeeb2cc1e73f2b5117be3eb15b9036e56c28 Mon Sep 17 00:00:00 2001 From: Emmet Young Date: Wed, 29 Apr 2015 23:02:53 +1000 Subject: [PATCH] When scanning in 7z files make sure we are actually setting the rom file size. Fixes issue #255 --- Source/Project64/User Interface/Rom Browser Class.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Project64/User Interface/Rom Browser Class.cpp b/Source/Project64/User Interface/Rom Browser Class.cpp index 7547b2d73..ee085c885 100644 --- a/Source/Project64/User Interface/Rom Browser Class.cpp +++ b/Source/Project64/User Interface/Rom Browser Class.cpp @@ -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);