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

Commit

Permalink
Added autoproperty for Has-Readme/Script/Image
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Dec 6, 2019
1 parent 179eef7 commit 34b8720
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions OMODFramework/Classes/OMOD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ protected class PrivateData

public string FullFilePath => Path.Combine(FilePath, FileName);

public HashSet<string> Plugins;
/*public HashSet<string> Plugins;
public HashSet<DataFileInfo> DataFiles;
public HashSet<string> BSAs;
//TODO: public List<INIEditInfo> INIEdits;
//TODO: public List<SDPEditInfo> SDPEdits;
public HashSet<INIEditInfo> INIEdits;
public HashSet<SDPEditInfo> SDPEdits;*/

public ConflictLevel Conflict = ConflictLevel.NoConflict;

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

public void Close()
internal void Close()
{
_pD.ModFile?.Close();
_pD.ModFile = null;
Expand Down Expand Up @@ -396,6 +396,12 @@ public string GetImage()
return bitmapPath;
}

public bool HasReadme => ModFile.GetEntry("readme") != null;

public bool HasScript => ModFile.GetEntry("script") != null;

public bool HasImage => ModFile.GetEntry("image") != null;

private string ParseCompressedStream(string dataInfo, string dataCompressed)
{
var infoStream = ExtractWholeFile(dataInfo);
Expand Down

0 comments on commit 34b8720

Please sign in to comment.