static public void GetGuerillaHeader(string TagClass, byte[] HeaderData) { FileInfo fi = new FileInfo(Application.StartupPath + @"\Tag Headers\" + TagClass + "." + "BLAM"); FileStream TagHdrStream; TagHdrStream = fi.Open(FileMode.Open, FileAccess.Read); TagHdrStream.Read(HeaderData, 0, 64); TagHdrStream.Close(); }
static public void GetGuerillaHeader(MapfileVersion ver, string TagClass, byte[] HeaderData) { FileInfo fi = null; if (ver == MapfileVersion.XHALO2) { fi = new FileInfo(Application.StartupPath + @"\Halo2 Tag Headers\" + TagClass + "." + "BLAM"); } else { fi = new FileInfo(Application.StartupPath + @"\Tag Headers\" + TagClass + "." + "BLAM"); } FileStream TagHdrStream; TagHdrStream = fi.Open(FileMode.Open, FileAccess.Read); TagHdrStream.Read(HeaderData, 0, 64); TagHdrStream.Close(); }