public HSE_Animation(string file_name) { using (FileStream strm = new FileStream(file_name, FileMode.Open)) { EndianBinaryReader reader = new EndianBinaryReader(strm, Endian.Little); int test = reader.PeekReadInt32(); if (reader.PeekReadInt32() == 5397068) { reader = LZR.Decompress(reader); } Load_HSE(reader); } }
public TIM(string file_name) { // Load a png. Simple! if (Path.GetExtension(file_name) == ".png") { m_Image = new Bitmap(file_name); return; } // Need to load a TIM. using (FileStream strm = new FileStream(file_name, FileMode.Open)) { EndianBinaryReader reader = new EndianBinaryReader(strm, Endian.Little); int test = reader.PeekReadInt32(); if (reader.PeekReadInt32() == 5397068) { reader = LZR.Decompress(reader); } Load_TIM(reader); } }