public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "HBSS") && reader.CheckSignature(4, "RDHS", 16));
     }
 }
示例#2
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true))
     {
         if (reader.CheckSignature(4, "EFCF") ||
             reader.CheckSignature(4, "EFCC"))
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
示例#3
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(8, "MsgStdBn"));
     }
 }
示例#4
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "FLIM", reader.BaseStream.Length - 0x28));
     }
 }
示例#5
0
        public bool Identify(System.IO.Stream stream)
        {
            using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true))
            {
                //File too small to have any data
                if (stream.Length <= 16)
                {
                    return(false);
                }

                if (reader.CheckSignature(2, "BY") || reader.CheckSignature(2, "YB"))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
        }