Slightly more work

This commit is contained in:
Matt Nadareski
2025-08-28 07:54:22 -04:00
parent 5dda3e2c81
commit 9b9d3176ec
2 changed files with 40 additions and 4 deletions

View File

@@ -11,7 +11,26 @@ namespace SabreTools.Serialization.Deserializers
/// <inheritdoc/>
public override Archive? Deserialize(Stream? data)
{
throw new System.NotImplementedException();
// If the data is invalid
if (data == null || !data.CanRead)
return null;
try
{
// Cache the current offset
long initialOffset = data.Position;
var archive = new Archive();
// TODO: Implement everything
return archive;
}
catch
{
// Ignore the actual error
return null;
}
}
}
}

View File

@@ -11,9 +11,26 @@ namespace SabreTools.Serialization.Deserializers
/// <inheritdoc/>
public override Archive? Deserialize(Stream? data)
{
throw new System.NotImplementedException();
// If the data is invalid
if (data == null || !data.CanRead)
return null;
try
{
// Cache the current offset
long initialOffset = data.Position;
var archive = new Archive();
// TODO: Implement everything
return archive;
}
catch
{
// Ignore the actual error
return null;
}
}
}
}