mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-06 22:44:25 -05:00
Remove safari hidden ability check for gen7 origin pkm load template data on any save load, causes the legality triangle to appear on supported games
25 lines
660 B
C#
25 lines
660 B
C#
using System.Configuration;
|
|
using System.IO;
|
|
|
|
namespace PKHeX.WinForms
|
|
{
|
|
public static class ConfigUtil
|
|
{
|
|
public static bool checkConfig()
|
|
{
|
|
try
|
|
{
|
|
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
|
|
return true;
|
|
}
|
|
catch (ConfigurationErrorsException e)
|
|
{
|
|
string path = (e.InnerException as ConfigurationErrorsException)?.Filename;
|
|
if (path != null && File.Exists(path))
|
|
File.Delete(path);
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|