Added checking for updates

This commit is contained in:
erik 2025-05-31 00:06:18 +02:00
parent cc15863e81
commit 5ec6525257
19 changed files with 1231 additions and 100 deletions

View file

@ -0,0 +1,19 @@
namespace MossyUpdater.Services
{
public interface ISettingsService
{
Task<AppSettings> LoadSettingsAsync();
Task SaveSettingsAsync(AppSettings settings);
}
public class AppSettings
{
public string LastUsedFolder { get; set; } = string.Empty;
public string DefaultUrl { get; set; } = "https://git.snakedesert.se/SawatoMosswartsEnjoyersClub/MosswartMassacre/raw/branch/spawn-detection/MosswartMassacre/bin/Release/MosswartMassacre.dll";
public string DefaultFilename { get; set; } = "MosswartMassacre.dll";
public double WindowWidth { get; set; } = 550;
public double WindowHeight { get; set; } = 450;
public bool CheckForUpdatesOnStartup { get; set; } = true;
public int DownloadTimeoutMinutes { get; set; } = 10;
}
}