mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-03 11:05:23 +12:00
ReinstallInstalled setting
This commit is contained in:
parent
1d906810b9
commit
2799bdd4aa
|
@ -47,6 +47,9 @@
|
||||||
<setting name="SelectedTheme" serializeAs="String">
|
<setting name="SelectedTheme" serializeAs="String">
|
||||||
<value />
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="ReinstallInstalled" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
</ModAssistant.Properties.Settings>
|
</ModAssistant.Properties.Settings>
|
||||||
<ModAssistant.Settings1>
|
<ModAssistant.Settings1>
|
||||||
<setting name="InstallFolder" serializeAs="String">
|
<setting name="InstallFolder" serializeAs="String">
|
||||||
|
|
|
@ -20,6 +20,7 @@ namespace ModAssistant
|
||||||
public static bool SaveModSelection;
|
public static bool SaveModSelection;
|
||||||
public static bool CheckInstalledMods;
|
public static bool CheckInstalledMods;
|
||||||
public static bool SelectInstalledMods;
|
public static bool SelectInstalledMods;
|
||||||
|
public static bool ReinstallInstalledMods;
|
||||||
public static string Version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
public static string Version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
public static List<string> SavedMods = ModAssistant.Properties.Settings.Default.SavedMods.Split(',').ToList();
|
public static List<string> SavedMods = ModAssistant.Properties.Settings.Default.SavedMods.Split(',').ToList();
|
||||||
|
|
||||||
|
@ -64,6 +65,7 @@ namespace ModAssistant
|
||||||
SaveModSelection = ModAssistant.Properties.Settings.Default.SaveSelected;
|
SaveModSelection = ModAssistant.Properties.Settings.Default.SaveSelected;
|
||||||
CheckInstalledMods = ModAssistant.Properties.Settings.Default.CheckInstalled;
|
CheckInstalledMods = ModAssistant.Properties.Settings.Default.CheckInstalled;
|
||||||
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
|
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
|
||||||
|
ReinstallInstalledMods = ModAssistant.Properties.Settings.Default.ReinstallInstalled;
|
||||||
|
|
||||||
if (e.Args.Length == 0)
|
if (e.Args.Length == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -309,7 +309,7 @@ namespace ModAssistant.Pages
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async void InstallMods(bool reinstallInstalledMods)
|
public async void InstallMods()
|
||||||
{
|
{
|
||||||
MainWindow.Instance.InstallButton.IsEnabled = false;
|
MainWindow.Instance.InstallButton.IsEnabled = false;
|
||||||
string installDirectory = App.BeatSaberInstallDirectory;
|
string installDirectory = App.BeatSaberInstallDirectory;
|
||||||
|
@ -320,7 +320,7 @@ namespace ModAssistant.Pages
|
||||||
if (mod.ListItem.GetVersionComparison > 0) continue;
|
if (mod.ListItem.GetVersionComparison > 0) continue;
|
||||||
|
|
||||||
// Ignore mods that are on current version if we aren't reinstalling mods
|
// Ignore mods that are on current version if we aren't reinstalling mods
|
||||||
if (mod.ListItem.GetVersionComparison == 0 && !reinstallInstalledMods) continue;
|
if (mod.ListItem.GetVersionComparison == 0 && !App.ReinstallInstalledMods) continue;
|
||||||
|
|
||||||
if (mod.name.ToLower() == "bsipa")
|
if (mod.name.ToLower() == "bsipa")
|
||||||
{
|
{
|
||||||
|
|
46
ModAssistant/Properties/Settings.Designer.cs
generated
46
ModAssistant/Properties/Settings.Designer.cs
generated
|
@ -1,4 +1,4 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
|
@ -9,20 +9,20 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace ModAssistant.Properties {
|
namespace ModAssistant.Properties {
|
||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
|
||||||
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
||||||
public static Settings Default {
|
public static Settings Default {
|
||||||
get {
|
get {
|
||||||
return defaultInstance;
|
return defaultInstance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
@ -34,7 +34,7 @@ namespace ModAssistant.Properties {
|
||||||
this["InstallFolder"] = value;
|
this["InstallFolder"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
@ -46,7 +46,7 @@ namespace ModAssistant.Properties {
|
||||||
this["StoreType"] = value;
|
this["StoreType"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||||
|
@ -58,7 +58,7 @@ namespace ModAssistant.Properties {
|
||||||
this["SaveSelected"] = value;
|
this["SaveSelected"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||||
|
@ -70,7 +70,7 @@ namespace ModAssistant.Properties {
|
||||||
this["CheckInstalled"] = value;
|
this["CheckInstalled"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||||
|
@ -82,7 +82,7 @@ namespace ModAssistant.Properties {
|
||||||
this["SavedMods"] = value;
|
this["SavedMods"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||||
|
@ -94,7 +94,7 @@ namespace ModAssistant.Properties {
|
||||||
this["Agreed"] = value;
|
this["Agreed"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||||
|
@ -106,7 +106,7 @@ namespace ModAssistant.Properties {
|
||||||
this["SelectInstalled"] = value;
|
this["SelectInstalled"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
@ -118,7 +118,7 @@ namespace ModAssistant.Properties {
|
||||||
this["GameVersion"] = value;
|
this["GameVersion"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
@ -130,7 +130,7 @@ namespace ModAssistant.Properties {
|
||||||
this["AllGameVersions"] = value;
|
this["AllGameVersions"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||||
|
@ -142,7 +142,7 @@ namespace ModAssistant.Properties {
|
||||||
this["UpgradeRequired"] = value;
|
this["UpgradeRequired"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
@ -154,7 +154,7 @@ namespace ModAssistant.Properties {
|
||||||
this["LastTab"] = value;
|
this["LastTab"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
@ -166,5 +166,17 @@ namespace ModAssistant.Properties {
|
||||||
this["SelectedTheme"] = value;
|
this["SelectedTheme"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||||
|
public bool ReinstallInstalled {
|
||||||
|
get {
|
||||||
|
return ((bool)(this["ReinstallInstalled"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["ReinstallInstalled"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,5 +38,8 @@
|
||||||
<Setting Name="SelectedTheme" Type="System.String" Scope="User">
|
<Setting Name="SelectedTheme" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="ReinstallInstalled" Type="System.Boolean" Scope="User">
|
||||||
|
<Value Profile="(Default)">True</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
Loading…
Reference in a new issue