Added link to forum search

Added status bar
List of DLC is now monospaced
Fixed weird crash with search result window
This commit is contained in:
Jeddunk 2020-12-23 12:34:31 +01:00
parent 56e92924ed
commit 45f86ecc63
11 changed files with 1447 additions and 129 deletions

View file

@ -16,28 +16,30 @@ using HttpProgress;
namespace auto_creamapi.Model
{
public class CreamDllModel
internal class CreamDll
{
private struct CreamDll
public readonly string Filename;
public readonly string OrigFilename;
public readonly string Hash;
public CreamDll(string filename, string origFilename)
{
public readonly string Filename;
public readonly string OrigFilename;
public readonly string Hash;
Filename = filename;
OrigFilename = origFilename;
Hash = "";
public CreamDll(string filename, string origFilename)
using var md5 = MD5.Create();
if (File.Exists(Filename))
{
Filename = filename;
OrigFilename = origFilename;
Hash = "";
using var md5 = MD5.Create();
using var stream = File.OpenRead(Filename);
Hash = BitConverter
.ToString(md5.ComputeHash(stream))
.Replace("-", string.Empty);
}
}
}
public class CreamDllModel
{
private static readonly Lazy<CreamDllModel> Lazy =
new Lazy<CreamDllModel>(() => new CreamDllModel());