public static bool TryParseSSBHFile(byte[] FileData, out ISSBH_File HBSSFile) { HBSSFile = null; using (SSBHParser R = new SSBHParser(new MemoryStream(FileData))) { return(R.TryParse(out HBSSFile)); } }
/// <summary> /// Trys to parse an SSBH file from a byte array /// </summary> /// <param name="fileData"></param> /// <param name="hbssFile"></param> /// <returns>true if parsing was successful</returns> public static bool TryParseSSBHFile(byte[] fileData, out ISSBH_File hbssFile) { hbssFile = null; using (var parser = new SSBHParser(new MemoryStream(fileData))) { return(parser.TryParse(out hbssFile)); } }
public static void TrySaveSSBHFile(string FilePath, ISSBH_File File) { SSBHExporter.WriteSSBHFile(FilePath, File, true); }
public static bool TryParseSSBHFile(string FilePath, out ISSBH_File HBSSFile) { return(TryParseSSBHFile(File.ReadAllBytes(FilePath), out HBSSFile)); }
/// <summary> /// Trys to parse an SSBH file from a filepath /// </summary> /// <param name="filePath"></param> /// <param name="hbssFile"></param> /// <returns>true if parsing was successful</returns> public static bool TryParseSSBHFile(string filePath, out ISSBH_File hbssFile) { return(TryParseSSBHFile(File.ReadAllBytes(filePath), out hbssFile)); }