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

Method LoadExtensionState

BG3Extender/Extender/Client/ScriptExtenderClient.cpp:387–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void ScriptExtender::LoadExtensionState(ExtensionStateContext ctx)
388{
389 if (extensionLoaded_ && (!extensionState_ || ctx == extensionState_->Context())) {
390 return;
391 }
392
393 OPTICK_EVENT(Optick::Category::IO);
394 PostStartup();
395
396 if (!extensionState_) {
397 ResetExtensionState();
398 }
399
400 extensionState_->LoadConfigs();
401
402 if (!gExtender->GetLibraryManager().CriticalInitializationFailed()) {
403 OsiMsg("Initializing client with target context " << ContextToString(ctx));
404 gExtender->GetLibraryManager().ApplyCodePatches();
405 //networkManager_.ExtendNetworkingClient();
406 extensionState_->RequestLuaReset(ctx, true);
407 }
408
409 extensionLoaded_ = true;
410}
411
412END_NS()

Callers

nothing calls this directly

Calls 6

ContextToStringFunction · 0.85
ContextMethod · 0.80
LoadConfigsMethod · 0.80
ApplyCodePatchesMethod · 0.80
RequestLuaResetMethod · 0.80

Tested by

no test coverage detected