v1.2.1
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user