private bool CheckFormat(KAPLFile file) { FourCC fourCC = file.ReadFourCC(); if (fourCC == "KAPL") { return(true); } return(false); }
protected override SRFile CreateFromStream(string path, Stream stream) { var file = new KAPLFile(path, stream); if (!CheckFormat(file)) { file.Close(); file = null; } return(file); }