change to GPLv3 from MPL 2.0

This commit is contained in:
SharwOrange橙夜 2024-07-24 18:11:01 +08:00
parent 89916dd828
commit 00139993b7
Signed by: SharwOrange
GPG Key ID: 5507630E4F33F4B1
3 changed files with 685 additions and 375 deletions

1047
LICENSE

File diff suppressed because it is too large Load Diff

View File

@ -2,12 +2,15 @@ using System.Linq;
using System.IO;
using Newtonsoft.Json;
using toast_mcl.Config;
using System;
namespace toast_mcl.Programs;
public static class ConfigUtils
{
/// <summary>
///
/// </summary>
public static ConfigSettings ?Settings { get; private set;}
private static readonly string ConfigFolderPath = Path.Combine(Base.AppDirectory, "toast_mc");
private static readonly string ConfigFilePath = Path.Combine(ConfigFolderPath, "config.json");
@ -21,12 +24,15 @@ public static class ConfigUtils
{
CreateDefaultConfig();
}
LoadConfig();
}
private static void CreateDefaultConfig()
{
Settings = DefaultConfig.GetDefaultConfig();
SaveConfig();
}
public static void LoadConfig()
{
if (File.Exists(ConfigFilePath))

View File

@ -1 +1,4 @@
# toast_mcl
# Toast Minecraft Launcher
[![Gitea](https://img.shields.io/badge/Gitea-609926)](https://git.hope-now.top:8443/HopeNowStudio/toast_mcl)