Changes
Jump to navigation
Jump to search
m
→Texture page calculation: 4 bits! It's four bits!
string StrByte = InputBytes[TexturePage_index].ToString("X2"); //Gets TPage byte as HEX text
StrByte = "0" + StrByte.Substring(1); // Deletes the first char/ 6 4 bits
Byte TPage = Byte.Parse(StrByte); // Parses result as new byte
int TPageINT = TPage * 128; //For 8 bit TIM's, the texture page is 128 sized