Fixed detection of KID for AE (has a different internal name)
This commit is contained in:
parent
c01fbe9265
commit
ae35ac9fbb
Binary file not shown.
@ -31,7 +31,9 @@ namespace {
|
|||||||
if (message->type == MessagingInterface::kPostLoad) {
|
if (message->type == MessagingInterface::kPostLoad) {
|
||||||
SKSE::GetModCallbackEventSource()->AddEventSink(EventListener::GetSingleton()); // runs, if KID is installed
|
SKSE::GetModCallbackEventSource()->AddEventSink(EventListener::GetSingleton()); // runs, if KID is installed
|
||||||
} else if (message->type == MessagingInterface::kDataLoaded) {
|
} else if (message->type == MessagingInterface::kDataLoaded) {
|
||||||
if (const auto pluginInfo = ArtifactTracker::g_loadInterface->GetPluginInfo("po3_KeywordItemDistributor"); !pluginInfo) {
|
const auto kidSE = ArtifactTracker::g_loadInterface->GetPluginInfo("po3_KeywordItemDistributor");
|
||||||
|
const auto kidAE = ArtifactTracker::g_loadInterface->GetPluginInfo("Keyword Item Distributor"); // KID 2.0 for AE has a different internal name
|
||||||
|
if (!kidSE && !kidAE) {
|
||||||
ArtifactTracker::Init(); // if KID is not installed
|
ArtifactTracker::Init(); // if KID is not installed
|
||||||
}
|
}
|
||||||
} else if (message->type == MessagingInterface::kPreLoadGame) {
|
} else if (message->type == MessagingInterface::kPreLoadGame) {
|
||||||
|
Loading…
Reference in New Issue
Block a user