Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
Renmaed CompType to Compression
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Nov 26, 2019
1 parent a14418a commit 6161c69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMODFramework/Classes/OMOD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected class PrivateData
public readonly HashSet<string> AllPlugins;
public readonly HashSet<DataFileInfo> AllDataFiles;
public readonly uint CRC;
public readonly CompressionType CompType;
public readonly CompressionType Compression;

public string Version => "" + MajorVersion + (MinorVersion != -1 ? "." + MinorVersion + (BuildVersion != -1 ? "." + BuildVersion : "") : "");

Expand Down Expand Up @@ -141,7 +141,7 @@ public OMOD(string path)
}

if (Description == "") Description = "No description";
CompType = (CompressionType)br.ReadByte();
Compression = (CompressionType)br.ReadByte();

if (fileVersion >= 1)
BuildVersion = br.ReadInt32();
Expand Down Expand Up @@ -379,7 +379,7 @@ private string ParseCompressedStream(string dataInfo, string dataCompressed)
if (infoStream == null) return null;

var compressedStream = ExtractWholeFile(dataCompressed);
var path = CompressionHandler.DecompressFiles(infoStream, compressedStream, CompType);
var path = CompressionHandler.DecompressFiles(infoStream, compressedStream, Compression);

infoStream.Close();
compressedStream.Close();
Expand Down

0 comments on commit 6161c69

Please sign in to comment.