fix: null fix and fix for dev plugins

This commit is contained in:
Liam 2021-01-06 01:31:36 -05:00
parent feebb03f8c
commit 87b834abd7

View file

@ -116,12 +116,14 @@ namespace Dalamud.Plugin
// Preloaded
if (preloaded) {
if (preloadedDef == null)
if (preloadedDef == null && !raw)
{
Log.Information("Plugin DLL {0} has no definition.", dllFile.FullName);
return false;
}
if (preloadedDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion && preloadedDef.ApplicableVersion != "any")
if (preloadedDef != null &&
preloadedDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion &&
preloadedDef.ApplicableVersion != "any")
{
Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);
return false;