MCPcopy Create free account
hub / github.com/aers/EngineFixesSkyrim64 / SKSEPlugin_Query

Function SKSEPlugin_Query

src/main.cpp:132–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}();
131#else
132extern "C" __declspec(dllexport) bool SKSEAPI SKSEPlugin_Query(const SKSE::QueryInterface*, SKSE::PluginInfo* a_info)
133{
134 if (!g_isPreloaded) {
135 OpenLog();
136 logger::error("plugin did not preload, please install the preloader");
137
138 std::wostringstream messageBoxText;
139 messageBoxText << L"ERROR: Engine Fixes did not pre-load and fixes are not active. Please verify the installation of d3dx9_42.dll from the Part 2 archive. This file must reside in the main game folder alongside SkyrimSE.exe, or be properly installed with your mod manager's root folder functionality.\r\n"sv;
140 messageBoxText << L"Skyrim will now close.";
141 REX::W32::MessageBoxW(nullptr, messageBoxText.str().c_str(), L"Engine Fixes", MB_OK);
142
143 spdlog::default_logger()->flush();
144 ::TerminateProcess(::GetCurrentProcess(), EXIT_SUCCESS);
145
146 return false;
147 }
148
149 a_info->infoVersion = SKSE::PluginInfo::kVersion;
150 a_info->name = Version::PROJECT.data();
151 a_info->version = Version::MAJOR;
152
153 return true;
154}
155#endif
156
157extern "C" __declspec(dllexport) bool SKSEAPI SKSEPlugin_Load(const SKSE::LoadInterface* a_skse)

Callers

nothing calls this directly

Calls 1

OpenLogFunction · 0.85

Tested by

no test coverage detected