mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Improved IsOldPkhexCorePresent (#3541)
This commit is contained in:
parent
1f64a41670
commit
7e7b2bb2d3
2 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
<NeutralLanguage>en</NeutralLanguage>
|
||||
<Company>Project Pokémon</Company>
|
||||
<Copyright>Kaphotics</Copyright>
|
||||
<Version>22.06.26</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -130,7 +130,7 @@ namespace PKHeX.WinForms
|
|||
|
||||
private static bool IsOldPkhexCorePresent(Exception? ex)
|
||||
{
|
||||
return ex is MissingMethodException
|
||||
return ex is MissingMethodException or TypeLoadException or TypeInitializationException
|
||||
&& File.Exists("PKHeX.Core.dll")
|
||||
&& AssemblyName.GetAssemblyName("PKHeX.Core.dll").Version < Assembly.GetExecutingAssembly().GetName().Version;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue