Use ReShade Addon when available instead of hooking IDXGISwapChain::Present

This commit is contained in:
Soreepeong 2023-07-29 17:50:51 +09:00
parent ca3e4088f6
commit e40c317417
24 changed files with 6977 additions and 305 deletions

View file

@ -368,7 +368,8 @@ DllExport void WINAPI RewrittenEntryPoint(RewrittenEntryPointParameters& params)
loadInfo = params.pLoadInfo;
}
InitializeImpl(&loadInfo[0], params.hMainThreadContinue);
if (const auto err = InitializeImpl(&loadInfo[0], params.hMainThreadContinue))
throw std::exception(std::format("{:08X}", err).c_str());
return 0;
} catch (const std::exception& e) {
MessageBoxA(nullptr, std::format("Failed to load Dalamud.\n\nError: {}", e.what()).c_str(), "Dalamud.Boot", MB_OK | MB_ICONERROR);