(IResource.CanWrite): new property.

(ArchiveFormat.CanCreate): renamed to CanWrite.
This commit is contained in:
morkt
2016-10-11 00:05:22 +04:00
parent 3c5a61d580
commit f1d66206bc
248 changed files with 323 additions and 279 deletions

View File

@@ -37,7 +37,7 @@ namespace GameRes.Formats.Hexenhaus
public override string Description { get { return "Hexenhaus audio archive"; } }
public override uint Signature { get { return 0x4F49444F; } } // 'ODIO'
public override bool IsHierarchic { get { return false; } }
public override bool CanCreate { get { return false; } }
public override bool CanWrite { get { return false; } }
public BinOpener ()
{
@@ -79,7 +79,7 @@ namespace GameRes.Formats.Hexenhaus
if (entry.Size < 0x2C || !arc.File.View.AsciiEqual (entry.Offset, "ONCE"))
return base.OpenEntry (arc, entry);
var input = arc.File.CreateStream (entry.Offset+0x2C, entry.Size-0x2C);
return new EncryptedStream (input);
return new Ror4EncryptedStream (input);
}
}
}