MCPcopy Create free account
hub / github.com/Norbyte/bg3se / OnAfterOsirisLoad

Method OnAfterOsirisLoad

BG3Extender/Osiris/OsirisExtender.cpp:247–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void OsirisExtender::OnAfterOsirisLoad(void * Osiris, void * Buf, int retval)
248{
249 std::lock_guard _(storyLoadLock_);
250
251 if (debuggerThread_) {
252 HookNodeVMTs();
253 }
254
255 storyLoaded_ = true;
256 DEBUG("ScriptExtender::OnAfterOsirisLoad: %d nodes", (*wrappers_.Globals.Nodes)->Db.Size);
257
258 if (debuggerThread_ && nodeVmtWrappers_) {
259 debugger_.reset();
260 debugger_ = std::make_unique<osidbg::Debugger>(wrappers_.Globals, std::ref(*debugMsgHandler_));
261 debugger_->StoryLoaded();
262 }
263
264 if (gExtender->GetServer().HasExtensionState()) {
265 gExtender->GetServer().GetExtensionState().StoryLoaded();
266 }
267}
268
269bool OsirisExtender::MergeWrapper(bool (*next)(void*, wchar_t*), void * Osiris, wchar_t * Src)
270{

Callers

nothing calls this directly

Calls 4

GetServerMethod · 0.80
GetExtensionStateMethod · 0.80
StoryLoadedMethod · 0.45
HasExtensionStateMethod · 0.45

Tested by

no test coverage detected