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

Method OnCloseHandle

BG3Extender/Osiris/Shared/CustomFunctions.cpp:732–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void CustomFunctionInjector::OnCloseHandle(HANDLE hFile, BOOL bSucceeded)
733{
734 if (bSucceeded && !extendingStory_) {
735 if (storyHeaderFile_ != NULL && hFile == storyHeaderFile_) {
736 if (esv::ExtensionState::Get().HasFeatureFlag("Osiris")) {
737 ExtendStoryHeader(storyHeaderPath_);
738 }
739
740 storyHeaderFile_ = NULL;
741 }
742
743 if (storyGeneratedFile_ != NULL && hFile == storyGeneratedFile_) {
744 if (gExtender->GetConfig().DisableStoryCompilation) {
745 AddJunkToStory(storyGeneratedPath_);
746 }
747
748 storyHeaderFile_ = NULL;
749 }
750 }
751}
752
753}

Callers

nothing calls this directly

Calls 1

HasFeatureFlagMethod · 0.45

Tested by

no test coverage detected