mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-27 02:49:18 +01:00
Use ReShade Addon when available instead of hooking IDXGISwapChain::Present
This commit is contained in:
parent
ca3e4088f6
commit
e40c317417
24 changed files with 6977 additions and 305 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue