xdanieldzd / Scarlet

Game data conversion/export/import helper libraries - UNMAINTAINED
Other
97 stars 22 forks source link

Possible fix TID compression flag #26

Open shangjiaxuan opened 5 years ago

shangjiaxuan commented 5 years ago

The compression flag for the format may be wrong. TID files from neptunia v2's GAME0000 GAME00000\event\bg\ has many TID files that has DXT5 compression fourcc, with the bit not set.

The proposed fix is directly check for the compression fourcc. However, a string type is not a char[] as in c/c++. The current fix treats all fourccs with NULL start as non-compressed.

The fix works for Neptunia v2 TID files, but I do not know if it breaks things elsewhere.

(I'm sorry if there's coding style error, etc. I simply do not know much about csharp...)