Ejemplo n.º 1
0
 public ZipModAsset(ZipModContent source, ZipModContent.ZipModSecret secret, ZipEntry entry)
     : base(source)
 {
     Path   = entry.FileName.Replace('\\', '/');
     Secret = secret;
     Entry  = entry;
 }
Ejemplo n.º 2
0
 public ZipAssetStream(ZipModAsset asset, ZipModContent.ZipModSecret secret)
 {
     Asset     = asset;
     Secret    = secret;
     FakeEntry = secret.OpenParaEntry(asset.Entry);
     Inner     = FakeEntry.OpenReader();
 }
Ejemplo n.º 3
0
        public ZipModAsset(ZipModContent source, ZipModContent.ZipModSecret secret, string path)
            : base(source)
        {
            Path   = path = path.Replace('\\', '/');
            Secret = secret;

            foreach (ZipEntry entry in source.Zip.Entries)
            {
                if (entry.FileName.Replace('\\', '/') == path)
                {
                    Entry = entry;
                    break;
                }
            }
        }