Skip to content

Commit

Permalink
(IResource.CanWrite): new property.
Browse files Browse the repository at this point in the history
(ArchiveFormat.CanCreate): renamed to CanWrite.
  • Loading branch information
morkt committed Oct 10, 2016
1 parent 3c5a61d commit f1d6620
Show file tree
Hide file tree
Showing 248 changed files with 323 additions and 279 deletions.
2 changes: 1 addition & 1 deletion ArcFormats/AZSys/ArcAZSys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class ArcOpener : ArchiveFormat
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 ()
{
Expand Down
4 changes: 2 additions & 2 deletions ArcFormats/AZSys/ArcEncrypted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public class ArcEncryptedOpener : ArcEncryptedBase
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<string, EncryptionScheme> KnownSchemes = new Dictionary<string, EncryptionScheme>
{
Expand Down Expand Up @@ -358,7 +358,7 @@ public class ArcIsaacEncryptedOpener : ArcEncryptedBase
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/Abel/ArcARC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class ArcOpener : ArchiveFormat
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 ()
{
Expand Down
1 change: 1 addition & 0 deletions ArcFormats/Abel/ImageGPS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class GpsFormat : BmpFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/Actgs/ArcDAT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class DatOpener : ArchiveFormat
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 ()
{
Expand Down
4 changes: 2 additions & 2 deletions ArcFormats/ActiveSoft/ArcADPACK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PakOpener : ArchiveFormat
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 ()
{
Expand Down Expand Up @@ -85,7 +85,7 @@ public class Pak32Opener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AdvSys/ArcAdvSysT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class FpkOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AliceSoft/ArcAFA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class AfaOpener : ArchiveFormat
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AliceSoft/ArcALD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class AldOpener : ArchiveFormat
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AliceSoft/ArcALK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class AlkOpener : ArchiveFormat
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)
{
Expand Down
8 changes: 4 additions & 4 deletions ArcFormats/Amaterasu/ArcAMI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ internal class AmiOptions : ResourceOptions
[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 ()
{
Expand Down
5 changes: 3 additions & 2 deletions ArcFormats/Amaterasu/ImageGRP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AnimeGameSystem/ArcDAT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class DatOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AnimeGameSystem/AudioPCM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
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"; } }
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/AnimeGameSystem/ImageAinos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class AniOpener : ArchiveFormat
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/Ankh/ArcGRP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class GrpOpener : ArchiveFormat
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 ()
{
Expand Down
6 changes: 3 additions & 3 deletions ArcFormats/Aoi/ArcBOX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class BoxOpener : ArchiveFormat
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<int, byte> VersionKeyMap = new Dictionary<int, byte> {
{ 5, 0xAD },
Expand Down Expand Up @@ -148,7 +148,7 @@ public class AoiMyOpener : ArchiveFormat
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 ()
{
Expand Down Expand Up @@ -220,7 +220,7 @@ public class AoiMyUnicodeOpener : AoiMyOpener
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/Aoi/ArcVFS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class VfsOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcARCX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class ArcOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcAST.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class ArcOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcAVC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class DatOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcAil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class DatOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcCG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class CgOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcIKS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class IksOpener : ArchiveFormat
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<string, byte> KnownKeys = new Dictionary<string, byte>() {
{ "Shikkan ~Hazukashimerareta Karada, Oreta Kokoro~", 0x66 },
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcISA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class IsaOpener : ArchiveFormat
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcKogado.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class PakOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcLST.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class LstOpener : ArchiveFormat
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 ()
{
Expand Down
4 changes: 2 additions & 2 deletions ArcFormats/ArcMiris.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class DatOpener : ArchiveFormat
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 ()
{
Expand Down Expand Up @@ -93,7 +93,7 @@ public class GlnkOpener : ArchiveFormat
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 ()
{
Expand Down
4 changes: 2 additions & 2 deletions ArcFormats/ArcNEKO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public class Pak1Opener : ArchiveFormat
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 ()
{
Expand Down Expand Up @@ -407,7 +407,7 @@ public class Pak2Opener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcPACKDAT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class PakOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcPBX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PbxOpener : ArchiveFormat
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcSAF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class SafOpener : ArchiveFormat
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)
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcSPack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class DatOpener : ArchiveFormat
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 ()
{
Expand Down
2 changes: 1 addition & 1 deletion ArcFormats/ArcZIP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class ZipOpener : ArchiveFormat
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)
{
Expand Down
Loading

0 comments on commit f1d6620

Please sign in to comment.