Split IPackage into IReadOnlyPackage and IReadWritePackage.

This commit is contained in:
Paul Chote
2016-01-15 22:49:12 +00:00
parent 77b0bd6067
commit f8d0b97e8d
13 changed files with 40 additions and 52 deletions

View File

@@ -17,7 +17,7 @@ using ICSharpCode.SharpZipLib.Zip.Compression;
namespace OpenRA.FileSystem
{
public sealed class InstallShieldCABExtractor : IPackage
public sealed class InstallShieldCABExtractor : IReadOnlyPackage
{
const uint FileSplit = 0x1;
const uint FileObfuscated = 0x2;
@@ -451,11 +451,6 @@ namespace OpenRA.FileSystem
GetContentById(index, destfile);
}
public void Write(Dictionary<string, byte[]> input)
{
throw new NotImplementedException("Cannot Add Files To Cab");
}
public IEnumerable<uint> ClassicHashes()
{
return fileLookup.Keys.Select(k => PackageEntry.HashFilename(k, PackageHashType.Classic));