Example #1
0
 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));
     }
 }
Example #2
0
 /// <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));
     }
 }
Example #3
0
 public static void TrySaveSSBHFile(string FilePath, ISSBH_File File)
 {
     SSBHExporter.WriteSSBHFile(FilePath, File, true);
 }
Example #4
0
 public static bool TryParseSSBHFile(string FilePath, out ISSBH_File HBSSFile)
 {
     return(TryParseSSBHFile(File.ReadAllBytes(FilePath), out HBSSFile));
 }
Example #5
0
 /// <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));
 }