by Edward-san » Fri Apr 15, 2016 6:52 am
At a certain point, in the while loop at line 636 in pngtexture.cpp, 'len' has value '6', then becomes '28326' with the biglong conversion, 'id' is:
{'\a','\221','\0','\0'} (37127)
while 'lump' has:
'Length = 2853, StartPos = 351, FilePos = 424'.
Then, it goes to the 'default' switch, making the code execute 'lump->Seek (len, SEEK_CUR)', making 'lump' containing
'Length = 2853, StartPos = 351, FilePos = 28750'.
Does this help?
[edit] The grAb chunk is found but it's not handled in the switch. Is that okay?
At a certain point, in the while loop at line 636 in pngtexture.cpp, 'len' has value '6', then becomes '28326' with the biglong conversion, 'id' is:
{'\a','\221','\0','\0'} (37127)
while 'lump' has:
'Length = 2853, StartPos = 351, FilePos = 424'.
Then, it goes to the 'default' switch, making the code execute 'lump->Seek (len, SEEK_CUR)', making 'lump' containing
'Length = 2853, StartPos = 351, FilePos = 28750'.
Does this help?
[edit] The grAb chunk is found but it's not handled in the switch. Is that okay?