Beispiel #1
0
        public bool IsEmptyFrame(string[] str)
        {
            var frame = new GameCubeFrame();

            frame.Parse(str);
            return(frame.IsEmpty());
        }
Beispiel #2
0
 public static void Write(FileStream stream, InputLog log, bool isWii)
 {
     if (isWii)
     {
         foreach (var str in log.Log)
         {
             var frame = new WiiMoteFrame();
             frame.Parse(str);
             var buffer = frame.GetBytes();
             stream.Write(buffer, 0, buffer.Length);
         }
     }
     else
     {
         foreach (var str in log.Log)
         {
             var frame = new GameCubeFrame();
             frame.Parse(str);
             var buffer = frame.GetBytes();
             stream.Write(buffer, 0, buffer.Length);
         }
     }
 }