Skip to content

Commit

Permalink
Fix some whitespace and clarify access
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Mar 6, 2024
1 parent 5503bb1 commit 7490fa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AtomicLib/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ public static IsZipAM2R11ReturnCodes CheckIfZipIsAM2R11(string zipPath)
return IsZipAM2R11ReturnCodes.Successful;
}

public static string CalculateMD5(string filename)
private static string CalculateMD5(string filename)
{
using var stream = File.OpenRead(filename);
using var md5 = MD5.Create();
byte[] hash = md5.ComputeHash(stream);
return BitConverter.ToString(hash).Replace("-", "").ToLower();
}

public static void CopyFilesRecursive(DirectoryInfo source, string[] blacklist, string destination)
private static void CopyFilesRecursive(DirectoryInfo source, string[] blacklist, string destination)
{
foreach (var file in source.GetFiles())
{
Expand Down
5 changes: 3 additions & 2 deletions AtomicLib/ModCreationInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

namespace AtomicLib;

// TODO: documentt his class
public class ModCreationInfo
{
public ModProfileXML Profile = new ModProfileXML();

public bool IsAM2R11Loaded => !String.IsNullOrWhiteSpace(AM2R11Path);
public bool IsWindowsModLoaded=> !String.IsNullOrWhiteSpace(WindowsModPath);
public bool IsWindowsModLoaded => !String.IsNullOrWhiteSpace(WindowsModPath);
public bool IsApkModLoaded => !String.IsNullOrWhiteSpace(ApkModPath);
public bool IsLinuxModLoaded=> !String.IsNullOrWhiteSpace(LinuxModPath);
public bool IsMacModLoaded=> !String.IsNullOrWhiteSpace(MacModPath);
public bool IsMacModLoaded => !String.IsNullOrWhiteSpace(MacModPath);

public string AM2R11Path;
public string WindowsModPath;
Expand Down

0 comments on commit 7490fa4

Please sign in to comment.