updated diagrams and added sharp zip lib for pk3 reader
BIN
Build/Sharpzip.dll
Normal file
BIN
Documents/config_classes.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
Documents/data_classes.png
Normal file
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 19 KiB |
BIN
Documents/io_classes.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
Documents/rendering_classes.png
Normal file
After Width: | Height: | Size: 13 KiB |
|
@ -216,12 +216,11 @@
|
|||
<Compile Include="Rendering\Things2DShader.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Sharpzip, Version=0.85.2.329, Culture=neutral, processorArchitecture=MSIL" />
|
||||
<Reference Include="SlimDX, Version=1.0.2851.40166, Culture=neutral, processorArchitecture=x86" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Interface\AboutForm.resx">
|
||||
|
|
|
@ -25,6 +25,7 @@ using System.Drawing;
|
|||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using CodeImp.DoomBuilder.IO;
|
||||
using ICSharpCode.SharpZipLib.Zip;
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -52,6 +53,15 @@ namespace CodeImp.DoomBuilder.Data
|
|||
// Initialize
|
||||
General.WriteLogLine("Opening PK3 resource '" + location.location + "'");
|
||||
|
||||
ZipInputStream z = new ZipInputStream(File.Open(dl.location, FileMode.Open, FileAccess.Read, FileShare.ReadWrite));
|
||||
ZipEntry ze;
|
||||
while((ze = z.GetNextEntry()) != null)
|
||||
{
|
||||
General.WriteLogLine(ze.Name);
|
||||
|
||||
}
|
||||
z.Dispose();
|
||||
|
||||
// We have no destructor
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
|