mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(EXE): imporved RT_VERSION parser.
This commit is contained in:
parent
5f9340c32b
commit
67811651d4
@ -175,17 +175,23 @@ namespace GameRes.Formats.Microsoft
|
||||
input.Position = pos;
|
||||
if (input.ReadUInt32() != 0xFEEF04BDu)
|
||||
break;
|
||||
input.Position = pos + value_length;
|
||||
int str_info_length = input.ReadUInt16();
|
||||
int info_length = value_length;
|
||||
bool found_string_info = false;
|
||||
do
|
||||
{
|
||||
pos += info_length;
|
||||
input.Position = pos;
|
||||
info_length = input.ReadUInt16();
|
||||
value_length = input.ReadUInt16();
|
||||
type = input.ReadUInt16();
|
||||
if (value_length != 0)
|
||||
break;
|
||||
if (input.ReadCString (Encoding.Unicode) != "StringFileInfo")
|
||||
found_string_info = input.ReadCString (Encoding.Unicode) == "StringFileInfo";
|
||||
}
|
||||
while (!found_string_info && input.PeekByte() != -1);
|
||||
if (!found_string_info)
|
||||
break;
|
||||
pos = (input.Position + 3) & -4L;
|
||||
input.Position = pos;
|
||||
int info_length = input.ReadUInt16();
|
||||
info_length = input.ReadUInt16();
|
||||
long end_pos = pos + info_length;
|
||||
value_length = input.ReadUInt16();
|
||||
type = input.ReadUInt16();
|
||||
|
Loading…
Reference in New Issue
Block a user