mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-22 07:12:00 +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">
|
||||
<value>GP</value>
|
||||
</setting>
|
||||
<setting name="DetectSaveOnStartup" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</PKHeX.WinForms.Properties.Settings>
|
||||
</userSettings>
|
||||
<runtime>
|
||||
|
|
|
@ -192,7 +192,8 @@ namespace PKHeX.WinForms
|
|||
try
|
||||
#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
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
[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">
|
||||
<Value Profile="(Default)">GP</Value>
|
||||
</Setting>
|
||||
<Setting Name="DetectSaveOnStartup" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
Loading…
Reference in a new issue