Skip to content

Commit

Permalink
Updated BioLib
Browse files Browse the repository at this point in the history
  • Loading branch information
Bioruebe committed Oct 16, 2023
1 parent 1a25e20 commit 42c3c9d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
@@ -1,3 +1,6 @@
3.0.1
Updated BioLib to 2.5.0

3.0.0
Added support for another installer version
Added '-dfb' command line parameter to extract file data block
Expand Down
10 changes: 6 additions & 4 deletions cicdec/Program.cs
Expand Up @@ -11,7 +11,7 @@

namespace cicdec {
class Program {
private const string VERSION = "3.0.0";
private const string VERSION = "3.0.1";
private const string PROMPT_ID = "cicdec_overwrite";

private const int BLOCK_HEADER_SIZE = 16 + 16 + 32;
Expand Down Expand Up @@ -259,7 +259,7 @@ class Program {
if (decompressedSize == 0) decompressedSize = binaryReader.ReadUInt32();
var compressionMethod = (COMPRESSION) binaryReader.ReadByte();
Bio.Debug("Decompressing " + blockSize + " bytes @ " + binaryReader.BaseStream.Position);
Bio.Debug(string.Format("\tCompression: {0}, decompressed size: {1}", compressionMethod, decompressedSize));
Bio.Debug(string.Format("\tCompression: {0:X}, decompressed size: {1}", compressionMethod, decompressedSize));
blockSize -= 5;

if (decompressedStream == null) {
Expand Down Expand Up @@ -303,7 +303,7 @@ class Program {
if (simulate) return true;

using (var fileStream = Bio.CreateFile(filePath, PROMPT_ID)) {
if (fileStream == null) return false;
if (fileStream == null) return true;
UnpackStream(binaryReader, blockSize, decompressedSize, fileStream);
}

Expand All @@ -328,7 +328,7 @@ class Program {
SetFileAttributes(filePath, fileInfo);
}
catch (Exception e) {
Bio.Warn("Failed to create file:" + e.Message);
Bio.Warn("Failed to create file: " + e.Message);
return false;
}

Expand Down Expand Up @@ -545,6 +545,8 @@ class Program {

try {
var filePath = Bio.GetSafeOutputPath(outputDirectory, fileInfo.path);
if (filePath == null) continue;

if (!UnpackStreamToFile(filePath, binaryReader, fileInfo.compressedSize - 7, fileInfo.uncompressedSize)) throw new StreamUnsupportedException();
SetFileAttributes(filePath, fileInfo);
}
Expand Down
6 changes: 3 additions & 3 deletions cicdec/Properties/AssemblyInfo.cs
Expand Up @@ -11,7 +11,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Bioruebe")]
[assembly: AssemblyProduct("cicdec")]
[assembly: AssemblyCopyright("Copyright © 2019-2021 William Engelmann")]
[assembly: AssemblyCopyright("Copyright © 2019-2023 William Engelmann")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -33,6 +33,6 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
[assembly: NeutralResourcesLanguage("en")]
4 changes: 2 additions & 2 deletions cicdec/cicdec.csproj
Expand Up @@ -51,8 +51,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Bio.cs, Version=2.3.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Bioruebe.BioLib.2.3.2\lib\net45\Bio.cs.dll</HintPath>
<Reference Include="Bio.cs, Version=2.5.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Bioruebe.BioLib.2.5.0\lib\net45\Bio.cs.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib, Version=1.3.3.11, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
<HintPath>..\packages\SharpZipLib.1.3.3\lib\net45\ICSharpCode.SharpZipLib.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion cicdec/packages.config
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Bioruebe.BioLib" version="2.3.2" targetFramework="net45" />
<package id="Bioruebe.BioLib" version="2.5.0" targetFramework="net45" />
<package id="SharpZipLib" version="1.3.3" targetFramework="net45" />
</packages>

0 comments on commit 42c3c9d

Please sign in to comment.