diff --git a/ArcFormats/AZSys/ArcAZSys.cs b/ArcFormats/AZSys/ArcAZSys.cs index 53d6c7af..03a0e20f 100644 --- a/ArcFormats/AZSys/ArcAZSys.cs +++ b/ArcFormats/AZSys/ArcAZSys.cs @@ -63,7 +63,7 @@ namespace GameRes.Formats.AZSys public override string Description { get { return "AZ system resource archive"; } } public override uint Signature { get { return 0x1a435241; } } // 'ARC\x1a' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/AZSys/ArcEncrypted.cs b/ArcFormats/AZSys/ArcEncrypted.cs index f0f96bfe..bd02620b 100644 --- a/ArcFormats/AZSys/ArcEncrypted.cs +++ b/ArcFormats/AZSys/ArcEncrypted.cs @@ -172,7 +172,7 @@ namespace GameRes.Formats.AZSys public override string Description { get { return "AZ system encrypted resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static Dictionary KnownSchemes = new Dictionary { @@ -358,7 +358,7 @@ namespace GameRes.Formats.AZSys public override string Description { get { return "AZ system encrypted resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcIsaacEncryptedOpener () { diff --git a/ArcFormats/Abel/ArcARC.cs b/ArcFormats/Abel/ArcARC.cs index a5cf89bd..b3273a9e 100644 --- a/ArcFormats/Abel/ArcARC.cs +++ b/ArcFormats/Abel/ArcARC.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Abel public override string Description { get { return "ADVEngine resource archive"; } } public override uint Signature { get { return 0x00637261; } } // 'arc' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/Abel/ImageGPS.cs b/ArcFormats/Abel/ImageGPS.cs index 890a02e3..aac4cd25 100644 --- a/ArcFormats/Abel/ImageGPS.cs +++ b/ArcFormats/Abel/ImageGPS.cs @@ -45,6 +45,7 @@ namespace GameRes.Formats.Abel public override string Tag { get { return "GPS"; } } public override string Description { get { return "ADVEngine compressed bitmap"; } } public override uint Signature { get { return 0x535047; } } // 'GPS' + public override bool CanWrite { get { return false; } } public GpsFormat () { diff --git a/ArcFormats/Actgs/ArcDAT.cs b/ArcFormats/Actgs/ArcDAT.cs index e4face27..080775ee 100644 --- a/ArcFormats/Actgs/ArcDAT.cs +++ b/ArcFormats/Actgs/ArcDAT.cs @@ -57,7 +57,7 @@ namespace GameRes.Formats.Actgs public override string Description { get { return "ACTGS engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/ActiveSoft/ArcADPACK.cs b/ArcFormats/ActiveSoft/ArcADPACK.cs index df38bfe1..93268ea3 100644 --- a/ArcFormats/ActiveSoft/ArcADPACK.cs +++ b/ArcFormats/ActiveSoft/ArcADPACK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.AdPack public override string Description { get { return "A98SYS Engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { @@ -85,7 +85,7 @@ namespace GameRes.Formats.AdPack public override string Description { get { return "Active Soft resource archive"; } } public override uint Signature { get { return 0x41504441; } } // "ADPA" public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Pak32Opener () { diff --git a/ArcFormats/AdvSys/ArcAdvSysT.cs b/ArcFormats/AdvSys/ArcAdvSysT.cs index 5c4c3c32..1e1b68ea 100644 --- a/ArcFormats/AdvSys/ArcAdvSysT.cs +++ b/ArcFormats/AdvSys/ArcAdvSysT.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.AdvSys public override string Description { get { return "AdvSys_T engine resource archive"; } } public override uint Signature { get { return 0x5957464D; } } // 'MFWY' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public FpkOpener () { diff --git a/ArcFormats/AliceSoft/ArcAFA.cs b/ArcFormats/AliceSoft/ArcAFA.cs index ba40d37f..fc9e15af 100644 --- a/ArcFormats/AliceSoft/ArcAFA.cs +++ b/ArcFormats/AliceSoft/ArcAFA.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.AliceSoft public override string Description { get { return "AliceSoft System 4 resource archive"; } } public override uint Signature { get { return 0x48414641; } } // 'AFAH' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/AliceSoft/ArcALD.cs b/ArcFormats/AliceSoft/ArcALD.cs index 0d67630c..3ff24b21 100644 --- a/ArcFormats/AliceSoft/ArcALD.cs +++ b/ArcFormats/AliceSoft/ArcALD.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.AliceSoft public override string Description { get { return "AliceSoft System engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/AliceSoft/ArcALK.cs b/ArcFormats/AliceSoft/ArcALK.cs index 33e633df..0572bbbb 100644 --- a/ArcFormats/AliceSoft/ArcALK.cs +++ b/ArcFormats/AliceSoft/ArcALK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.AliceSoft public override string Description { get { return "AliceSoft System 4 resource archive"; } } public override uint Signature { get { return 0x304B4C41; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Amaterasu/ArcAMI.cs b/ArcFormats/Amaterasu/ArcAMI.cs index f4bd4b6d..0faaab43 100644 --- a/ArcFormats/Amaterasu/ArcAMI.cs +++ b/ArcFormats/Amaterasu/ArcAMI.cs @@ -87,11 +87,11 @@ namespace GameRes.Formats.Amaterasu [Export(typeof(ArchiveFormat))] public class AmiOpener : ArchiveFormat { - public override string Tag { get { return "AMI"; } } + public override string Tag { get { return "AMI"; } } public override string Description { get { return Strings.arcStrings.AMIDescription; } } - public override uint Signature { get { return 0x00494d41; } } - public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override uint Signature { get { return 0x00494D41; } } // 'AMI' + public override bool IsHierarchic { get { return false; } } + public override bool CanWrite { get { return true; } } public AmiOpener () { diff --git a/ArcFormats/Amaterasu/ImageGRP.cs b/ArcFormats/Amaterasu/ImageGRP.cs index 48e21e6b..784e10d8 100644 --- a/ArcFormats/Amaterasu/ImageGRP.cs +++ b/ArcFormats/Amaterasu/ImageGRP.cs @@ -35,9 +35,10 @@ namespace GameRes.Formats.Amaterasu [Export(typeof(ImageFormat))] public class GrpFormat : ImageFormat { - public override string Tag { get { return "GRP"; } } + public override string Tag { get { return "GRP"; } } public override string Description { get { return Strings.arcStrings.GRPDescription; } } - public override uint Signature { get { return 0x00505247; } } + public override uint Signature { get { return 0x00505247; } } // 'GRP' + public override bool CanWrite { get { return true; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/AnimeGameSystem/ArcDAT.cs b/ArcFormats/AnimeGameSystem/ArcDAT.cs index 5d6397e6..287113f6 100644 --- a/ArcFormats/AnimeGameSystem/ArcDAT.cs +++ b/ArcFormats/AnimeGameSystem/ArcDAT.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Ags public override string Description { get { return "AnimeGameSystem resource archive"; } } public override uint Signature { get { return 0x6B636170; } } // 'pack' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/AnimeGameSystem/AudioPCM.cs b/ArcFormats/AnimeGameSystem/AudioPCM.cs index 33dd62d2..6f655b6e 100644 --- a/ArcFormats/AnimeGameSystem/AudioPCM.cs +++ b/ArcFormats/AnimeGameSystem/AudioPCM.cs @@ -30,7 +30,7 @@ using System.IO; namespace GameRes.Formats.Ags { [Export(typeof(AudioFormat))] - public class PcmAudio : WaveAudio + public class PcmAudio : AudioFormat { public override string Tag { get { return "PCM/AGS"; } } public override string Description { get { return "AnimeGameSystem PCM audio"; } } diff --git a/ArcFormats/AnimeGameSystem/ImageAinos.cs b/ArcFormats/AnimeGameSystem/ImageAinos.cs index 5588d4b1..8f8ff3aa 100644 --- a/ArcFormats/AnimeGameSystem/ImageAinos.cs +++ b/ArcFormats/AnimeGameSystem/ImageAinos.cs @@ -56,7 +56,7 @@ namespace GameRes.Formats.Ags public override string Description { get { return "Anime Game System animation resource"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Ankh/ArcGRP.cs b/ArcFormats/Ankh/ArcGRP.cs index e0bed9a7..334d2a45 100644 --- a/ArcFormats/Ankh/ArcGRP.cs +++ b/ArcFormats/Ankh/ArcGRP.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Ankh public override string Description { get { return "Ice Soft resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public GrpOpener () { diff --git a/ArcFormats/Aoi/ArcBOX.cs b/ArcFormats/Aoi/ArcBOX.cs index 6be4a5b9..1c6b4e3b 100644 --- a/ArcFormats/Aoi/ArcBOX.cs +++ b/ArcFormats/Aoi/ArcBOX.cs @@ -50,7 +50,7 @@ namespace GameRes.Formats.Aoi public override string Description { get { return "Aoi engine script archive"; } } public override uint Signature { get { return 0x42494F41; } } // 'AOIB' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static readonly Dictionary VersionKeyMap = new Dictionary { { 5, 0xAD }, @@ -148,7 +148,7 @@ namespace GameRes.Formats.Aoi public override string Description { get { return "Aoi engine script archive"; } } public override uint Signature { get { return 0x4D494F41; } } // 'AOIM' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AoiMyOpener () { @@ -220,7 +220,7 @@ namespace GameRes.Formats.Aoi public override string Description { get { return "Aoi engine script archive"; } } public override uint Signature { get { return 0x004F0041; } } // 'A O ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Aoi/ArcVFS.cs b/ArcFormats/Aoi/ArcVFS.cs index 08265afc..f25a57e0 100644 --- a/ArcFormats/Aoi/ArcVFS.cs +++ b/ArcFormats/Aoi/ArcVFS.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Aoi public override string Description { get { return "Aoi engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public VfsOpener () { diff --git a/ArcFormats/ArcARCX.cs b/ArcFormats/ArcARCX.cs index c2793663..fe7b9317 100644 --- a/ArcFormats/ArcARCX.cs +++ b/ArcFormats/ArcARCX.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.ArcX public override string Description { get { return "ARCX resource archive"; } } public override uint Signature { get { return 0x58435241; } } // 'ARCX' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/ArcAST.cs b/ArcFormats/ArcAST.cs index efc1620e..bcb25c1f 100644 --- a/ArcFormats/ArcAST.cs +++ b/ArcFormats/ArcAST.cs @@ -47,7 +47,7 @@ namespace GameRes.Formats.AST public override string Description { get { return "AST script engine resource archive"; } } public override uint Signature { get { return 0x32435241; } } // 'ARC2' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/ArcAVC.cs b/ArcFormats/ArcAVC.cs index b5cf2a69..51fdbc03 100644 --- a/ArcFormats/ArcAVC.cs +++ b/ArcFormats/ArcAVC.cs @@ -65,7 +65,7 @@ namespace GameRes.Formats.AVC public override string Description { get { return "AVC engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/ArcAil.cs b/ArcFormats/ArcAil.cs index 797c99aa..dfd08143 100644 --- a/ArcFormats/ArcAil.cs +++ b/ArcFormats/ArcAil.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Ail public override string Description { get { return "Ail resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/ArcCG.cs b/ArcFormats/ArcCG.cs index 1fe42ecb..2a1c044d 100644 --- a/ArcFormats/ArcCG.cs +++ b/ArcFormats/ArcCG.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Parsley public override string Description { get { return "Software House Parsley CG archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public CgOpener () { diff --git a/ArcFormats/ArcIKS.cs b/ArcFormats/ArcIKS.cs index dc5b5fc5..d63b200c 100644 --- a/ArcFormats/ArcIKS.cs +++ b/ArcFormats/ArcIKS.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.X public override string Description { get { return "X[iks] resource archive"; } } public override uint Signature { get { return 0x5253504E; } } // 'NPSR' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static Dictionary KnownKeys = new Dictionary() { { "Shikkan ~Hazukashimerareta Karada, Oreta Kokoro~", 0x66 }, diff --git a/ArcFormats/ArcISA.cs b/ArcFormats/ArcISA.cs index 17b97005..7dbe966c 100644 --- a/ArcFormats/ArcISA.cs +++ b/ArcFormats/ArcISA.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.ISM public override string Description { get { return "ISM engine resource archive"; } } public override uint Signature { get { return 0x204d5349; } } // 'ISM ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/ArcKogado.cs b/ArcFormats/ArcKogado.cs index 9eb435f0..6a4c2aa4 100644 --- a/ArcFormats/ArcKogado.cs +++ b/ArcFormats/ArcKogado.cs @@ -55,7 +55,7 @@ namespace GameRes.Formats.Kogado public override string Description { get { return arcStrings.KogadoDescription; } } public override uint Signature { get { return 0x61507948; } } // 'HyPa' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public PakOpener () { diff --git a/ArcFormats/ArcLST.cs b/ArcFormats/ArcLST.cs index d7218c25..52dbef53 100644 --- a/ArcFormats/ArcLST.cs +++ b/ArcFormats/ArcLST.cs @@ -43,7 +43,7 @@ namespace GameRes.Formats.Nexton public override string Description { get { return "Nexton LikeC engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public LstOpener () { diff --git a/ArcFormats/ArcMiris.cs b/ArcFormats/ArcMiris.cs index e55c2b70..300a5ab2 100644 --- a/ArcFormats/ArcMiris.cs +++ b/ArcFormats/ArcMiris.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Miris public override string Description { get { return "Studio Miris resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { @@ -93,7 +93,7 @@ namespace GameRes.Formats.Miris public override string Description { get { return "Studio Miris resource archive"; } } public override uint Signature { get { return 0x4B4E4C47; } } // 'GLNK' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public GlnkOpener () { diff --git a/ArcFormats/ArcNEKO.cs b/ArcFormats/ArcNEKO.cs index 822d6a59..f61c9eaa 100644 --- a/ArcFormats/ArcNEKO.cs +++ b/ArcFormats/ArcNEKO.cs @@ -231,7 +231,7 @@ namespace GameRes.Formats.Neko public override string Description { get { return "NekoPack resource archive"; } } public override uint Signature { get { return 0x4f4b454e; } } // "NEKO" public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Pak1Opener () { @@ -407,7 +407,7 @@ namespace GameRes.Formats.Neko public override string Description { get { return "NekoPack resource archive"; } } public override uint Signature { get { return 0x4F4B454E; } } // "NEKO" public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Pak2Opener () { diff --git a/ArcFormats/ArcPACKDAT.cs b/ArcFormats/ArcPACKDAT.cs index e15bf06a..92002c28 100644 --- a/ArcFormats/ArcPACKDAT.cs +++ b/ArcFormats/ArcPACKDAT.cs @@ -42,7 +42,7 @@ namespace GameRes.Formats.SystemEpsylon public override string Description { get { return "SYSTEM-ε resource archive"; } } public override uint Signature { get { return 0x4B434150; } } // "PACK" public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/ArcPBX.cs b/ArcFormats/ArcPBX.cs index b4146be6..97c75968 100644 --- a/ArcFormats/ArcPBX.cs +++ b/ArcFormats/ArcPBX.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Terios public override string Description { get { return "\"Pandora.box\" resource archive"; } } public override uint Signature { get { return 0x646E6150; } } // 'Pand' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/ArcSAF.cs b/ArcFormats/ArcSAF.cs index 3bed9afd..8145b132 100644 --- a/ArcFormats/ArcSAF.cs +++ b/ArcFormats/ArcSAF.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Lune public override string Description { get { return "Lune resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/ArcSPack.cs b/ArcFormats/ArcSPack.cs index df4239b2..95dd812b 100644 --- a/ArcFormats/ArcSPack.cs +++ b/ArcFormats/ArcSPack.cs @@ -45,7 +45,7 @@ namespace GameRes.Formats.SPack public override string Description { get { return "SPack resource archive"; } } public override uint Signature { get { return 0x63615053; } } // 'SPac' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/ArcZIP.cs b/ArcFormats/ArcZIP.cs index 963a5c5e..8ffc5473 100644 --- a/ArcFormats/ArcZIP.cs +++ b/ArcFormats/ArcZIP.cs @@ -88,7 +88,7 @@ namespace GameRes.Formats.PkWare public override string Description { get { return "PKWARE archive format"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Astronauts/ArcGXP.cs b/ArcFormats/Astronauts/ArcGXP.cs index fe09fd20..95524999 100644 --- a/ArcFormats/Astronauts/ArcGXP.cs +++ b/ArcFormats/Astronauts/ArcGXP.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Astronauts public override string Description { get { return "Astronauts resource archive"; } } public override uint Signature { get { return 0x505847; } } // 'GXP' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static readonly byte[] KnownKey = { 0x40, 0x21, 0x28, 0x38, 0xA6, 0x6E, 0x43, 0xA5, 0x40, 0x21, 0x28, 0x38, 0xA6, 0x43, 0xA5, 0x64, diff --git a/ArcFormats/AudioMP3.cs b/ArcFormats/AudioMP3.cs index 3bc1be1e..584c02b6 100644 --- a/ArcFormats/AudioMP3.cs +++ b/ArcFormats/AudioMP3.cs @@ -92,6 +92,7 @@ namespace GameRes.Formats public override string Tag { get { return "MP3"; } } public override string Description { get { return "MPEG Layer 3 audio format"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return false; } } public override SoundInput TryOpen (Stream file) { diff --git a/ArcFormats/AudioOGG.cs b/ArcFormats/AudioOGG.cs index 52696198..9ea80a1b 100644 --- a/ArcFormats/AudioOGG.cs +++ b/ArcFormats/AudioOGG.cs @@ -129,6 +129,7 @@ namespace GameRes.Formats public override string Tag { get { return "OGG"; } } public override string Description { get { return "Ogg/Vorbis audio format"; } } public override uint Signature { get { return 0x5367674f; } } // 'OggS' + public override bool CanWrite { get { return false; } } public override SoundInput TryOpen (Stream file) { diff --git a/ArcFormats/AudioVOC.cs b/ArcFormats/AudioVOC.cs index e9d50d77..e6c436e2 100644 --- a/ArcFormats/AudioVOC.cs +++ b/ArcFormats/AudioVOC.cs @@ -162,6 +162,7 @@ namespace GameRes.Formats.Creative public override string Tag { get { return "VOC"; } } public override string Description { get { return "Creative Voice File"; } } public override uint Signature { get { return 0x61657243; } } // 'Crea' + public override bool CanWrite { get { return false; } } public override SoundInput TryOpen (Stream file) { diff --git a/ArcFormats/Banana/ArcPK.cs b/ArcFormats/Banana/ArcPK.cs index 243398f6..aa27add8 100644 --- a/ArcFormats/Banana/ArcPK.cs +++ b/ArcFormats/Banana/ArcPK.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Banana // namespace is arbitrary, actual format source public override string Description { get { return "BANANA Shu-Shu resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PkOpener () { diff --git a/ArcFormats/Bishop/ArcBSA.cs b/ArcFormats/Bishop/ArcBSA.cs index 3a716d99..baac67f6 100644 --- a/ArcFormats/Bishop/ArcBSA.cs +++ b/ArcFormats/Bishop/ArcBSA.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Bishop public override string Description { get { return "Bishop resource archive"; } } public override uint Signature { get { return 0x72415342; } } // 'BSAr' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Bishop/ArcBSC.cs b/ArcFormats/Bishop/ArcBSC.cs index abbc07d9..ff71a931 100644 --- a/ArcFormats/Bishop/ArcBSC.cs +++ b/ArcFormats/Bishop/ArcBSC.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Bishop public override string Description { get { return "Bishop composite image archive"; } } public override uint Signature { get { return 0x2D535342; } } // 'BSS-' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public BscOpener () { diff --git a/ArcFormats/Bishop/ImageBSG.cs b/ArcFormats/Bishop/ImageBSG.cs index f8348f22..acc40d1d 100644 --- a/ArcFormats/Bishop/ImageBSG.cs +++ b/ArcFormats/Bishop/ImageBSG.cs @@ -90,7 +90,7 @@ namespace GameRes.Formats.Bishop public override void Write (Stream file, ImageData image) { - throw new System.NotImplementedException ("xxxFormat.Write not implemented"); + throw new System.NotImplementedException ("BsgFormat.Write not implemented"); } } diff --git a/ArcFormats/BlackCyc/ArcGPK.cs b/ArcFormats/BlackCyc/ArcGPK.cs index 1d3a458f..5444bd98 100644 --- a/ArcFormats/BlackCyc/ArcGPK.cs +++ b/ArcFormats/BlackCyc/ArcGPK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.BlackCyc public override string Description { get { return "Black Cyc engine images archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/BlackCyc/ArcVPK.cs b/ArcFormats/BlackCyc/ArcVPK.cs index fff50dbc..6204147b 100644 --- a/ArcFormats/BlackCyc/ArcVPK.cs +++ b/ArcFormats/BlackCyc/ArcVPK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.BlackCyc public override string Description { get { return "Black Cyc engine audio archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/BlackRainbow/ArcADS.cs b/ArcFormats/BlackRainbow/ArcADS.cs index d4614baa..875687a5 100644 --- a/ArcFormats/BlackRainbow/ArcADS.cs +++ b/ArcFormats/BlackRainbow/ArcADS.cs @@ -46,7 +46,7 @@ namespace GameRes.Formats.BlackRainbow public override string Description { get { return "ADVDX engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static Dictionary KnownKeys = new Dictionary(); diff --git a/ArcFormats/BlackRainbow/ArcGSP.cs b/ArcFormats/BlackRainbow/ArcGSP.cs index 69eaee83..51cfaed5 100644 --- a/ArcFormats/BlackRainbow/ArcGSP.cs +++ b/ArcFormats/BlackRainbow/ArcGSP.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.BlackRainbow public override string Description { get { return "GSP resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { @@ -75,7 +75,7 @@ namespace GameRes.Formats.BlackRainbow public override string Description { get { return "BlackRainbow resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/BlackRainbow/ArcPAK.cs b/ArcFormats/BlackRainbow/ArcPAK.cs index e8aeb55f..f1caf59a 100644 --- a/ArcFormats/BlackRainbow/ArcPAK.cs +++ b/ArcFormats/BlackRainbow/ArcPAK.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.BlackRainbow public override string Description { get { return "BlackRainbow/Melty resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/BlackRainbow/ImageBMD.cs b/ArcFormats/BlackRainbow/ImageBMD.cs index 9423e713..8d1830d4 100644 --- a/ArcFormats/BlackRainbow/ImageBMD.cs +++ b/ArcFormats/BlackRainbow/ImageBMD.cs @@ -49,6 +49,7 @@ namespace GameRes.Formats.BlackRainbow public override string Tag { get { return "BMD"; } } public override string Description { get { return "Black Rainbow bitmap format"; } } public override uint Signature { get { return 0x444d425fu; } } // '_BMD' + public override bool CanWrite { get { return true; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/BlackRainbow/ImageBMZ.cs b/ArcFormats/BlackRainbow/ImageBMZ.cs index 39b2acce..5cde5ebf 100644 --- a/ArcFormats/BlackRainbow/ImageBMZ.cs +++ b/ArcFormats/BlackRainbow/ImageBMZ.cs @@ -37,6 +37,7 @@ namespace GameRes.Formats.BlackRainbow public override string Tag { get { return "BMZ"; } } public override string Description { get { return "Compressed bitmap format"; } } public override uint Signature { get { return 0x33434c5au; } } // 'ZLC3' + public override bool CanWrite { get { return true; } } public override void Write (Stream file, ImageData image) { diff --git a/ArcFormats/BlueGale/ArcSNN.cs b/ArcFormats/BlueGale/ArcSNN.cs index fe8e05d9..8243b762 100644 --- a/ArcFormats/BlueGale/ArcSNN.cs +++ b/ArcFormats/BlueGale/ArcSNN.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.BlueGale public override string Description { get { return "BlueGale resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/BlueGale/VideoAMV.cs b/ArcFormats/BlueGale/VideoAMV.cs index 084b9b5d..c87594d9 100644 --- a/ArcFormats/BlueGale/VideoAMV.cs +++ b/ArcFormats/BlueGale/VideoAMV.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.BlueGale public override string Description { get { return "BlueGale animation format"; } } public override uint Signature { get { return 0x56706D61; } } // 'ampV' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AmvOpener () { diff --git a/ArcFormats/CaramelBox/ArcARC3.cs b/ArcFormats/CaramelBox/ArcARC3.cs index f0e16406..1a17c2a9 100644 --- a/ArcFormats/CaramelBox/ArcARC3.cs +++ b/ArcFormats/CaramelBox/ArcARC3.cs @@ -46,7 +46,7 @@ namespace GameRes.Formats.CaramelBox public override string Description { get { return "Caramel BOX resource archive"; } } public override uint Signature { get { return 0x33637261; } } // 'arc3' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Arc3Opener () { diff --git a/ArcFormats/CaramelBox/ArcARC4.cs b/ArcFormats/CaramelBox/ArcARC4.cs index 37f3c4c9..a51f0c47 100644 --- a/ArcFormats/CaramelBox/ArcARC4.cs +++ b/ArcFormats/CaramelBox/ArcARC4.cs @@ -43,7 +43,7 @@ namespace GameRes.Formats.CaramelBox public override string Description { get { return "Caramel BOX resource archive"; } } public override uint Signature { get { return 0x34435241; } } // 'ARC4' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Arc4Opener () { diff --git a/ArcFormats/CatSystem/ArcHG2.cs b/ArcFormats/CatSystem/ArcHG2.cs index d7cfb2a3..ff7d886a 100644 --- a/ArcFormats/CatSystem/ArcHG2.cs +++ b/ArcFormats/CatSystem/ArcHG2.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.CatSystem public override string Description { get { return "CatSystem2 engine multi-image"; } } public override uint Signature { get { return 0x322d4748; } } // 'HG-2' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/CatSystem/ArcHG3.cs b/ArcFormats/CatSystem/ArcHG3.cs index fa9fa1b6..79f4d721 100644 --- a/ArcFormats/CatSystem/ArcHG3.cs +++ b/ArcFormats/CatSystem/ArcHG3.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.CatSystem public override string Description { get { return "CatSystem2 engine multi-image"; } } public override uint Signature { get { return 0x332d4748; } } // 'HG-3' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/CatSystem/ArcINT.cs b/ArcFormats/CatSystem/ArcINT.cs index fd0a93f8..558559dd 100644 --- a/ArcFormats/CatSystem/ArcINT.cs +++ b/ArcFormats/CatSystem/ArcINT.cs @@ -113,11 +113,11 @@ namespace GameRes.Formats.CatSystem [Export(typeof(ArchiveFormat))] public class IntOpener : ArchiveFormat { - public override string Tag { get { return "INT"; } } + public override string Tag { get { return "INT"; } } public override string Description { get { return arcStrings.INTDescription; } } - public override uint Signature { get { return 0x0046494b; } } - public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override uint Signature { get { return 0x0046494b; } } // 'KIF' + public override bool IsHierarchic { get { return false; } } + public override bool CanWrite { get { return true; } } static readonly byte[] NameSizes = { 0x20, 0x40 }; diff --git a/ArcFormats/Cherry/ArcCherry.cs b/ArcFormats/Cherry/ArcCherry.cs index 1f014820..27f31117 100644 --- a/ArcFormats/Cherry/ArcCherry.cs +++ b/ArcFormats/Cherry/ArcCherry.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Cherry public override string Description { get { return "Cherry Soft PACK resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { @@ -129,7 +129,7 @@ namespace GameRes.Formats.Cherry public override string Description { get { return "Cherry Soft PACK resource archive v2"; } } public override uint Signature { get { return 0x52454843; } } // 'CHER' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Pak2Opener () { diff --git a/ArcFormats/Cherry/ArcMyk.cs b/ArcFormats/Cherry/ArcMyk.cs index 24c0b81b..d0636af9 100644 --- a/ArcFormats/Cherry/ArcMyk.cs +++ b/ArcFormats/Cherry/ArcMyk.cs @@ -35,7 +35,7 @@ namespace GameRes.Formats.Cherry public override string Description { get { return "Cherry Soft resource archive"; } } public override uint Signature { get { return 0x304B594D; } } // 'MYK0' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/Circus/ArcCircus.cs b/ArcFormats/Circus/ArcCircus.cs index 6113bd1b..2eabac7f 100644 --- a/ArcFormats/Circus/ArcCircus.cs +++ b/ArcFormats/Circus/ArcCircus.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Circus public override string Description { get { return "Circus resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/Circus/ArcPCK.cs b/ArcFormats/Circus/ArcPCK.cs index 624539ce..57c1a1d1 100644 --- a/ArcFormats/Circus/ArcPCK.cs +++ b/ArcFormats/Circus/ArcPCK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Circus public override string Description { get { return "Circus resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PckOpener () { diff --git a/ArcFormats/Circus/ArcValkyrieComplex.cs b/ArcFormats/Circus/ArcValkyrieComplex.cs index 4ffac4b8..c6d3ce9d 100644 --- a/ArcFormats/Circus/ArcValkyrieComplex.cs +++ b/ArcFormats/Circus/ArcValkyrieComplex.cs @@ -50,7 +50,7 @@ namespace GameRes.Formats.Circus public override string Description { get { return "Valkyrie Complex resource archive"; } } public override uint Signature { get { return 0x62827582; } } // 'VC' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static readonly byte[] TrialSignature = Encodings.cp932.GetBytes ("VC体験版"); static readonly byte[] RetailSignature = Encodings.cp932.GetBytes ("VC製品版"); @@ -286,7 +286,7 @@ namespace GameRes.Formats.Circus public override string Description { get { return "Valkyrie Complex resource archive"; } } public override uint Signature { get { return 1; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public VcPacOpener () { diff --git a/ArcFormats/Circus/AudioPCM.cs b/ArcFormats/Circus/AudioPCM.cs index 96c992c3..9e64b782 100644 --- a/ArcFormats/Circus/AudioPCM.cs +++ b/ArcFormats/Circus/AudioPCM.cs @@ -32,7 +32,7 @@ using GameRes.Utility; namespace GameRes.Formats.Circus { [Export(typeof(AudioFormat))] - public class PcmAudio : WaveAudio + public class PcmAudio : AudioFormat { public override string Tag { get { return "PCM"; } } public override string Description { get { return "Circus PCM audio"; } } diff --git a/ArcFormats/Cmvs/ArcCPZ.cs b/ArcFormats/Cmvs/ArcCPZ.cs index 2d7aeb3f..aa909b91 100644 --- a/ArcFormats/Cmvs/ArcCPZ.cs +++ b/ArcFormats/Cmvs/ArcCPZ.cs @@ -94,7 +94,7 @@ namespace GameRes.Formats.Purple public override string Description { get { return "Purple Software resource archive"; } } public override uint Signature { get { return 0x355A5043; } } // 'CPZ5' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public CpzOpener () { diff --git a/ArcFormats/Cmvs/ArcPBZ.cs b/ArcFormats/Cmvs/ArcPBZ.cs index 45260420..7223fdd6 100644 --- a/ArcFormats/Cmvs/ArcPBZ.cs +++ b/ArcFormats/Cmvs/ArcPBZ.cs @@ -65,7 +65,7 @@ namespace GameRes.Formats.Pvns public override string Description { get { return "PVNS engine resource archive"; } } public override uint Signature { get { return 0x315A4250; } } // 'PBZ1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static Dictionary KnownSchemes = new Dictionary(); diff --git a/ArcFormats/Cri/ArcAFS.cs b/ArcFormats/Cri/ArcAFS.cs index 9190b0f7..d349567b 100644 --- a/ArcFormats/Cri/ArcAFS.cs +++ b/ArcFormats/Cri/ArcAFS.cs @@ -35,7 +35,7 @@ namespace GameRes.Formats.Cri public override string Description { get { return "PS2 resource archive"; } } public override uint Signature { get { return 0x00534641; } } // "AFS" public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Cri/ArcCPK.cs b/ArcFormats/Cri/ArcCPK.cs index 73de3e6d..9c5c9968 100644 --- a/ArcFormats/Cri/ArcCPK.cs +++ b/ArcFormats/Cri/ArcCPK.cs @@ -47,7 +47,7 @@ namespace GameRes.Formats.Cri public override string Description { get { return "CRI Middleware resource archive"; } } public override uint Signature { get { return 0x204B5043; } } // 'CPK ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Cri/ArcSPC.cs b/ArcFormats/Cri/ArcSPC.cs index 4a05060f..953dff8b 100644 --- a/ArcFormats/Cri/ArcSPC.cs +++ b/ArcFormats/Cri/ArcSPC.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Cri public override string Description { get { return "CRI MiddleWare texture container"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public SpcOpener () { diff --git a/ArcFormats/Crowd/ArcPCK.cs b/ArcFormats/Crowd/ArcPCK.cs index e1eba7f8..f07f2066 100644 --- a/ArcFormats/Crowd/ArcPCK.cs +++ b/ArcFormats/Crowd/ArcPCK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Crowd public override string Description { get { return "Crowd engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { @@ -95,7 +95,7 @@ namespace GameRes.Formats.Crowd public override string Description { get { return "Crowd engine audio archive"; } } public override uint Signature { get { return 0x56574b50; } } // 'PKWV' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PkwOpener () { diff --git a/ArcFormats/Crowd/ImageCWP.cs b/ArcFormats/Crowd/ImageCWP.cs index f11f02c0..061aeedf 100644 --- a/ArcFormats/Crowd/ImageCWP.cs +++ b/ArcFormats/Crowd/ImageCWP.cs @@ -38,6 +38,7 @@ namespace GameRes.Formats.Crowd public override string Tag { get { return "CWP"; } } public override string Description { get { return "Crowd engine image format"; } } public override uint Signature { get { return 0x50445743; } } // 'CWDP' + public override bool CanWrite { get { return true; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/Crowd/ImageZBM.cs b/ArcFormats/Crowd/ImageZBM.cs index 9b55b528..a2e33669 100644 --- a/ArcFormats/Crowd/ImageZBM.cs +++ b/ArcFormats/Crowd/ImageZBM.cs @@ -37,6 +37,7 @@ namespace GameRes.Formats.Crowd public override string Tag { get { return "ZBM"; } } public override string Description { get { return "Crowd LZ-compressed bitmap"; } } public override uint Signature { get { return 0x44445A53u; } } // 'SZDD' + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/CsWare/ArcPCS.cs b/ArcFormats/CsWare/ArcPCS.cs index 93a247ad..82d08317 100644 --- a/ArcFormats/CsWare/ArcPCS.cs +++ b/ArcFormats/CsWare/ArcPCS.cs @@ -57,7 +57,7 @@ namespace GameRes.Formats.CsWare public override string Description { get { return "C's ware resource archive"; } } public override uint Signature { get { return 0x53434350; } } // 'PCCS' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Cyberworks/ArcDAT.cs b/ArcFormats/Cyberworks/ArcDAT.cs index e88cc31e..f4237860 100644 --- a/ArcFormats/Cyberworks/ArcDAT.cs +++ b/ArcFormats/Cyberworks/ArcDAT.cs @@ -54,7 +54,7 @@ namespace GameRes.Formats.Cyberworks public override string Description { get { return "Cyberworks/TinkerBell resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/DDSystem/ArcDDP.cs b/ArcFormats/DDSystem/ArcDDP.cs index fce8d793..bb36b70d 100644 --- a/ArcFormats/DDSystem/ArcDDP.cs +++ b/ArcFormats/DDSystem/ArcDDP.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.DDSystem public override string Description { get { return "DDSystem engine resource archive"; } } public override uint Signature { get { return 0x32504444; } } // 'DDP2' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Ddp2Opener () { @@ -156,7 +156,7 @@ namespace GameRes.Formats.DDSystem public override string Description { get { return "DDSystem engine resource archive"; } } public override uint Signature { get { return 0x33504444; } } // 'DDP3' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Dac/ArcDPK.cs b/ArcFormats/Dac/ArcDPK.cs index 48bec66a..152604c3 100644 --- a/ArcFormats/Dac/ArcDPK.cs +++ b/ArcFormats/Dac/ArcDPK.cs @@ -80,7 +80,7 @@ namespace GameRes.Formats.Dac public override string Description { get { return "DAC engine resource archive"; } } public override uint Signature { get { return 0x004b5044; } } // 'DPK' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static DpkScheme[] KnownSchemes = new DpkScheme[0]; diff --git a/ArcFormats/Debonosu/ArcPAK.cs b/ArcFormats/Debonosu/ArcPAK.cs index 988cbb8d..4e0dd202 100644 --- a/ArcFormats/Debonosu/ArcPAK.cs +++ b/ArcFormats/Debonosu/ArcPAK.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Debonosu public override string Description { get { return "Debonosu Works resource archive"; } } public override uint Signature { get { return 0x004B4150; } } // 'PAK' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/DenSDK/ArcDAF.cs b/ArcFormats/DenSDK/ArcDAF.cs index 63dba16d..ecf0f7bf 100644 --- a/ArcFormats/DenSDK/ArcDAF.cs +++ b/ArcFormats/DenSDK/ArcDAF.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.DenSdk public override string Description { get { return "DenSDK resource archive"; } } public override uint Signature { get { return 0x31464144; } } // 'DAF1' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Daf1Opener () { @@ -93,7 +93,7 @@ namespace GameRes.Formats.DenSdk public override string Description { get { return "DenSDK resource archive"; } } public override uint Signature { get { return 0x32464144; } } // 'DAF2' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Dogenzaka/ArcBIN.cs b/ArcFormats/Dogenzaka/ArcBIN.cs index 9d471030..d91375aa 100644 --- a/ArcFormats/Dogenzaka/ArcBIN.cs +++ b/ArcFormats/Dogenzaka/ArcBIN.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Dogenzaka public override string Description { get { return "Dogenzaka Lab audio archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public BinOpener () { @@ -109,7 +109,7 @@ namespace GameRes.Formats.Dogenzaka public override string Description { get { return "Dogenzaka Lab archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public GamedatOpener () { diff --git a/ArcFormats/Dogenzaka/ImageRSA.cs b/ArcFormats/Dogenzaka/ImageRSA.cs index 4ce37333..20caf11b 100644 --- a/ArcFormats/Dogenzaka/ImageRSA.cs +++ b/ArcFormats/Dogenzaka/ImageRSA.cs @@ -44,6 +44,7 @@ namespace GameRes.Formats.Dogenzaka public override string Tag { get { return "PNG/RC4"; } } public override string Description { get { return "RC4 encrypted PNG image"; } } public override uint Signature { get { return 0xC4F7F61A; } } + public override bool CanWrite { get { return false; } } public Rc4PngFormat () { diff --git a/ArcFormats/DxLib/ArcDX.cs b/ArcFormats/DxLib/ArcDX.cs index b16a8feb..39e3be96 100644 --- a/ArcFormats/DxLib/ArcDX.cs +++ b/ArcFormats/DxLib/ArcDX.cs @@ -56,7 +56,7 @@ namespace GameRes.Formats.DxLib public override string Description { get { return "DxLib engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DxOpener () { diff --git a/ArcFormats/DxLib/ArcMED.cs b/ArcFormats/DxLib/ArcMED.cs index eb8d06b1..eaeb94fa 100644 --- a/ArcFormats/DxLib/ArcMED.cs +++ b/ArcFormats/DxLib/ArcMED.cs @@ -97,7 +97,7 @@ namespace GameRes.Formats.DxLib public override string Description { get { return "DxLib engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static readonly Lazy PrsFormat = new Lazy (() => ImageFormat.FindByTag ("PRS")); diff --git a/ArcFormats/Eagls/ArcEAGLS.cs b/ArcFormats/Eagls/ArcEAGLS.cs index 7fbcb30b..67a9d3ff 100644 --- a/ArcFormats/Eagls/ArcEAGLS.cs +++ b/ArcFormats/Eagls/ArcEAGLS.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Eagls public override string Description { get { return "EAGLS engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/Eagls/ImageGR.cs b/ArcFormats/Eagls/ImageGR.cs index 9498a6aa..690e8d2e 100644 --- a/ArcFormats/Eagls/ImageGR.cs +++ b/ArcFormats/Eagls/ImageGR.cs @@ -43,6 +43,7 @@ namespace GameRes.Formats.Eagls public override string Tag { get { return "GR"; } } public override string Description { get { return "EAGLS engine compressed bitmap"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/Emic/ArcPACK.cs b/ArcFormats/Emic/ArcPACK.cs index b09c9156..b8bdd33c 100644 --- a/ArcFormats/Emic/ArcPACK.cs +++ b/ArcFormats/Emic/ArcPACK.cs @@ -48,7 +48,7 @@ namespace GameRes.Formats.Emic public override string Description { get { return "Emic engine resource archive"; } } public override uint Signature { get { return 0x4B434150; } } // 'PACK' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PacOpener () { diff --git a/ArcFormats/EmonEngine/ArcEME.cs b/ArcFormats/EmonEngine/ArcEME.cs index 058e9fb7..c23272f8 100644 --- a/ArcFormats/EmonEngine/ArcEME.cs +++ b/ArcFormats/EmonEngine/ArcEME.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.EmonEngine public override string Description { get { return "Emon Engine resource archive"; } } // 'えもんエンジン' public override uint Signature { get { return 0x44455252; } } // 'RREDATA' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Emote/ArcPSB.cs b/ArcFormats/Emote/ArcPSB.cs index 48cd0b59..d5ee40e5 100644 --- a/ArcFormats/Emote/ArcPSB.cs +++ b/ArcFormats/Emote/ArcPSB.cs @@ -56,7 +56,7 @@ namespace GameRes.Formats.Emote public override string Description { get { return "E-mote engine texture container"; } } public override uint Signature { get { return 0x425350; } } // 'PSB' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static uint[] KnownKeys = new uint[] { 970396437u }; diff --git a/ArcFormats/Entis/ArcERI.cs b/ArcFormats/Entis/ArcERI.cs index ca94edc4..097259d5 100644 --- a/ArcFormats/Entis/ArcERI.cs +++ b/ArcFormats/Entis/ArcERI.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Entis public override string Description { get { return "Entis multi-frame image format"; } } public override uint Signature { get { return 0x69746e45u; } } // 'Enti' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public EriOpener () { diff --git a/ArcFormats/Entis/ArcNOA.cs b/ArcFormats/Entis/ArcNOA.cs index 391a4a1d..4391a938 100644 --- a/ArcFormats/Entis/ArcNOA.cs +++ b/ArcFormats/Entis/ArcNOA.cs @@ -72,7 +72,7 @@ namespace GameRes.Formats.Entis public override string Description { get { return "Entis GLS engine resource archive"; } } public override uint Signature { get { return 0x69746e45; } } // 'Enti' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public NoaOpener () { diff --git a/ArcFormats/Escude/ArcBIN.cs b/ArcFormats/Escude/ArcBIN.cs index cb9c38e3..f846032f 100644 --- a/ArcFormats/Escude/ArcBIN.cs +++ b/ArcFormats/Escude/ArcBIN.cs @@ -36,7 +36,7 @@ namespace GameRes.Formats.Escude public override string Description { get { return "Escu:de resource archive"; } } public override uint Signature { get { return 0x2D435345; } } // 'ESC-' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Ethornell/ArcBGI.cs b/ArcFormats/Ethornell/ArcBGI.cs index 1b53219b..9a99cc28 100644 --- a/ArcFormats/Ethornell/ArcBGI.cs +++ b/ArcFormats/Ethornell/ArcBGI.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.BGI public override string Description { get { return "BGI/Ethornell engine resource archive"; } } public override uint Signature { get { return 0x6b636150; } } // "Pack" public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { @@ -103,7 +103,7 @@ namespace GameRes.Formats.BGI public override string Description { get { return "BGI/Ethornell engine resource archive v2"; } } public override uint Signature { get { return 0x49525542; } } // "BURI" public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Eushully/ArcALF.cs b/ArcFormats/Eushully/ArcALF.cs index 7b2374c7..c3ed0907 100644 --- a/ArcFormats/Eushully/ArcALF.cs +++ b/ArcFormats/Eushully/ArcALF.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Eushully public override string Description { get { return "Eushully resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static string[] IndexNames = new string[] { "sys4ini.bin", "sys3ini.bin" }; diff --git a/ArcFormats/Eushully/ArcGPC.cs b/ArcFormats/Eushully/ArcGPC.cs index b81d813a..60363972 100644 --- a/ArcFormats/Eushully/ArcGPC.cs +++ b/ArcFormats/Eushully/ArcGPC.cs @@ -34,7 +34,7 @@ namespace GameRes.Formats.Eushully { public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } protected ArcFile TryOpenWithIndex (ArcView file, string entry_type, string entry_ext = "") { diff --git a/ArcFormats/FC01/ArcMCA.cs b/ArcFormats/FC01/ArcMCA.cs index c03da904..7205b73b 100644 --- a/ArcFormats/FC01/ArcMCA.cs +++ b/ArcFormats/FC01/ArcMCA.cs @@ -50,7 +50,7 @@ namespace GameRes.Formats.FC01 public override string Description { get { return "F&C Co. multi-frame image format"; } } public override uint Signature { get { return 0x2041434D; } } // 'MCA' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/FC01/ArcMRG.cs b/ArcFormats/FC01/ArcMRG.cs index cc453a07..631b1c92 100644 --- a/ArcFormats/FC01/ArcMRG.cs +++ b/ArcFormats/FC01/ArcMRG.cs @@ -44,7 +44,7 @@ namespace GameRes.Formats.FC01 public override string Description { get { return "F&C Co. engine resource archive"; } } public override uint Signature { get { return 0x0047524D; } } // 'MRG' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static readonly Tuple KnownKey = Tuple.Create ( // Konata yori Kanata made @@ -180,7 +180,7 @@ namespace GameRes.Formats.FC01 public override string Description { get { return "Overture engine resource archive"; } } public override uint Signature { get { return 0x0047524D; } } // 'MRG' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Mrg2Opener () { diff --git a/ArcFormats/Favorite/ArcBIN.cs b/ArcFormats/Favorite/ArcBIN.cs index ab6caa0a..e8b93899 100644 --- a/ArcFormats/Favorite/ArcBIN.cs +++ b/ArcFormats/Favorite/ArcBIN.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.FVP public override string Description { get { return "Favorite View Point resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Bin2Opener () { diff --git a/ArcFormats/Favorite/ArcFVP.cs b/ArcFormats/Favorite/ArcFVP.cs index 0bbddab2..d62efd9b 100644 --- a/ArcFormats/Favorite/ArcFVP.cs +++ b/ArcFormats/Favorite/ArcFVP.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.FVP public override string Description { get { return "Favorite View Point resource archive"; } } public override uint Signature { get { return 0x58504341; } } // "ACPX" public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public BinOpener () { diff --git a/ArcFormats/Favorite/ArcHZC.cs b/ArcFormats/Favorite/ArcHZC.cs index 1bdd25de..4feb5eeb 100644 --- a/ArcFormats/Favorite/ArcHZC.cs +++ b/ArcFormats/Favorite/ArcHZC.cs @@ -50,7 +50,7 @@ namespace GameRes.Formats.FVP public override string Description { get { return "Favorite View Point multi-frame image"; } } public override uint Signature { get { return 0x31637A68; } } // 'HZC1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public HzcOpener () { diff --git a/ArcFormats/Ffa/ArcBlackPackage.cs b/ArcFormats/Ffa/ArcBlackPackage.cs index b485512f..ab2f7d6d 100644 --- a/ArcFormats/Ffa/ArcBlackPackage.cs +++ b/ArcFormats/Ffa/ArcBlackPackage.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Ffa public override string Description { get { return "FFA System resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { @@ -105,7 +105,7 @@ namespace GameRes.Formats.Ffa public override string Description { get { return "FFA System resource archive v2"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public JDatOpener () { diff --git a/ArcFormats/Ffa/ArcFFA.cs b/ArcFormats/Ffa/ArcFFA.cs index e366f3d0..bfe3dc9b 100644 --- a/ArcFormats/Ffa/ArcFFA.cs +++ b/ArcFormats/Ffa/ArcFFA.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Ffa public override string Description { get { return "FFA System resource archive"; } } public override uint Signature { get { return 0x5954324d; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/FlyingShine/ArcPD.cs b/ArcFormats/FlyingShine/ArcPD.cs index d3bcd493..b88b45f0 100644 --- a/ArcFormats/FlyingShine/ArcPD.cs +++ b/ArcFormats/FlyingShine/ArcPD.cs @@ -55,7 +55,7 @@ namespace GameRes.Formats.Fs public override string Description { get { return arcStrings.PDDescription; } } public override uint Signature { get { return 0x6b636150; } } // Pack public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public override ArcFile TryOpen (ArcView file) { @@ -227,7 +227,7 @@ namespace GameRes.Formats.Fs public override string Description { get { return "Flying Shine resource archive version 2"; } } public override uint Signature { get { return 0x69796c46; } } // 'Flyi' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public FlyingShinePdOpener () { diff --git a/ArcFormats/G2/ArcGCEX.cs b/ArcFormats/G2/ArcGCEX.cs index db7709a4..13a2c705 100644 --- a/ArcFormats/G2/ArcGCEX.cs +++ b/ArcFormats/G2/ArcGCEX.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.G2 public override string Description { get { return "G2 engine resource archive"; } } public override uint Signature { get { return 0x58454347; } } // 'GCEX' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/Glib2/ArcG2.cs b/ArcFormats/Glib2/ArcG2.cs index d9a29f32..e04b338f 100644 --- a/ArcFormats/Glib2/ArcG2.cs +++ b/ArcFormats/Glib2/ArcG2.cs @@ -82,7 +82,7 @@ namespace GameRes.Formats.Glib2 public override string Description { get { return "Glib2 engine resource archive"; } } public override uint Signature { get { return 0x47D33310; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public G2Opener () { diff --git a/ArcFormats/Gpk2/ArcGPK2.cs b/ArcFormats/Gpk2/ArcGPK2.cs index e71ededa..73c94000 100644 --- a/ArcFormats/Gpk2/ArcGPK2.cs +++ b/ArcFormats/Gpk2/ArcGPK2.cs @@ -35,7 +35,7 @@ namespace GameRes.Formats.Gpk2 public override string Description { get { return "GPK2 resource archive"; } } public override uint Signature { get { return 0x324B5047; } } // 'GPK2' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public GpkOpener () { diff --git a/ArcFormats/GsPack/ArcGsPack.cs b/ArcFormats/GsPack/ArcGsPack.cs index a8bd58ae..bbb0bddf 100644 --- a/ArcFormats/GsPack/ArcGsPack.cs +++ b/ArcFormats/GsPack/ArcGsPack.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Gs public override string Description { get { return "GsPack resource archive"; } } public override uint Signature { get { return 0x61746144; } } // 'Data' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { @@ -102,7 +102,7 @@ namespace GameRes.Formats.Gs public override string Description { get { return "GsPack resource archive"; } } public override uint Signature { get { return 0x59537347; } } // 'GsSY' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/Hexenhaus/ArcARCC.cs b/ArcFormats/Hexenhaus/ArcARCC.cs index 49ae767a..20e20083 100644 --- a/ArcFormats/Hexenhaus/ArcARCC.cs +++ b/ArcFormats/Hexenhaus/ArcARCC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Hexenhaus public override string Description { get { return "Hexenhaus resource archive"; } } public override uint Signature { get { return 0x43435241; } } // 'ARCC' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/Hexenhaus/ArcODIO.cs b/ArcFormats/Hexenhaus/ArcODIO.cs index e74e8c1b..e52e05fd 100644 --- a/ArcFormats/Hexenhaus/ArcODIO.cs +++ b/ArcFormats/Hexenhaus/ArcODIO.cs @@ -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); } } } diff --git a/ArcFormats/Hexenhaus/ArcWAG.cs b/ArcFormats/Hexenhaus/ArcWAG.cs index f1609e97..f477306b 100644 --- a/ArcFormats/Hexenhaus/ArcWAG.cs +++ b/ArcFormats/Hexenhaus/ArcWAG.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Hexenhaus public override string Description { get { return "Hexenhaus resource archive"; } } public override uint Signature { get { return 0x5F464149; } } // 'IAF_' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public WagOpener () { @@ -54,7 +54,7 @@ namespace GameRes.Formats.Hexenhaus return null; using (var enc = file.CreateStream()) - using (var dec = new EncryptedStream (enc)) + using (var dec = new Ror4EncryptedStream (enc)) using (var index = new BinaryReader (dec)) { dec.Position = 0x4A; @@ -116,13 +116,13 @@ namespace GameRes.Formats.Hexenhaus public override Stream OpenEntry (ArcFile arc, Entry entry) { var input = arc.File.CreateStream (entry.Offset, entry.Size); - return new EncryptedStream (input); + return new Ror4EncryptedStream (input); } } - internal class EncryptedStream : ProxyStream + internal class Ror4EncryptedStream : InputProxyStream { - public EncryptedStream (Stream input, bool leave_open = false) + public Ror4EncryptedStream (Stream input, bool leave_open = false) : base (input, leave_open) { } @@ -150,6 +150,7 @@ namespace GameRes.Formats.Hexenhaus public override string Tag { get { return "IMGD/WAG"; } } public override string Description { get { return "WAG archive PNG image"; } } public override uint Signature { get { return 0x44474D49; } } // 'IMGD' + public override bool CanWrite { get { return false; } } public ImgdFormat () { diff --git a/ArcFormats/Ikura/ArcDRS.cs b/ArcFormats/Ikura/ArcDRS.cs index 26830356..bd33b2fc 100644 --- a/ArcFormats/Ikura/ArcDRS.cs +++ b/ArcFormats/Ikura/ArcDRS.cs @@ -42,7 +42,7 @@ namespace GameRes.Formats.Ikura public override string Description { get { return "Digital Romance System resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DrsOpener () { @@ -122,7 +122,7 @@ namespace GameRes.Formats.Ikura public override string Description { get { return "IKURA GDL resource archive"; } } public override uint Signature { get { return 0x4d324d53; } } // 'SM2M' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public MpxOpener () { diff --git a/ArcFormats/Ikura/ImageDRG.cs b/ArcFormats/Ikura/ImageDRG.cs index 39396631..0ae21c29 100644 --- a/ArcFormats/Ikura/ImageDRG.cs +++ b/ArcFormats/Ikura/ImageDRG.cs @@ -42,6 +42,7 @@ namespace GameRes.Formats.Ikura public override string Tag { get { return "DRG"; } } public override string Description { get { return "Digital Romance System image format"; } } public override uint Signature { get { return ~0x4c4c5546u; } } // 'FULL' + public override bool CanWrite { get { return true; } } public DrgFormat () { diff --git a/ArcFormats/Ikura/ImageGGP.cs b/ArcFormats/Ikura/ImageGGP.cs index 94088f37..f437dcac 100644 --- a/ArcFormats/Ikura/ImageGGP.cs +++ b/ArcFormats/Ikura/ImageGGP.cs @@ -43,6 +43,7 @@ namespace GameRes.Formats.Ikura public override string Tag { get { return "GGP"; } } public override string Description { get { return "Digital Romance System encrypted image format"; } } public override uint Signature { get { return 0x46504747u; } } // 'GGPF' + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/ImageEGN.cs b/ArcFormats/ImageEGN.cs index f71df3d7..94aaeec6 100644 --- a/ArcFormats/ImageEGN.cs +++ b/ArcFormats/ImageEGN.cs @@ -47,6 +47,7 @@ namespace GameRes.Formats.Unknown public override string Tag { get { return "EGN"; } } public override string Description { get { return "LZSS-compressed BMP image"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/ImageLZ.cs b/ArcFormats/ImageLZ.cs index 4a7dea14..a76b12ff 100644 --- a/ArcFormats/ImageLZ.cs +++ b/ArcFormats/ImageLZ.cs @@ -36,6 +36,7 @@ namespace GameRes.Formats public override string Tag { get { return "BM_"; } } public override string Description { get { return "LZ-compressed bitmap"; } } public override uint Signature { get { return 0x44445A53u; } } // 'SZDD' + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/ImageMB.cs b/ArcFormats/ImageMB.cs index 56432641..b388d0af 100644 --- a/ArcFormats/ImageMB.cs +++ b/ArcFormats/ImageMB.cs @@ -34,6 +34,7 @@ namespace GameRes.Formats public override string Tag { get { return "BMP/MB"; } } public override string Description { get { return "Obfuscated bitmap"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/ImagePTI.cs b/ArcFormats/ImagePTI.cs index 0cd3c561..632c7d03 100644 --- a/ArcFormats/ImagePTI.cs +++ b/ArcFormats/ImagePTI.cs @@ -35,6 +35,7 @@ namespace GameRes.Formats.Misc public override string Tag { get { return "PTI"; } } public override string Description { get { return "Custom BMP image"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/Interheart/ArcFPK.cs b/ArcFormats/Interheart/ArcFPK.cs index 2871448f..650e1df4 100644 --- a/ArcFormats/Interheart/ArcFPK.cs +++ b/ArcFormats/Interheart/ArcFPK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.CandySoft public override string Description { get { return "Interheart/Candy Soft resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Ipac/ArcIPAC.cs b/ArcFormats/Ipac/ArcIPAC.cs index 1a064d8d..9b3ce7cf 100644 --- a/ArcFormats/Ipac/ArcIPAC.cs +++ b/ArcFormats/Ipac/ArcIPAC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.BaseUnit public override string Description { get { return "IPAC resource archive"; } } public override uint Signature { get { return 0x43415049; } } // 'IPAC' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Irrlicht/ArcARK.cs b/ArcFormats/Irrlicht/ArcARK.cs index c62829a3..8a106639 100644 --- a/ArcFormats/Irrlicht/ArcARK.cs +++ b/ArcFormats/Irrlicht/ArcARK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Irrlicht public override string Description { get { return "Irrlicht engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Irrlicht/ArcPACK.cs b/ArcFormats/Irrlicht/ArcPACK.cs index 64085eda..d17f0bc9 100644 --- a/ArcFormats/Irrlicht/ArcPACK.cs +++ b/ArcFormats/Irrlicht/ArcPACK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Irrlicht public override string Description { get { return "Irrlicht engine audio archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PackOpener () { diff --git a/ArcFormats/Ivory/ArcPK.cs b/ArcFormats/Ivory/ArcPK.cs index 2f2d6fdb..7cd9bebe 100644 --- a/ArcFormats/Ivory/ArcPK.cs +++ b/ArcFormats/Ivory/ArcPK.cs @@ -42,7 +42,7 @@ namespace GameRes.Formats.Ivory public override string Description { get { return "Ivory resource archive"; } } public override uint Signature { get { return 0x204B5066; } } // 'fPK ' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Ivory/ArcPX.cs b/ArcFormats/Ivory/ArcPX.cs index 9a683e65..ed0230e8 100644 --- a/ArcFormats/Ivory/ArcPX.cs +++ b/ArcFormats/Ivory/ArcPX.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Ivory public override string Description { get { return "Ivory audio archive"; } } public override uint Signature { get { return 0x20585066; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/KScript/ArcKPC.cs b/ArcFormats/KScript/ArcKPC.cs index 7ab8b26f..8bad3c38 100644 --- a/ArcFormats/KScript/ArcKPC.cs +++ b/ArcFormats/KScript/ArcKPC.cs @@ -36,7 +36,7 @@ namespace GameRes.Formats.KScript public override string Description { get { return "KScript engine resource archive"; } } public override uint Signature { get { return 0x50524353; } } // 'SCRPACK1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Kaas/ArcKAAS.cs b/ArcFormats/Kaas/ArcKAAS.cs index 015156e5..565508d6 100644 --- a/ArcFormats/Kaas/ArcKAAS.cs +++ b/ArcFormats/Kaas/ArcKAAS.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.KAAS public override string Description { get { return "KAAS engine PD resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PdOpener () { @@ -103,7 +103,7 @@ namespace GameRes.Formats.KAAS public override string Description { get { return "KAAS engine PB resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Kaguya/ArcANM.cs b/ArcFormats/Kaguya/ArcANM.cs index e7a04ea5..f200ffac 100644 --- a/ArcFormats/Kaguya/ArcANM.cs +++ b/ArcFormats/Kaguya/ArcANM.cs @@ -48,7 +48,7 @@ namespace GameRes.Formats.Kaguya public override string Description { get { return "KaGuYa script engine animation resource"; } } public override uint Signature { get { return 0x30304E41; } } // 'AN00' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AnmOpener () { diff --git a/ArcFormats/Kaguya/ArcKaguya.cs b/ArcFormats/Kaguya/ArcKaguya.cs index a2e3cb8e..72a86656 100644 --- a/ArcFormats/Kaguya/ArcKaguya.cs +++ b/ArcFormats/Kaguya/ArcKaguya.cs @@ -43,7 +43,7 @@ namespace GameRes.Formats.Kaguya public override string Description { get { return "KaGuYa script engine resource archive"; } } public override uint Signature { get { return 0x314c4657; } } // 'WFL1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/Kaguya/ArcLINK.cs b/ArcFormats/Kaguya/ArcLINK.cs index aaae31a3..ce90af54 100644 --- a/ArcFormats/Kaguya/ArcLINK.cs +++ b/ArcFormats/Kaguya/ArcLINK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Kaguya public override string Description { get { return "KaGuYa script engine resource archive"; } } public override uint Signature { get { return 0x4B4E494C; } } // 'LINK' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public LinkOpener () { diff --git a/ArcFormats/Kaguya/ImageAO.cs b/ArcFormats/Kaguya/ImageAO.cs index 637061ba..82ab342b 100644 --- a/ArcFormats/Kaguya/ImageAO.cs +++ b/ArcFormats/Kaguya/ImageAO.cs @@ -38,6 +38,7 @@ namespace GameRes.Formats.Kaguya public override string Tag { get { return "AO/KAGUYA"; } } public override string Description { get { return "KaGuYa script engine image format"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public AoFormat () { diff --git a/ArcFormats/Kaguya/ImageAP.cs b/ArcFormats/Kaguya/ImageAP.cs index 4253f021..7c28f3e9 100644 --- a/ArcFormats/Kaguya/ImageAP.cs +++ b/ArcFormats/Kaguya/ImageAP.cs @@ -38,6 +38,7 @@ namespace GameRes.Formats.Kaguya public override string Tag { get { return "AP"; } } public override string Description { get { return "KaGuYa script engine image format"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public ApFormat () { diff --git a/ArcFormats/KiriKiri/ArcXP3.cs b/ArcFormats/KiriKiri/ArcXP3.cs index da087e58..37ce0d73 100644 --- a/ArcFormats/KiriKiri/ArcXP3.cs +++ b/ArcFormats/KiriKiri/ArcXP3.cs @@ -83,7 +83,7 @@ namespace GameRes.Formats.KiriKiri public override string Description { get { return arcStrings.XP3Description; } } public override uint Signature { get { return 0x0d335058; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public Xp3Opener () { diff --git a/ArcFormats/Kiss/ArcARC.cs b/ArcFormats/Kiss/ArcARC.cs index 03991554..e0adbf1c 100644 --- a/ArcFormats/Kiss/ArcARC.cs +++ b/ArcFormats/Kiss/ArcARC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Kiss public override string Description { get { return "Kiss resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/Leaf/ArcA.cs b/ArcFormats/Leaf/ArcA.cs index a3249edc..e626cf4c 100644 --- a/ArcFormats/Leaf/ArcA.cs +++ b/ArcFormats/Leaf/ArcA.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Leaf public override string Description { get { return "Leaf resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AOpener () { diff --git a/ArcFormats/Leaf/ArcAM.cs b/ArcFormats/Leaf/ArcAM.cs index 4a3502b4..ec0ba897 100644 --- a/ArcFormats/Leaf/ArcAM.cs +++ b/ArcFormats/Leaf/ArcAM.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Leaf public override string Description { get { return "Leaf video resources archive"; } } public override uint Signature { get { return 0x30306D61; } } // 'am00' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AmOpener () { diff --git a/ArcFormats/Leaf/ArcLAC.cs b/ArcFormats/Leaf/ArcLAC.cs index 479cf966..11447701 100644 --- a/ArcFormats/Leaf/ArcLAC.cs +++ b/ArcFormats/Leaf/ArcLAC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Leaf public override string Description { get { return "Leaf resource archive"; } } public override uint Signature { get { return 0x43414C; } } // 'LAC' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { @@ -86,7 +86,7 @@ namespace GameRes.Formats.Leaf public override string Description { get { return "Leaf resource archive"; } } public override uint Signature { get { return 0x43414C; } } // 'LAC' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/Leaf/ArcTEX.cs b/ArcFormats/Leaf/ArcTEX.cs index 5337df33..eb5b8ed6 100644 --- a/ArcFormats/Leaf/ArcTEX.cs +++ b/ArcFormats/Leaf/ArcTEX.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Leaf public override string Description { get { return "Leaf textures archive"; } } public override uint Signature { get { return 0x20584554; } } // 'TEX ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public TexOpener () { diff --git a/ArcFormats/Liar/ArcXFL.cs b/ArcFormats/Liar/ArcXFL.cs index 31ed03e8..a9a9314e 100644 --- a/ArcFormats/Liar/ArcXFL.cs +++ b/ArcFormats/Liar/ArcXFL.cs @@ -36,11 +36,11 @@ namespace GameRes.Formats.Liar [Export(typeof(ArchiveFormat))] public class XflOpener : ArchiveFormat { - public override string Tag { get { return "XFL"; } } + public override string Tag { get { return "XFL"; } } public override string Description { get { return Strings.arcStrings.XFLDescription; } } - public override uint Signature { get { return 0x0001424c; } } - public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override uint Signature { get { return 0x0001424c; } } + public override bool IsHierarchic { get { return false; } } + public override bool CanWrite { get { return true; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Liar/ImageWCG.cs b/ArcFormats/Liar/ImageWCG.cs index 27a40045..8a026ba4 100644 --- a/ArcFormats/Liar/ImageWCG.cs +++ b/ArcFormats/Liar/ImageWCG.cs @@ -40,6 +40,7 @@ namespace GameRes.Formats.Liar public override string Tag { get { return "WCG"; } } public override string Description { get { return "Liar-soft proprietary image format"; } } public override uint Signature { get { return 0x02714757; } } + public override bool CanWrite { get { return true; } } public WcgFormat () { diff --git a/ArcFormats/Lilim/ArcABM.cs b/ArcFormats/Lilim/ArcABM.cs index 93ffea12..37ce40c3 100644 --- a/ArcFormats/Lilim/ArcABM.cs +++ b/ArcFormats/Lilim/ArcABM.cs @@ -66,7 +66,7 @@ namespace GameRes.Formats.Lilim public override string Description { get { return "LiLiM/Le.Chocolat multi-frame bitmap"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Lilim/ArcAOS.cs b/ArcFormats/Lilim/ArcAOS.cs index 9c8cb5ba..794865ca 100644 --- a/ArcFormats/Lilim/ArcAOS.cs +++ b/ArcFormats/Lilim/ArcAOS.cs @@ -44,7 +44,7 @@ namespace GameRes.Formats.Lilim public override string Description { get { return "LiLiM/Le.Chocolat engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static readonly byte[] IndexLink = Enumerable.Repeat (0xff, 0x10).ToArray(); static readonly byte[] IndexEnd = Enumerable.Repeat (0, 0x10).ToArray(); @@ -120,7 +120,7 @@ namespace GameRes.Formats.Lilim public override string Description { get { return "LiLiM resource archive version 2"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Aos2Opener () { diff --git a/ArcFormats/LiveMaker/ArcVF.cs b/ArcFormats/LiveMaker/ArcVF.cs index 8fec54eb..474ce7d2 100644 --- a/ArcFormats/LiveMaker/ArcVF.cs +++ b/ArcFormats/LiveMaker/ArcVF.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.LiveMaker public override string Description { get { return "LiveMaker resource archive"; } } public override uint Signature { get { return 0x666676; } } // 'vff' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public VffOpener () { diff --git a/ArcFormats/Lucifen/ArcLPK.cs b/ArcFormats/Lucifen/ArcLPK.cs index 8032f7a6..8c1d3932 100644 --- a/ArcFormats/Lucifen/ArcLPK.cs +++ b/ArcFormats/Lucifen/ArcLPK.cs @@ -93,7 +93,7 @@ namespace GameRes.Formats.Lucifen public override string Description { get { return "Lucifen system resource archive"; } } public override uint Signature { get { return 0x314b504c; } } // 'LPK1' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } [Serializable] public class Key diff --git a/ArcFormats/MAI/ArcMAI.cs b/ArcFormats/MAI/ArcMAI.cs index d117b70f..964bc9f0 100644 --- a/ArcFormats/MAI/ArcMAI.cs +++ b/ArcFormats/MAI/ArcMAI.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.MAI public override string Description { get { return "MAI resource archive"; } } public override uint Signature { get { return 0x0a49414d; } } // 'MAI\x0a' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/Macromedia/ArcCCT.cs b/ArcFormats/Macromedia/ArcCCT.cs index aa405c61..53f22cca 100644 --- a/ArcFormats/Macromedia/ArcCCT.cs +++ b/ArcFormats/Macromedia/ArcCCT.cs @@ -41,7 +41,7 @@ namespace GameRes.Formats.Selen public override string Description { get { return "Macromedia Director resource archive"; } } public override uint Signature { get { return 0x52494658; } } // 'XFIR' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public CctOpener () { diff --git a/ArcFormats/Macromedia/AudioEDIM.cs b/ArcFormats/Macromedia/AudioEDIM.cs index 18644619..f4b20926 100644 --- a/ArcFormats/Macromedia/AudioEDIM.cs +++ b/ArcFormats/Macromedia/AudioEDIM.cs @@ -35,6 +35,7 @@ namespace GameRes.Formats.Selen public override string Tag { get { return "EDIM"; } } public override string Description { get { return "Selen audio format (MP3)"; } } public override uint Signature { get { return 0x40010000; } } + public override bool CanWrite { get { return false; } } public EdimAudio () { diff --git a/ArcFormats/Maika/ArcMK2.cs b/ArcFormats/Maika/ArcMK2.cs index 5e94b933..893bee5e 100644 --- a/ArcFormats/Maika/ArcMK2.cs +++ b/ArcFormats/Maika/ArcMK2.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Maika public override string Description { get { return "MAIKA resource archive"; } } public override uint Signature { get { return 0x2E324B4D; } } // 'MK2.0' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Majiro/ArcMajiro.cs b/ArcFormats/Majiro/ArcMajiro.cs index 79459d3c..9ace7458 100644 --- a/ArcFormats/Majiro/ArcMajiro.cs +++ b/ArcFormats/Majiro/ArcMajiro.cs @@ -43,11 +43,11 @@ namespace GameRes.Formats.Majiro [Export(typeof(ArchiveFormat))] public class ArcOpener : ArchiveFormat { - public override string Tag { get { return "MAJIRO"; } } + public override string Tag { get { return "MAJIRO"; } } public override string Description { get { return "Majiro game engine resource archive"; } } - public override uint Signature { get { return 0x696a614d; } } // 'Maji' - public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override uint Signature { get { return 0x696a614d; } } // 'Maji' + public override bool IsHierarchic { get { return false; } } + public override bool CanWrite { get { return true; } } public ArcOpener () { diff --git a/ArcFormats/Majiro/ImageRCT.cs b/ArcFormats/Majiro/ImageRCT.cs index 78185d19..eca85e9f 100644 --- a/ArcFormats/Majiro/ImageRCT.cs +++ b/ArcFormats/Majiro/ImageRCT.cs @@ -63,6 +63,7 @@ namespace GameRes.Formats.Majiro public override string Tag { get { return "RCT"; } } public override string Description { get { return "Majiro game engine RGB image format"; } } public override uint Signature { get { return 0x9a925a98; } } + public override bool CanWrite { get { return true; } } public bool OverlayFrames = true; public bool ApplyMask = true; diff --git a/ArcFormats/Malie/ArcLIB.cs b/ArcFormats/Malie/ArcLIB.cs index fefe925a..d1f8f03e 100644 --- a/ArcFormats/Malie/ArcLIB.cs +++ b/ArcFormats/Malie/ArcLIB.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Malie public override string Description { get { return "Malie engine resource archive"; } } public override uint Signature { get { return 0x0042494C; } } // 'LIB' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { @@ -130,7 +130,7 @@ namespace GameRes.Formats.Malie public override string Description { get { return "Malie engine encrypted archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/Malie/ImageMGF.cs b/ArcFormats/Malie/ImageMGF.cs index 991ec1d2..0b382151 100644 --- a/ArcFormats/Malie/ImageMGF.cs +++ b/ArcFormats/Malie/ImageMGF.cs @@ -37,6 +37,7 @@ namespace GameRes.Formats.Malie public override string Tag { get { return "MGF"; } } public override string Description { get { return "Malie engine image format"; } } public override uint Signature { get { return 0x696C614D; } } // 'Mali' + public override bool CanWrite { get { return true; } } static readonly byte[] PngHeader = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A }; diff --git a/ArcFormats/MangaGamer/ArcMGPK.cs b/ArcFormats/MangaGamer/ArcMGPK.cs index d79a58cd..1e405f42 100644 --- a/ArcFormats/MangaGamer/ArcMGPK.cs +++ b/ArcFormats/MangaGamer/ArcMGPK.cs @@ -63,7 +63,7 @@ namespace GameRes.Formats.Mg public override string Description { get { return "MG resource archive"; } } public override uint Signature { get { return 0x4b50474d; } } // MGPK public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public MgpkOpener () { diff --git a/ArcFormats/Marble/ArcMBL.cs b/ArcFormats/Marble/ArcMBL.cs index 4a24166c..f0d0b8ea 100644 --- a/ArcFormats/Marble/ArcMBL.cs +++ b/ArcFormats/Marble/ArcMBL.cs @@ -63,7 +63,7 @@ namespace GameRes.Formats.Marble public override string Description { get { return "Marble engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Marble/VideoANIM.cs b/ArcFormats/Marble/VideoANIM.cs index 9aa244d1..6d0d506f 100644 --- a/ArcFormats/Marble/VideoANIM.cs +++ b/ArcFormats/Marble/VideoANIM.cs @@ -36,7 +36,7 @@ namespace GameRes.Formats.Marble public override string Description { get { return "Marble engine video"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AnimOpener () { diff --git a/ArcFormats/Masys/ArcMGD.cs b/ArcFormats/Masys/ArcMGD.cs index 1ed3220f..91f3f773 100644 --- a/ArcFormats/Masys/ArcMGD.cs +++ b/ArcFormats/Masys/ArcMGD.cs @@ -41,7 +41,7 @@ namespace GameRes.Formats.Megu public override string Description { get { return "Masys resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } internal static readonly string Key = "Powerd by Masys"; @@ -104,7 +104,7 @@ namespace GameRes.Formats.Megu public override string Description { get { return "Masys audio resources archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/MnoViolet/ArcMnoViolet.cs b/ArcFormats/MnoViolet/ArcMnoViolet.cs index 5aaed770..24231288 100644 --- a/ArcFormats/MnoViolet/ArcMnoViolet.cs +++ b/ArcFormats/MnoViolet/ArcMnoViolet.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.MnoViolet public override string Description { get { return "M no Violet resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/MokoPro/CompressedFile.cs b/ArcFormats/MokoPro/CompressedFile.cs index b6d5c81a..84311ca4 100644 --- a/ArcFormats/MokoPro/CompressedFile.cs +++ b/ArcFormats/MokoPro/CompressedFile.cs @@ -91,6 +91,7 @@ namespace GameRes.Formats.Mokopro public override string Tag { get { return "BMP/NNNN"; } } public override string Description { get { return "Mokopro compressed bitmap"; } } public override uint Signature { get { return 0x4E4E4E4E; } } // 'NNNN' + public override bool CanWrite { get { return false; } } public NNNNBmpFormat () { @@ -165,7 +166,7 @@ namespace GameRes.Formats.Mokopro public override string Description { get { return "Mokopro compressed file"; } } public override uint Signature { get { return 0x4E4E4E4E; } } // 'NNNN' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public NNNNOpener () { diff --git a/ArcFormats/Moonhir/ArcFPK.cs b/ArcFormats/Moonhir/ArcFPK.cs index 4df2f0ce..7a7fcf09 100644 --- a/ArcFormats/Moonhir/ArcFPK.cs +++ b/ArcFormats/Moonhir/ArcFPK.cs @@ -62,7 +62,7 @@ namespace GameRes.Formats.MoonhirGames public override string Description { get { return "MoonhirGames engine resource archive"; } } public override uint Signature { get { return 0x4B5046; } } // 'FPK' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static uint[] KnownKeys = { 0 }; diff --git a/ArcFormats/Morning/ArcTTD.cs b/ArcFormats/Morning/ArcTTD.cs index 01745b9c..08467db2 100644 --- a/ArcFormats/Morning/ArcTTD.cs +++ b/ArcFormats/Morning/ArcTTD.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Morning public override string Description { get { return "Morning resource archive"; } } public override uint Signature { get { return 0x4352462E; } } // '.FRC' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Musica/ArcPAZ.cs b/ArcFormats/Musica/ArcPAZ.cs index 6d7871ee..97fc1338 100644 --- a/ArcFormats/Musica/ArcPAZ.cs +++ b/ArcFormats/Musica/ArcPAZ.cs @@ -112,7 +112,7 @@ namespace GameRes.Formats.Musica public override string Description { get { return "Musica engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PazOpener () { diff --git a/ArcFormats/Musica/ArcSQZ.cs b/ArcFormats/Musica/ArcSQZ.cs index 8a1454dc..4bdbecbb 100644 --- a/ArcFormats/Musica/ArcSQZ.cs +++ b/ArcFormats/Musica/ArcSQZ.cs @@ -48,7 +48,7 @@ namespace GameRes.Formats.Musica public override string Description { get { return "Musica engine animated frames"; } } public override uint Signature { get { return 0x315A5153; } } // 'SQZ1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/NScripter/ArcNS2.cs b/ArcFormats/NScripter/ArcNS2.cs index 4af017ef..93ae84e4 100644 --- a/ArcFormats/NScripter/ArcNS2.cs +++ b/ArcFormats/NScripter/ArcNS2.cs @@ -41,7 +41,7 @@ namespace GameRes.Formats.NScripter public override string Description { get { return arcStrings.NSADescription; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static Dictionary KnownKeys = new Dictionary(); diff --git a/ArcFormats/NScripter/ArcSAR.cs b/ArcFormats/NScripter/ArcSAR.cs index 56e81478..eaf895dc 100644 --- a/ArcFormats/NScripter/ArcSAR.cs +++ b/ArcFormats/NScripter/ArcSAR.cs @@ -34,11 +34,11 @@ namespace GameRes.Formats.NScripter [Export(typeof(ArchiveFormat))] public class SarOpener : ArchiveFormat { - public override string Tag { get { return "SAR"; } } + public override string Tag { get { return "SAR"; } } public override string Description { get { return arcStrings.NSADescription; } } - public override uint Signature { get { return 0; } } - public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override uint Signature { get { return 0; } } + public override bool IsHierarchic { get { return true; } } + public override bool CanWrite { get { return true; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Nags/ArcNFS.cs b/ArcFormats/Nags/ArcNFS.cs index 417bc303..70d88d8a 100644 --- a/ArcFormats/Nags/ArcNFS.cs +++ b/ArcFormats/Nags/ArcNFS.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Nags public override string Description { get { return "NAGS engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/NekoSDK/ArcDAT.cs b/ArcFormats/NekoSDK/ArcDAT.cs index 0f223f8b..280c2868 100644 --- a/ArcFormats/NekoSDK/ArcDAT.cs +++ b/ArcFormats/NekoSDK/ArcDAT.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.NekoSDK public override string Description { get { return "NekoSDK engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/NekoSDK/ArcPAK.cs b/ArcFormats/NekoSDK/ArcPAK.cs index fb7e50d9..e1e196f8 100644 --- a/ArcFormats/NekoSDK/ArcPAK.cs +++ b/ArcFormats/NekoSDK/ArcPAK.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.NekoSDK public override string Description { get { return "NekoSDK engine resource archive"; } } public override uint Signature { get { return 0x4F4B454E; } } // 'NEKOPACK' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/Nekopunch/ArcPAK.cs b/ArcFormats/Nekopunch/ArcPAK.cs index a03c1b53..4819c2b8 100644 --- a/ArcFormats/Nekopunch/ArcPAK.cs +++ b/ArcFormats/Nekopunch/ArcPAK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Nekopunch public override string Description { get { return "Studio Nekopunch resource archive"; } } public override uint Signature { get { return 0x4B434150; } } // 'PACK' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/Nexas/ArcPAC.cs b/ArcFormats/Nexas/ArcPAC.cs index 008201a3..19c017de 100644 --- a/ArcFormats/Nexas/ArcPAC.cs +++ b/ArcFormats/Nexas/ArcPAC.cs @@ -62,7 +62,7 @@ namespace GameRes.Formats.NeXAS public override string Description { get { return "NeXAS engine resource archive"; } } public override uint Signature { get { return 0x00434150; } } // 'PAC\000' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PacOpener () { diff --git a/ArcFormats/NitroPlus/ArcNPA.cs b/ArcFormats/NitroPlus/ArcNPA.cs index 241108d6..7a2dac57 100644 --- a/ArcFormats/NitroPlus/ArcNPA.cs +++ b/ArcFormats/NitroPlus/ArcNPA.cs @@ -105,7 +105,7 @@ namespace GameRes.Formats.NitroPlus public override string Description { get { return arcStrings.NPADescription; } } public override uint Signature { get { return 0x0141504e; } } // NPA\x01 public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public static Dictionary KnownSchemes = new Dictionary(); diff --git a/ArcFormats/NitroPlus/ArcNPK.cs b/ArcFormats/NitroPlus/ArcNPK.cs index 57e9f99b..fe097c19 100644 --- a/ArcFormats/NitroPlus/ArcNPK.cs +++ b/ArcFormats/NitroPlus/ArcNPK.cs @@ -86,7 +86,7 @@ namespace GameRes.Formats.NitroPlus public override string Description { get { return "Mware engine resource archive"; } } public override uint Signature { get { return 0x324B504E; } } // 'NPK2' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public static Dictionary KnownKeys = new Dictionary(); @@ -134,14 +134,14 @@ namespace GameRes.Formats.NitroPlus List ReadIndex (BinaryReader index, int count, long max_offset) { - var name_buffer = new byte[0x80]; + var name_buffer = new byte[0x104]; var dir = new List (count); for (int i = 0; i < count; ++i) { index.ReadByte(); int name_length = index.ReadUInt16(); - if (name_length > name_buffer.Length) - name_buffer = new byte[name_length]; + if (0 == name_length || name_length > name_buffer.Length) + return null; index.Read (name_buffer, 0, name_length); var name = Encodings.cp932.GetString (name_buffer, 0, name_length); var entry = FormatCatalog.Instance.Create (name); diff --git a/ArcFormats/NitroPlus/ArcNitro.cs b/ArcFormats/NitroPlus/ArcNitro.cs index 2d28a072..1034329b 100644 --- a/ArcFormats/NitroPlus/ArcNitro.cs +++ b/ArcFormats/NitroPlus/ArcNitro.cs @@ -56,7 +56,7 @@ namespace GameRes.Formats.NitroPlus public override string Description { get { return "Nitro+ resource archive"; } } public override uint Signature { get { return 0x03; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/NitroPlus/ArcPAK.cs b/ArcFormats/NitroPlus/ArcPAK.cs index 4416cb17..561e4538 100644 --- a/ArcFormats/NitroPlus/ArcPAK.cs +++ b/ArcFormats/NitroPlus/ArcPAK.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Magi public override string Description { get { return "MAGI resource archive"; } } public override uint Signature { get { return 3; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/NitroPlus/ArcSteinsGate.cs b/ArcFormats/NitroPlus/ArcSteinsGate.cs index 6258704b..3998008c 100644 --- a/ArcFormats/NitroPlus/ArcSteinsGate.cs +++ b/ArcFormats/NitroPlus/ArcSteinsGate.cs @@ -42,11 +42,11 @@ namespace GameRes.Formats [Export(typeof(ArchiveFormat))] public class NpaSteinsGateOpener : ArchiveFormat { - public override string Tag { get { return "NPA-SG"; } } + public override string Tag { get { return "NPA-SG"; } } public override string Description { get { return arcStrings.NPASteinsGateDescription; } } - public override uint Signature { get { return 0; } } - public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override uint Signature { get { return 0; } } + public override bool IsHierarchic { get { return true; } } + public override bool CanWrite { get { return true; } } public NpaSteinsGateOpener () { diff --git a/ArcFormats/NonColor/ArcDAT.cs b/ArcFormats/NonColor/ArcDAT.cs index 67c7bee1..16006ff5 100644 --- a/ArcFormats/NonColor/ArcDAT.cs +++ b/ArcFormats/NonColor/ArcDAT.cs @@ -90,7 +90,7 @@ namespace GameRes.Formats.NonColor public override string Description { get { return "'non color' resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/Pajamas/ArcGameDat.cs b/ArcFormats/Pajamas/ArcGameDat.cs index 0222fb1e..55eef147 100644 --- a/ArcFormats/Pajamas/ArcGameDat.cs +++ b/ArcFormats/Pajamas/ArcGameDat.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Pajamas public override string Description { get { return "Pajamas Adventure System resource archive"; } } public override uint Signature { get { return 0x454d4147; } } // 'GAME' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/Palette/ArcCHR.cs b/ArcFormats/Palette/ArcCHR.cs index 54632db1..79cc3fde 100644 --- a/ArcFormats/Palette/ArcCHR.cs +++ b/ArcFormats/Palette/ArcCHR.cs @@ -54,7 +54,7 @@ namespace GameRes.Formats.Palette public override string Description { get { return "Palette multi-frame PNG archive"; } } public override uint Signature { get { return 0x72616863; } } // 'char' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ChrOpener () { diff --git a/ArcFormats/Palette/ArcPAK.cs b/ArcFormats/Palette/ArcPAK.cs index 284bf6e1..74002169 100644 --- a/ArcFormats/Palette/ArcPAK.cs +++ b/ArcFormats/Palette/ArcPAK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Palette public override string Description { get { return "Palette resource archive"; } } public override uint Signature { get { return 0x43415005; } } // '\x05PAC' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/Palette/ImagePGA.cs b/ArcFormats/Palette/ImagePGA.cs index 8932bbdd..c732871a 100644 --- a/ArcFormats/Palette/ImagePGA.cs +++ b/ArcFormats/Palette/ImagePGA.cs @@ -34,6 +34,7 @@ namespace GameRes.Formats.Palette public override string Tag { get { return "PGA"; } } public override string Description { get { return "Palette obfuscated PNG image"; } } public override uint Signature { get { return 0x50414750; } } // 'PGAP' + public override bool CanWrite { get { return true; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/Patisserie/ArcBIN.cs b/ArcFormats/Patisserie/ArcBIN.cs index 1749b020..93f77125 100644 --- a/ArcFormats/Patisserie/ArcBIN.cs +++ b/ArcFormats/Patisserie/ArcBIN.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Patisserie public override string Description { get { return "Patisserie resource archive"; } } public override uint Signature { get { return 0x01005A4F; } } // 'OZ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public BinOpener () { diff --git a/ArcFormats/Patisserie/ArcRAW.cs b/ArcFormats/Patisserie/ArcRAW.cs index 16560ed6..36cb107c 100644 --- a/ArcFormats/Patisserie/ArcRAW.cs +++ b/ArcFormats/Patisserie/ArcRAW.cs @@ -36,7 +36,7 @@ namespace GameRes.Formats.Patisserie public override string Description { get { return "Patisserie animation resource"; } } public override uint Signature { get { return 0x04574152; } } // 'RAW\x04' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public RawOpener () { diff --git a/ArcFormats/Primel/ArcPCF.cs b/ArcFormats/Primel/ArcPCF.cs index 835680a1..edc93b74 100644 --- a/ArcFormats/Primel/ArcPCF.cs +++ b/ArcFormats/Primel/ArcPCF.cs @@ -46,7 +46,7 @@ namespace GameRes.Formats.Primel public override string Description { get { return "Primel ADV System resource archive"; } } public override uint Signature { get { return 0x6B636150; } } // 'Pack' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Propeller/ArcMGR.cs b/ArcFormats/Propeller/ArcMGR.cs index 3849f754..680acac8 100644 --- a/ArcFormats/Propeller/ArcMGR.cs +++ b/ArcFormats/Propeller/ArcMGR.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Propeller public override string Description { get { return "Propeller multi-frame image"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Propeller/ArcMPK.cs b/ArcFormats/Propeller/ArcMPK.cs index 013315ec..b20c86c2 100644 --- a/ArcFormats/Propeller/ArcMPK.cs +++ b/ArcFormats/Propeller/ArcMPK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Propeller public override string Description { get { return "Propeller resources archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Qlie/ArcABMP.cs b/ArcFormats/Qlie/ArcABMP.cs index 8c373d86..16d58d18 100644 --- a/ArcFormats/Qlie/ArcABMP.cs +++ b/ArcFormats/Qlie/ArcABMP.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Qlie public override string Description { get { return "QLIE engine multi-frame archive"; } } public override uint Signature { get { return 0x706D6261; } } // 'abmp' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public AbmpOpener () { @@ -190,7 +190,7 @@ namespace GameRes.Formats.Qlie public override string Description { get { return "QLIE engine multi-frame image archive"; } } public override uint Signature { get { return 0x504D4241; } } // 'ABMP' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Qlie/ArcQLIE.cs b/ArcFormats/Qlie/ArcQLIE.cs index 34de8d16..5f3469a9 100644 --- a/ArcFormats/Qlie/ArcQLIE.cs +++ b/ArcFormats/Qlie/ArcQLIE.cs @@ -88,7 +88,7 @@ namespace GameRes.Formats.Qlie public override string Description { get { return "QLIE engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PackOpener () { diff --git a/ArcFormats/RPM/ArcARC.cs b/ArcFormats/RPM/ArcARC.cs index ba4898cf..c01a2a5e 100644 --- a/ArcFormats/RPM/ArcARC.cs +++ b/ArcFormats/RPM/ArcARC.cs @@ -66,7 +66,7 @@ namespace GameRes.Formats.Rpm public override string Description { get { return "RPM engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/RealLive/ArcG00.cs b/ArcFormats/RealLive/ArcG00.cs index 5273516e..89d9d66c 100644 --- a/ArcFormats/RealLive/ArcG00.cs +++ b/ArcFormats/RealLive/ArcG00.cs @@ -58,7 +58,7 @@ namespace GameRes.Formats.RealLive public override string Description { get { return "RealLive engine multi-frame image"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public G00Opener () { diff --git a/ArcFormats/RealLive/ArcOVK.cs b/ArcFormats/RealLive/ArcOVK.cs index ec3daf5d..432147ea 100644 --- a/ArcFormats/RealLive/ArcOVK.cs +++ b/ArcFormats/RealLive/ArcOVK.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.RealLive public override string Description { get { return "RealLive engine audio archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/RenPy/ArcRPA.cs b/ArcFormats/RenPy/ArcRPA.cs index 4c181f8e..d113777e 100644 --- a/ArcFormats/RenPy/ArcRPA.cs +++ b/ArcFormats/RenPy/ArcRPA.cs @@ -54,7 +54,7 @@ namespace GameRes.Formats.RenPy public override string Description { get { return Strings.arcStrings.RPADescription; } } public override uint Signature { get { return 0x2d415052; } } // "RPA-" public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Resources/Formats.dat b/ArcFormats/Resources/Formats.dat index 1c5d2a11..08f64516 100644 Binary files a/ArcFormats/Resources/Formats.dat and b/ArcFormats/Resources/Formats.dat differ diff --git a/ArcFormats/RiddleSoft/ArcPAC.cs b/ArcFormats/RiddleSoft/ArcPAC.cs index e91cd72c..3cc1c673 100644 --- a/ArcFormats/RiddleSoft/ArcPAC.cs +++ b/ArcFormats/RiddleSoft/ArcPAC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Riddle public override string Description { get { return "Riddle Soft resource archive"; } } public override uint Signature { get { return 0x31434150; } } // 'PAC1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PacOpener () { diff --git a/ArcFormats/SHSystem/ArcHXP.cs b/ArcFormats/SHSystem/ArcHXP.cs index 17373984..910cdd13 100644 --- a/ArcFormats/SHSystem/ArcHXP.cs +++ b/ArcFormats/SHSystem/ArcHXP.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.SHSystem public override string Description { get { return "SH System engine resource archive"; } } public override uint Signature { get { return 0x346D6948; } } // 'Him4' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Him4Opener () { @@ -141,7 +141,7 @@ namespace GameRes.Formats.SHSystem public override string Description { get { return "SH System engine resource archive"; } } public override uint Signature { get { return 0x356D6948; } } // 'Him5' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Him5Opener () { diff --git a/ArcFormats/Sas5/ArcIAR.cs b/ArcFormats/Sas5/ArcIAR.cs index e691f8d6..72e216ed 100644 --- a/ArcFormats/Sas5/ArcIAR.cs +++ b/ArcFormats/Sas5/ArcIAR.cs @@ -62,7 +62,7 @@ namespace GameRes.Formats.Sas5 public override string Description { get { return "SAS5 engine images archive"; } } public override uint Signature { get { return 0x20726169; } } // 'iar ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Sas5/ArcSec5.cs b/ArcFormats/Sas5/ArcSec5.cs index 6f59c742..38a6dcde 100644 --- a/ArcFormats/Sas5/ArcSec5.cs +++ b/ArcFormats/Sas5/ArcSec5.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Sas5 public override string Description { get { return "SAS5 engine resource index file"; } } public override uint Signature { get { return 0x35434553; } } // 'SEC5' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Sas5/ArcWAR.cs b/ArcFormats/Sas5/ArcWAR.cs index 225585cf..922f7ff3 100644 --- a/ArcFormats/Sas5/ArcWAR.cs +++ b/ArcFormats/Sas5/ArcWAR.cs @@ -43,7 +43,7 @@ namespace GameRes.Formats.Sas5 public override string Description { get { return "SAS5 engine audio archive"; } } public override uint Signature { get { return 0x20726177; } } // 'war ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public WarOpener () { @@ -147,7 +147,7 @@ namespace GameRes.Formats.Sas5 public override string Description { get { return "SAS5 engine audio archive"; } } public override uint Signature { get { return 0x32726177; } } // 'war2' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public War2Opener () { diff --git a/ArcFormats/ScenePlayer/AudioPMW.cs b/ArcFormats/ScenePlayer/AudioPMW.cs index 16612265..7f391204 100644 --- a/ArcFormats/ScenePlayer/AudioPMW.cs +++ b/ArcFormats/ScenePlayer/AudioPMW.cs @@ -35,6 +35,7 @@ namespace GameRes.Formats.ScenePlayer public override string Tag { get { return "PMW"; } } public override string Description { get { return "ScenePlayer compressed WAV audio"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public override SoundInput TryOpen (Stream file) { diff --git a/ArcFormats/ScenePlayer/ImagePMP.cs b/ArcFormats/ScenePlayer/ImagePMP.cs index 0b204c8d..6b15cc71 100644 --- a/ArcFormats/ScenePlayer/ImagePMP.cs +++ b/ArcFormats/ScenePlayer/ImagePMP.cs @@ -37,6 +37,7 @@ namespace GameRes.Formats.ScenePlayer public override string Tag { get { return "PMP"; } } public override string Description { get { return "ScenePlayer compressed bitmap format"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public override void Write (Stream file, ImageData image) { diff --git a/ArcFormats/ScrPlayer/ArcPAK.cs b/ArcFormats/ScrPlayer/ArcPAK.cs index 30d36e3a..99065b0c 100644 --- a/ArcFormats/ScrPlayer/ArcPAK.cs +++ b/ArcFormats/ScrPlayer/ArcPAK.cs @@ -35,7 +35,7 @@ namespace GameRes.Formats.ScrPlayer public override string Description { get { return "ScrPlayer engine resource archive"; } } public override uint Signature { get { return 0x6B636170; } } // 'pack' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Selene/ArcKCAP.cs b/ArcFormats/Selene/ArcKCAP.cs index 613766fd..b5c780f4 100644 --- a/ArcFormats/Selene/ArcKCAP.cs +++ b/ArcFormats/Selene/ArcKCAP.cs @@ -68,7 +68,7 @@ namespace GameRes.Formats.Selene public override string Description { get { return "Selene engine resource archive"; } } public override uint Signature { get { return 0x5041434b; } } // 'KCAP' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } static private string DefaultPassPhrase = "Selene.Default.Password"; diff --git a/ArcFormats/ShiinaRio/ArcS25.cs b/ArcFormats/ShiinaRio/ArcS25.cs index e0f96b73..8ec35306 100644 --- a/ArcFormats/ShiinaRio/ArcS25.cs +++ b/ArcFormats/ShiinaRio/ArcS25.cs @@ -41,7 +41,7 @@ namespace GameRes.Formats.ShiinaRio public override string Description { get { return "ShiinaRio engine multi-image"; } } public override uint Signature { get { return 0x00353253; } } // 'S25' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/ShiinaRio/ArcWARC.cs b/ArcFormats/ShiinaRio/ArcWARC.cs index 34dc4054..e65882b1 100644 --- a/ArcFormats/ShiinaRio/ArcWARC.cs +++ b/ArcFormats/ShiinaRio/ArcWARC.cs @@ -70,7 +70,7 @@ namespace GameRes.Formats.ShiinaRio // 椎名里緒 public override string Description { get { return "ShiinaRio engine resource archive"; } } public override uint Signature { get { return 0x43524157; } } // 'WARC' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ResourceScheme Scheme { diff --git a/ArcFormats/Silky/ArcARC.cs b/ArcFormats/Silky/ArcARC.cs index bedcb4e9..f8a7ecf4 100644 --- a/ArcFormats/Silky/ArcARC.cs +++ b/ArcFormats/Silky/ArcARC.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Silky public override string Description { get { return "Silky's resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { diff --git a/ArcFormats/Silky/ArcAWF.cs b/ArcFormats/Silky/ArcAWF.cs index 90f59e30..0f9d2fe5 100644 --- a/ArcFormats/Silky/ArcAWF.cs +++ b/ArcFormats/Silky/ArcAWF.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Silky public override string Description { get { return "Silky's audio archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Silky/ArcAi6Win.cs b/ArcFormats/Silky/ArcAi6Win.cs index bd97811d..021da9c0 100644 --- a/ArcFormats/Silky/ArcAi6Win.cs +++ b/ArcFormats/Silky/ArcAi6Win.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Silky public override string Description { get { return "AI6WIN engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Ai6Opener () { diff --git a/ArcFormats/Silky/ArcIFL.cs b/ArcFormats/Silky/ArcIFL.cs index 9df7eac6..45801db0 100644 --- a/ArcFormats/Silky/ArcIFL.cs +++ b/ArcFormats/Silky/ArcIFL.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Silky public override string Description { get { return "Silky's engine resource archive"; } } public override uint Signature { get { return 0x534c4649; } } // 'IFLS' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Silky/ArcMFG.cs b/ArcFormats/Silky/ArcMFG.cs index cce41920..1161ca11 100644 --- a/ArcFormats/Silky/ArcMFG.cs +++ b/ArcFormats/Silky/ArcMFG.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Silky public override string Description { get { return "Silky's engine resource archive"; } } public override uint Signature { get { return 0x46504c41; } } // 'ALPF' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public MfgOpener () { diff --git a/ArcFormats/Slg/ArcSZS.cs b/ArcFormats/Slg/ArcSZS.cs index 81300bbd..24970d02 100644 --- a/ArcFormats/Slg/ArcSZS.cs +++ b/ArcFormats/Slg/ArcSZS.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Slg public override string Description { get { return "SLG system resource archive"; } } public override uint Signature { get { return 0x31535A53; } } // 'SZS1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Slg/ImageTIG.cs b/ArcFormats/Slg/ImageTIG.cs index 2dcf5492..c5c7d3d8 100644 --- a/ArcFormats/Slg/ImageTIG.cs +++ b/ArcFormats/Slg/ImageTIG.cs @@ -35,6 +35,7 @@ namespace GameRes.Formats.Slg public override string Tag { get { return "TIG"; } } public override string Description { get { return "SLG system encrypted PNG image"; } } public override uint Signature { get { return 0x7CF3C28B; } } + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/Softpal/ArcPAC.cs b/ArcFormats/Softpal/ArcPAC.cs index 1a575bb9..7de7c6c3 100644 --- a/ArcFormats/Softpal/ArcPAC.cs +++ b/ArcFormats/Softpal/ArcPAC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Softpal public override string Description { get { return "Archive format used by Softpal subsidiaries"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PacOpener () { @@ -118,7 +118,7 @@ namespace GameRes.Formats.Softpal public override string Description { get { return "Archive format used by Amuse Craft subsidiaries"; } } public override uint Signature { get { return 0x20434150; } } // 'PAC ' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Softpal/ArcVAFS.cs b/ArcFormats/Softpal/ArcVAFS.cs index c3b74a82..49306995 100644 --- a/ArcFormats/Softpal/ArcVAFS.cs +++ b/ArcFormats/Softpal/ArcVAFS.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Softpal public override string Description { get { return "Softpal engine resource archive"; } } public override uint Signature { get { return 0x53464156; } } // 'VAFS' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public VafsOpener () { diff --git a/ArcFormats/Softpal/ImagePGD.cs b/ArcFormats/Softpal/ImagePGD.cs index 9ced2683..86f04c52 100644 --- a/ArcFormats/Softpal/ImagePGD.cs +++ b/ArcFormats/Softpal/ImagePGD.cs @@ -146,6 +146,7 @@ namespace GameRes.Formats.Softpal public override string Tag { get { return "PGD/TGA"; } } public override string Description { get { return "Image format used by Softpal subsidiaries"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return false; } } public PgdTgaFormat () { diff --git a/ArcFormats/StudioEgo/ArcEGO.cs b/ArcFormats/StudioEgo/ArcEGO.cs index f3e35c9b..67d5a3ce 100644 --- a/ArcFormats/StudioEgo/ArcEGO.cs +++ b/ArcFormats/StudioEgo/ArcEGO.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Ego public override string Description { get { return "Studio e.go! engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public DatOpener () { diff --git a/ArcFormats/StudioEgo/ArcPAK0.cs b/ArcFormats/StudioEgo/ArcPAK0.cs index 233b7feb..8b9ca7ac 100644 --- a/ArcFormats/StudioEgo/ArcPAK0.cs +++ b/ArcFormats/StudioEgo/ArcPAK0.cs @@ -44,7 +44,7 @@ namespace GameRes.Formats.Ego public override string Description { get { return "Studio e.go! resource archive"; } } public override uint Signature { get { return 0x304B4150; } } // 'PAK0' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Pak0Opener () { diff --git a/ArcFormats/SuperNekoX/ArcGPC.cs b/ArcFormats/SuperNekoX/ArcGPC.cs index b45a211f..ece9ab91 100644 --- a/ArcFormats/SuperNekoX/ArcGPC.cs +++ b/ArcFormats/SuperNekoX/ArcGPC.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.SuperNekoX public override string Description { get { return "Super NekoX engine resource archive"; } } public override uint Signature { get { return 0x37637047; } } // 'Gpc7' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public GpcOpener () { diff --git a/ArcFormats/Tactics/ArcTactics.cs b/ArcFormats/Tactics/ArcTactics.cs index 85d2e646..e3286237 100644 --- a/ArcFormats/Tactics/ArcTactics.cs +++ b/ArcFormats/Tactics/ArcTactics.cs @@ -63,7 +63,7 @@ namespace GameRes.Formats.Tactics public override string Description { get { return "Tactics archive file"; } } public override uint Signature { get { return 0x54434154; } } // 'TACT' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { @@ -332,7 +332,7 @@ namespace GameRes.Formats.Tactics public class Arc2Opener : ArcOpener { public override string Tag { get { return "ARC/Tactics/2"; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Arc2Opener () { diff --git a/ArcFormats/TamaSoft/ArcEPK.cs b/ArcFormats/TamaSoft/ArcEPK.cs index 25a02c1e..ebd6d84b 100644 --- a/ArcFormats/TamaSoft/ArcEPK.cs +++ b/ArcFormats/TamaSoft/ArcEPK.cs @@ -67,7 +67,7 @@ namespace GameRes.Formats.Tama public override string Description { get { return "TamaSoft ADV system resource archive"; } } public override uint Signature { get { return 0x204B5045; } } // 'EPK ' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Tmr-Hiro/ArcPAC.cs b/ArcFormats/Tmr-Hiro/ArcPAC.cs index 90b44e29..deac5f4f 100644 --- a/ArcFormats/Tmr-Hiro/ArcPAC.cs +++ b/ArcFormats/Tmr-Hiro/ArcPAC.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.TmrHiro public override string Description { get { return "Tmr-Hiro ADV System resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PacOpener () { diff --git a/ArcFormats/TopCat/ArcTCD3.cs b/ArcFormats/TopCat/ArcTCD3.cs index 5341c926..08a8a8cf 100644 --- a/ArcFormats/TopCat/ArcTCD3.cs +++ b/ArcFormats/TopCat/ArcTCD3.cs @@ -81,7 +81,7 @@ namespace GameRes.Formats.TopCat public override string Description { get { return "TopCat data archive"; } } public override uint Signature { get { return 0x33444354; } } // 'TCD3' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public TcdOpener () { diff --git a/ArcFormats/Triangle/ArcCGF.cs b/ArcFormats/Triangle/ArcCGF.cs index b6b497fb..1109b432 100644 --- a/ArcFormats/Triangle/ArcCGF.cs +++ b/ArcFormats/Triangle/ArcCGF.cs @@ -44,7 +44,7 @@ namespace GameRes.Formats.Triangle public override string Description { get { return "route2 engine CG archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Triangle/ArcIAF.cs b/ArcFormats/Triangle/ArcIAF.cs index c8926bf5..3646a483 100644 --- a/ArcFormats/Triangle/ArcIAF.cs +++ b/ArcFormats/Triangle/ArcIAF.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Triangle public override string Description { get { return "route2 engine multi-frame image"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public IafOpener () { diff --git a/ArcFormats/Triangle/ArcSUD.cs b/ArcFormats/Triangle/ArcSUD.cs index 94a1c495..1656e4e3 100644 --- a/ArcFormats/Triangle/ArcSUD.cs +++ b/ArcFormats/Triangle/ArcSUD.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Triangle public override string Description { get { return "Triangle audio archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Triangle/ImageIAF.cs b/ArcFormats/Triangle/ImageIAF.cs index 04632f69..d8b7007f 100644 --- a/ArcFormats/Triangle/ImageIAF.cs +++ b/ArcFormats/Triangle/ImageIAF.cs @@ -46,6 +46,7 @@ namespace GameRes.Formats.Triangle public override string Tag { get { return "IAF"; } } public override string Description { get { return "Triangle compressed bitmap format"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return false; } } public override ImageMetaData ReadMetaData (Stream stream) { diff --git a/ArcFormats/UMeSoft/ArcPK.cs b/ArcFormats/UMeSoft/ArcPK.cs index b9b8854c..1f89e150 100644 --- a/ArcFormats/UMeSoft/ArcPK.cs +++ b/ArcFormats/UMeSoft/ArcPK.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.UMeSoft public override string Description { get { return "U-Me Soft resources archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PkOpener () { diff --git a/ArcFormats/VnEngine/ArcAXR.cs b/ArcFormats/VnEngine/ArcAXR.cs index 75e98de0..01b3ce56 100644 --- a/ArcFormats/VnEngine/ArcAXR.cs +++ b/ArcFormats/VnEngine/ArcAXR.cs @@ -49,7 +49,7 @@ namespace GameRes.Formats.VnEngine public override string Description { get { return "GEM/vnengine resource archive"; } } public override uint Signature { get { return 0x65525841; } } // 'AXRe' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/WildBug/ArcWBP.cs b/ArcFormats/WildBug/ArcWBP.cs index b87205b9..db638d3a 100644 --- a/ArcFormats/WildBug/ArcWBP.cs +++ b/ArcFormats/WildBug/ArcWBP.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.WildBug public override string Description { get { return "Wild Bug's engine resource archive"; } } public override uint Signature { get { return 0x46435241; } } // 'ARCF' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Will/ArcPNA.cs b/ArcFormats/Will/ArcPNA.cs index 3add51f1..1830c608 100644 --- a/ArcFormats/Will/ArcPNA.cs +++ b/ArcFormats/Will/ArcPNA.cs @@ -43,7 +43,7 @@ namespace GameRes.Formats.Will public override string Description { get { return "Pulltop multi-frame image format"; } } public override uint Signature { get { return 0x50414E50; } } // 'PNAP' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/Will/ArcPulltop.cs b/ArcFormats/Will/ArcPulltop.cs index eb00f2ca..b7e7c35a 100644 --- a/ArcFormats/Will/ArcPulltop.cs +++ b/ArcFormats/Will/ArcPulltop.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Will public override string Description { get { return "Will Co. game engine resource archive v2"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public Arc2Opener () { diff --git a/ArcFormats/Will/ArcWILL.cs b/ArcFormats/Will/ArcWILL.cs index 2656424d..f1541cc5 100644 --- a/ArcFormats/Will/ArcWILL.cs +++ b/ArcFormats/Will/ArcWILL.cs @@ -52,7 +52,7 @@ namespace GameRes.Formats.Will public override string Description { get { return "Will Co. game engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } ArcOpener () { diff --git a/ArcFormats/Will/ArcWIP.cs b/ArcFormats/Will/ArcWIP.cs index 1981b9e6..b7d9812a 100644 --- a/ArcFormats/Will/ArcWIP.cs +++ b/ArcFormats/Will/ArcWIP.cs @@ -45,7 +45,7 @@ namespace GameRes.Formats.Will public override string Description { get { return "Will Co. multi-frame image format"; } } public override uint Signature { get { return 0x46504957u; } } // 'WIPF' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public WipOpener () { diff --git a/ArcFormats/Xuse/ArcBIN.cs b/ArcFormats/Xuse/ArcBIN.cs index 84a0234f..5d085a58 100644 --- a/ArcFormats/Xuse/ArcBIN.cs +++ b/ArcFormats/Xuse/ArcBIN.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Xuse public override string Description { get { return "Xuse audio archive"; } } public override uint Signature { get { return 1; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public BinOpener () { diff --git a/ArcFormats/Xuse/ArcGD.cs b/ArcFormats/Xuse/ArcGD.cs index a01b5e9a..989624b0 100644 --- a/ArcFormats/Xuse/ArcGD.cs +++ b/ArcFormats/Xuse/ArcGD.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Xuse public override string Description { get { return "Xuse resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public GdOpener () { diff --git a/ArcFormats/Xuse/ArcWAG.cs b/ArcFormats/Xuse/ArcWAG.cs index 31f6197a..493205b4 100644 --- a/ArcFormats/Xuse/ArcWAG.cs +++ b/ArcFormats/Xuse/ArcWAG.cs @@ -51,7 +51,7 @@ namespace GameRes.Formats.Xuse public override string Description { get { return "Xuse/Eternal resource archive"; } } public override uint Signature { get { return 0x40474157; } } // 'WAG@' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public WagOpener () { diff --git a/ArcFormats/Xuse/ArcXARC.cs b/ArcFormats/Xuse/ArcXARC.cs index 9fd59227..4ae14fff 100644 --- a/ArcFormats/Xuse/ArcXARC.cs +++ b/ArcFormats/Xuse/ArcXARC.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Xuse public override string Description { get { return "Xuse resource archive"; } } public override uint Signature { get { return 0x43524158; } } // 'XARC' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public XarcOpener () { diff --git a/ArcFormats/Xuse/ArcXuse.cs b/ArcFormats/Xuse/ArcXuse.cs index d9cea12f..6e4d3c37 100644 --- a/ArcFormats/Xuse/ArcXuse.cs +++ b/ArcFormats/Xuse/ArcXuse.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Xuse public override string Description { get { return "Xuse/Eternal resource archive"; } } public override uint Signature { get { return 0x4F4B494D; } } // 'MIKO' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public ArcOpener () { @@ -125,7 +125,7 @@ namespace GameRes.Formats.Xuse public override string Description { get { return "Xuse/Eternal resource archive"; } } public override uint Signature { get { return 0x4F544F4B; } } // 'KOTO' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public KotoriOpener () { diff --git a/ArcFormats/Yox/ArcYOX.cs b/ArcFormats/Yox/ArcYOX.cs index 3b91e20e..978a68b4 100644 --- a/ArcFormats/Yox/ArcYOX.cs +++ b/ArcFormats/Yox/ArcYOX.cs @@ -39,7 +39,7 @@ namespace GameRes.Formats.Yox public override string Description { get { return "YOX ADV+++ engine resource archive"; } } public override uint Signature { get { return 0x584F59; } } // 'YOX' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public DatOpener () { diff --git a/ArcFormats/YuRis/ArcYPF.cs b/ArcFormats/YuRis/ArcYPF.cs index 18b1db42..2ead8653 100644 --- a/ArcFormats/YuRis/ArcYPF.cs +++ b/ArcFormats/YuRis/ArcYPF.cs @@ -102,7 +102,7 @@ namespace GameRes.Formats.YuRis public override string Description { get { return arcStrings.YPFDescription; } } public override uint Signature { get { return 0x00465059; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } static public Dictionary KnownSchemes = new Dictionary(); diff --git a/ArcFormats/Yuka/ArcYKC.cs b/ArcFormats/Yuka/ArcYKC.cs index eafd176d..cd7175f1 100644 --- a/ArcFormats/Yuka/ArcYKC.cs +++ b/ArcFormats/Yuka/ArcYKC.cs @@ -46,7 +46,7 @@ namespace GameRes.Formats.Yuka public override string Description { get { return "Yuka engine resource archive"; } } public override uint Signature { get { return 0x30434B59; } } // 'YKC0' public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return true; } } + public override bool CanWrite { get { return true; } } public YkcOpener () { diff --git a/ArcFormats/Zyx/ArcBDF.cs b/ArcFormats/Zyx/ArcBDF.cs index c392d11b..7c622378 100644 --- a/ArcFormats/Zyx/ArcBDF.cs +++ b/ArcFormats/Zyx/ArcBDF.cs @@ -181,7 +181,7 @@ namespace GameRes.Formats.Zyx public override string Description { get { return "Zyx multi-frame image package"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/ArcFormats/elf/ArcAi5Win.cs b/ArcFormats/elf/ArcAi5Win.cs index fa6b7cb7..3ea2e343 100644 --- a/ArcFormats/elf/ArcAi5Win.cs +++ b/ArcFormats/elf/ArcAi5Win.cs @@ -55,7 +55,7 @@ namespace GameRes.Formats.Elf public override string Description { get { return "AI5WIN engine resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public static Dictionary KnownSchemes = new Dictionary(); diff --git a/ArcFormats/elf/ArcHED.cs b/ArcFormats/elf/ArcHED.cs index 86900cb9..e3ea34e8 100644 --- a/ArcFormats/elf/ArcHED.cs +++ b/ArcFormats/elf/ArcHED.cs @@ -40,7 +40,7 @@ namespace GameRes.Formats.Elf public override string Description { get { return "elf AV King resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public PakOpener () { diff --git a/ArcFormats/elf/ArcVOL.cs b/ArcFormats/elf/ArcVOL.cs index 3488347f..7c9420d7 100644 --- a/ArcFormats/elf/ArcVOL.cs +++ b/ArcFormats/elf/ArcVOL.cs @@ -37,7 +37,7 @@ namespace GameRes.Formats.Elf public override string Description { get { return "Ancient elf resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public VolOpener () { diff --git a/ArcFormats/elf/ArcVSD.cs b/ArcFormats/elf/ArcVSD.cs index 21d8d525..a083aede 100644 --- a/ArcFormats/elf/ArcVSD.cs +++ b/ArcFormats/elf/ArcVSD.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.Silky public override string Description { get { return "AI5WIN engine video file"; } } public override uint Signature { get { return 0x31445356; } } // 'VSD1' public override bool IsHierarchic { get { return false; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public VsdOpener () { diff --git a/ArcFormats/uGOS/ArcDET.cs b/ArcFormats/uGOS/ArcDET.cs index 40187550..85104a08 100644 --- a/ArcFormats/uGOS/ArcDET.cs +++ b/ArcFormats/uGOS/ArcDET.cs @@ -38,7 +38,7 @@ namespace GameRes.Formats.uGOS public override string Description { get { return "μ-GameOperationSystem resource archive"; } } public override uint Signature { get { return 0; } } public override bool IsHierarchic { get { return true; } } - public override bool CanCreate { get { return false; } } + public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { diff --git a/GUI/ConvertMedia.xaml b/GUI/ConvertMedia.xaml index b2583ced..345f64f2 100644 --- a/GUI/ConvertMedia.xaml +++ b/GUI/ConvertMedia.xaml @@ -12,7 +12,7 @@ diff --git a/GUI/ConvertMedia.xaml.cs b/GUI/ConvertMedia.xaml.cs index e4cff0fc..3aca50b9 100644 --- a/GUI/ConvertMedia.xaml.cs +++ b/GUI/ConvertMedia.xaml.cs @@ -1,5 +1,7 @@ -using System.Windows; +using System.Linq; +using System.Windows; using System.Windows.Input; +using GameRes; using GARbro.GUI.Strings; using Microsoft.WindowsAPICodePack.Dialogs; @@ -13,6 +15,7 @@ namespace GARbro.GUI public ConvertMedia () { InitializeComponent (); + ImageConversionFormat.ItemsSource = FormatCatalog.Instance.ImageFormats.Where (f => f.CanWrite); } private void BrowseExec (object sender, ExecutedRoutedEventArgs e) diff --git a/GUI/CreateArchive.xaml.cs b/GUI/CreateArchive.xaml.cs index fd98cf42..359a2992 100644 --- a/GUI/CreateArchive.xaml.cs +++ b/GUI/CreateArchive.xaml.cs @@ -52,7 +52,7 @@ namespace GARbro.GUI ArchiveName.Text = initial_name; } - private readonly IEnumerable m_formats = FormatCatalog.Instance.ArcFormats.Where (f => f.CanCreate).OrderBy (f => f.Tag); + private readonly IEnumerable m_formats = FormatCatalog.Instance.ArcFormats.Where (f => f.CanWrite).OrderBy (f => f.Tag); public IEnumerable ArcFormats { get { return m_formats; } } diff --git a/GameRes/AudioWAV.cs b/GameRes/AudioWAV.cs index 165f529d..ac9c51a4 100644 --- a/GameRes/AudioWAV.cs +++ b/GameRes/AudioWAV.cs @@ -104,6 +104,7 @@ namespace GameRes public override string Tag { get { return "WAV"; } } public override string Description { get { return "Wave audio format"; } } public override uint Signature { get { return 0x46464952; } } // 'RIFF' + public override bool CanWrite { get { return true; } } static readonly HashSet EmbeddedFormats = new HashSet { 0x674f, 0x6751, 0x6771, // Vorbis diff --git a/GameRes/GameRes.cs b/GameRes/GameRes.cs index e1a9e602..f4a969ad 100644 --- a/GameRes/GameRes.cs +++ b/GameRes/GameRes.cs @@ -76,6 +76,9 @@ namespace GameRes /// or zero if it could vary. public abstract uint Signature { get; } + /// Whether resource creation is supported by implementation. + public virtual bool CanWrite { get { return false; } } + /// Signatures peculiar to the resource (the one above is also included here). public IEnumerable Signatures { get; protected set; } @@ -169,8 +172,9 @@ namespace GameRes { public override string Type { get { return "archive"; } } - public virtual bool CanCreate { get { return false; } } - + /// + /// Whether archive file system could contain subdirectories. + /// public abstract bool IsHierarchic { get; } public abstract ArcFile TryOpen (ArcView view); diff --git a/GameRes/ImageBMP.cs b/GameRes/ImageBMP.cs index 21a1684d..9786593b 100644 --- a/GameRes/ImageBMP.cs +++ b/GameRes/ImageBMP.cs @@ -51,6 +51,7 @@ namespace GameRes public override string Tag { get { return "BMP"; } } public override string Description { get { return "Windows device independent bitmap"; } } public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } #pragma warning disable 649 [ImportMany(typeof(IBmpExtension))] diff --git a/GameRes/ImageJPEG.cs b/GameRes/ImageJPEG.cs index a39f23d0..bf0d3183 100644 --- a/GameRes/ImageJPEG.cs +++ b/GameRes/ImageJPEG.cs @@ -35,9 +35,10 @@ namespace GameRes [Export(typeof(ImageFormat))] public class JpegFormat : ImageFormat { - public override string Tag { get { return "JPEG"; } } + public override string Tag { get { return "JPEG"; } } public override string Description { get { return "JPEG image file format"; } } - public override uint Signature { get { return 0; } } + public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public int Quality { get; set; } diff --git a/GameRes/ImagePNG.cs b/GameRes/ImagePNG.cs index 6ab2aea0..330a2b12 100644 --- a/GameRes/ImagePNG.cs +++ b/GameRes/ImagePNG.cs @@ -36,9 +36,10 @@ namespace GameRes [Export(typeof(ImageFormat))] public class PngFormat : ImageFormat { - public override string Tag { get { return "PNG"; } } + public override string Tag { get { return "PNG"; } } public override string Description { get { return "Portable Network Graphics image"; } } - public override uint Signature { get { return 0x474e5089; } } + public override uint Signature { get { return 0x474e5089; } } + public override bool CanWrite { get { return true; } } public override ImageData Read (Stream file, ImageMetaData info) { diff --git a/GameRes/ImageTGA.cs b/GameRes/ImageTGA.cs index 9da236ae..b9d03e01 100644 --- a/GameRes/ImageTGA.cs +++ b/GameRes/ImageTGA.cs @@ -47,9 +47,10 @@ namespace GameRes [Export(typeof(ImageFormat))] public class TgaFormat : ImageFormat { - public override string Tag { get { return "TGA"; } } + public override string Tag { get { return "TGA"; } } public override string Description { get { return "Truevision TGA image"; } } - public override uint Signature { get { return 0; } } + public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public override ImageData Read (Stream stream, ImageMetaData metadata) { diff --git a/GameRes/ImageTIFF.cs b/GameRes/ImageTIFF.cs index 90a007df..6206542d 100644 --- a/GameRes/ImageTIFF.cs +++ b/GameRes/ImageTIFF.cs @@ -35,9 +35,10 @@ namespace GameRes [Export(typeof(ImageFormat))] public class TifFormat : ImageFormat { - public override string Tag { get { return "TIFF"; } } + public override string Tag { get { return "TIFF"; } } public override string Description { get { return "Tagged Image File Format"; } } - public override uint Signature { get { return 0; } } + public override uint Signature { get { return 0; } } + public override bool CanWrite { get { return true; } } public TifFormat () {