This commit is contained in:
2023-02-20 17:25:26 +01:00
parent fa9bb19e79
commit ad18e33a6b
2 changed files with 9 additions and 4 deletions

View File

@@ -1,16 +1,20 @@
Imports System.IO Imports System.IO
Imports Newtonsoft.Json
Imports Newtonsoft.Json.Linq Imports Newtonsoft.Json.Linq
Public Class AppConfig Public Class AppConfig
Public Property LastMinecraftProfilePath As String Public Property LastMinecraftProfilePath As String
Public Property LastConfigFilePath As String Public Property LastConfigFilePath As String
Public Property KeepLocalFiles As New List(Of String) From { Public Property KeepLocalFiles As New List(Of String)
"OptiFine_1.7.10_HD_U_E7.jar"
}
Public Property RemoveLocalFiles As Boolean Public Property RemoveLocalFiles As Boolean
Public Sub Reset()
KeepLocalFiles.Clear()
KeepLocalFiles.Add("OptiFine_1.7.10_HD_U_E7.jar")
End Sub
Public Shared ReadOnly Property Instance As AppConfig Public Shared ReadOnly Property Instance As AppConfig
Get Get
Static myInstance As AppConfig = Nothing Static myInstance As AppConfig = Nothing
@@ -20,6 +24,7 @@ Public Class AppConfig
myInstance = LoadConfig(SettingsPath) myInstance = LoadConfig(SettingsPath)
Else Else
myInstance = New AppConfig myInstance = New AppConfig
myInstance.Reset()
End If End If
End If End If

View File

@@ -8,7 +8,7 @@
<ApplicationIcon>icons8_download_from_ftp.ico</ApplicationIcon> <ApplicationIcon>icons8_download_from_ftp.ico</ApplicationIcon>
<AssemblyName>Minecraft Modpack Updater</AssemblyName> <AssemblyName>Minecraft Modpack Updater</AssemblyName>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>1.2.0.0</Version> <Version>1.2.1.0</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>