mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-08 18:06:34 +00:00
Minor addition of usings
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using SabreTools.Models.AACS;
|
||||
|
||||
namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
@@ -14,8 +15,8 @@ namespace BinaryObjectScanner.FileType
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
{
|
||||
var record = Array.Find(_wrapper.Records, r => r.RecordType == SabreTools.Models.AACS.RecordType.TypeAndVersion);
|
||||
if (record is SabreTools.Models.AACS.TypeAndVersionRecord tavr)
|
||||
var record = Array.Find(_wrapper.Records, r => r.RecordType == RecordType.TypeAndVersion);
|
||||
if (record is TypeAndVersionRecord tavr)
|
||||
return $"AACS {tavr.VersionNumber}";
|
||||
|
||||
return "AACS (Unknown Version)";
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
using System.IO;
|
||||
using SabreTools.Serialization.Wrappers;
|
||||
|
||||
namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
/// <summary>
|
||||
/// PlayJ audio file
|
||||
/// </summary>
|
||||
public class PLJ : DetectableBase<SabreTools.Serialization.Wrappers.PlayJAudioFile>
|
||||
public class PLJ : DetectableBase<PlayJAudioFile>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public PLJ(SabreTools.Serialization.Wrappers.PlayJAudioFile? wrapper) : base(wrapper) { }
|
||||
public PLJ(PlayJAudioFile? wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
Reference in New Issue
Block a user