Skip to content

Possible fix TID compression flag - #26

Open
shangjiaxuan wants to merge 2 commits into
xdanieldzd:masterfrom
shangjiaxuan:TID_fix
Open

Possible fix TID compression flag#26
shangjiaxuan wants to merge 2 commits into
xdanieldzd:masterfrom
shangjiaxuan:TID_fix

Conversation

@shangjiaxuan

@shangjiaxuan shangjiaxuan commented Apr 20, 2019

Copy link
Copy Markdown

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...)

@shangjiaxuan
shangjiaxuan marked this pull request as ready for review April 20, 2019 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant