mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 12:44:16 +01:00
Fix case order
This commit is contained in:
parent
b523acd500
commit
7b7d5ad9c7
1 changed files with 6 additions and 3 deletions
|
|
@ -877,9 +877,13 @@ internal partial class InterfaceManager : IInternalDisposableService
|
||||||
nint pfnReShadeDxgiSwapChainPresent = 0;
|
nint pfnReShadeDxgiSwapChainPresent = 0;
|
||||||
switch (this.dalamudConfiguration.ReShadeHandlingMode)
|
switch (this.dalamudConfiguration.ReShadeHandlingMode)
|
||||||
{
|
{
|
||||||
|
// If ReShade is not found, do no special handling.
|
||||||
|
case var _ when ReShadeAddonInterface.ReShadeModule is null:
|
||||||
|
goto default;
|
||||||
|
|
||||||
// This is the only mode honored when SwapChainHookMode is set to VTable.
|
// This is the only mode honored when SwapChainHookMode is set to VTable.
|
||||||
case ReShadeHandlingMode.Default:
|
case ReShadeHandlingMode.Default:
|
||||||
case ReShadeHandlingMode.UnwrapReShade when ReShadeAddonInterface.ReShadeModule is not null:
|
case ReShadeHandlingMode.UnwrapReShade:
|
||||||
if (SwapChainHelper.UnwrapReShade())
|
if (SwapChainHelper.UnwrapReShade())
|
||||||
Log.Information("Unwrapped ReShade");
|
Log.Information("Unwrapped ReShade");
|
||||||
else
|
else
|
||||||
|
|
@ -887,9 +891,8 @@ internal partial class InterfaceManager : IInternalDisposableService
|
||||||
goto default;
|
goto default;
|
||||||
|
|
||||||
// Do no special ReShade handling.
|
// Do no special ReShade handling.
|
||||||
// If ReShade is not found or SwapChainHookMode is set to VTable, also do nothing special.
|
// If SwapChainHookMode is set to VTable, do no special handling.
|
||||||
case ReShadeHandlingMode.None:
|
case ReShadeHandlingMode.None:
|
||||||
case var _ when ReShadeAddonInterface.ReShadeModule is null:
|
|
||||||
case var _ when this.dalamudConfiguration.SwapChainHookMode == SwapChainHelper.HookMode.VTable:
|
case var _ when this.dalamudConfiguration.SwapChainHookMode == SwapChainHelper.HookMode.VTable:
|
||||||
default:
|
default:
|
||||||
dxgiSwapChainResizeBuffersDelegate = this.AsHookDxgiSwapChainResizeBuffersDetour;
|
dxgiSwapChainResizeBuffersDelegate = this.AsHookDxgiSwapChainResizeBuffersDetour;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue