lab313ru / tim2view

TIM, TM2 formats viewer, converter, searcher, editor, scanner, ripper
http://lab313.ru
48 stars 9 forks source link

Support for 4bpp TIM files without CLUT. #7

Open josejl1987 opened 8 years ago

josejl1987 commented 8 years ago

I stumbled upon some TIM files that aren't recognised by Tim2View.

`function CheckCLUT(TIM: PTIM): Boolean;

begin

Result := (TIM^.CLUT^.wClutsCount <=0) or (CheckCLUTColors(TIM) and CheckCLUTCount(TIM) and CheckCLUTVramX(TIM) and CheckCLUTVramY(TIM));

end;`

I made this edit as a workaround,and they seem to load just fine, although I'm not sure if this might cause any side effects.

lab313ru commented 8 years ago

I'll check it, thank you. Could you provide name of this game, or this tim-file?

josejl1987 commented 8 years ago

KANJI.zip