Fixed crash when loading a save with missing plugins
This commit is contained in:
parent
ae35ac9fbb
commit
654067f863
Binary file not shown.
@ -6,7 +6,7 @@ message("Using toolchain file ${CMAKE_TOOLCHAIN_FILE}.")
|
||||
########################################################################################################################
|
||||
project(
|
||||
ArtifactTracker
|
||||
VERSION 1.0.6
|
||||
VERSION 1.0.7
|
||||
DESCRIPTION "Artifact Tracker"
|
||||
LANGUAGES CXX)
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
|
@ -65,11 +65,12 @@ auto EventListener::ProcessEvent(
|
||||
RE::BSTEventSource<RE::TESCellFullyLoadedEvent>* a_eventSource)
|
||||
-> RE::BSEventNotifyControl
|
||||
{
|
||||
if (a_event->cell) {
|
||||
#ifdef _DEBUG
|
||||
SKSE::log::info("TESCellFullyLoadedEvent");
|
||||
#endif
|
||||
|
||||
ArtifactTracker::OnCellEnter(a_event->cell->GetLocation(), a_event->cell);
|
||||
}
|
||||
|
||||
return RE::BSEventNotifyControl::kContinue;
|
||||
}
|
||||
|
@ -38,14 +38,16 @@ namespace {
|
||||
}
|
||||
} else if (message->type == MessagingInterface::kPreLoadGame) {
|
||||
ArtifactTracker::g_bSaveLoaded = false; // block cell load events
|
||||
} else if (message->type == MessagingInterface::kPostLoadGame) {
|
||||
SKSE::GetTaskInterface()->AddTask([]() {
|
||||
} else if (message->type == MessagingInterface::kPostLoadGame && message->data) {
|
||||
const auto cell = RE::PlayerCharacter::GetSingleton()->GetParentCell();
|
||||
if (cell) {
|
||||
SKSE::GetTaskInterface()->AddTask([cell]() {
|
||||
ArtifactTracker::OnGameLoad(); // save-specific updates
|
||||
ArtifactTracker::g_bSaveLoaded = true;
|
||||
const auto cell = RE::PlayerCharacter::GetSingleton()->GetParentCell();
|
||||
ArtifactTracker::OnCellEnter(cell->GetLocation(), cell);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
||||
"name": "artifact-tracker",
|
||||
"version-string": "1.0.6",
|
||||
"version-string": "1.0.7",
|
||||
"port-version": 0,
|
||||
"description": "Artifact Tracker",
|
||||
"homepage": "https://eddoursul.win/mods/artifact-tracker/",
|
||||
|
Loading…
Reference in New Issue
Block a user