internal bool ParseHeader(TabStream s) { var marker = s.LE_ReadUInt32(); if (marker != POWERTABFILE_MARKER) { Console.WriteLine("Marker error: {0:X}", marker); return(false); } m_version = s.LE_ReadUInt16(); switch (m_version) { case FILEVERSION_1_0: case FILEVERSION_1_0_2: throw new NotImplementedException("Need to implement 1.0.x reader"); case FILEVERSION_1_5: throw new NotImplementedException("Need to implement 1.5 reader"); case FILEVERSION_1_7: return(ParseHeader_1_7(s)); default: return(false); } }
internal bool ParseHeader(TabStream s) { var marker = s.LE_ReadUInt32(); if (marker != POWERTABFILE_MARKER) { Console.WriteLine("Marker error: {0:X}", marker); return false; } m_version = s.LE_ReadUInt16(); switch (m_version) { case FILEVERSION_1_0: case FILEVERSION_1_0_2: throw new NotImplementedException("Need to implement 1.0.x reader"); case FILEVERSION_1_5: throw new NotImplementedException("Need to implement 1.5 reader"); case FILEVERSION_1_7: return ParseHeader_1_7(s); default: return false; } }
public static bool IsType(TabStream s) { s.Position = 0; return(s.LE_ReadUInt32() == PowerTabHeader.POWERTABFILE_MARKER); }
public static bool IsType(TabStream s) { s.Position = 0; return s.LE_ReadUInt32() == PowerTabHeader.POWERTABFILE_MARKER; }