mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
Add setting to skip save detection on load
This commit is contained in:
parent
423afa4518
commit
36fb61ab09
4 changed files with 20 additions and 1 deletions
|
@ -58,6 +58,9 @@
|
||||||
<setting name="DefaultSaveVersion" serializeAs="String">
|
<setting name="DefaultSaveVersion" serializeAs="String">
|
||||||
<value>GP</value>
|
<value>GP</value>
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="DetectSaveOnStartup" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
</PKHeX.WinForms.Properties.Settings>
|
</PKHeX.WinForms.Properties.Settings>
|
||||||
</userSettings>
|
</userSettings>
|
||||||
<runtime>
|
<runtime>
|
||||||
|
|
|
@ -192,7 +192,8 @@ namespace PKHeX.WinForms
|
||||||
try
|
try
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (!DetectSaveFile(out string path) && path != null)
|
string path = null;
|
||||||
|
if (Settings.Default.DetectSaveOnStartup && !DetectSaveFile(out path) && path != null)
|
||||||
WinFormsUtil.Error(path); // `path` contains the error message
|
WinFormsUtil.Error(path); // `path` contains the error message
|
||||||
|
|
||||||
bool savLoaded = false;
|
bool savLoaded = false;
|
||||||
|
|
12
PKHeX.WinForms/Properties/Settings.Designer.cs
generated
12
PKHeX.WinForms/Properties/Settings.Designer.cs
generated
|
@ -226,5 +226,17 @@ namespace PKHeX.WinForms.Properties {
|
||||||
this["DefaultSaveVersion"] = value;
|
this["DefaultSaveVersion"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||||
|
public bool DetectSaveOnStartup {
|
||||||
|
get {
|
||||||
|
return ((bool)(this["DetectSaveOnStartup"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["DetectSaveOnStartup"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,5 +53,8 @@
|
||||||
<Setting Name="DefaultSaveVersion" Type="PKHeX.Core.GameVersion" Scope="User">
|
<Setting Name="DefaultSaveVersion" Type="PKHeX.Core.GameVersion" Scope="User">
|
||||||
<Value Profile="(Default)">GP</Value>
|
<Value Profile="(Default)">GP</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="DetectSaveOnStartup" Type="System.Boolean" Scope="User">
|
||||||
|
<Value Profile="(Default)">True</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
Loading…
Reference in a new issue