mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
interface: only warn about signed reshade if we are actually using addon mode
This commit is contained in:
parent
b13e1eef86
commit
73e50c823b
2 changed files with 20 additions and 5 deletions
|
|
@ -817,7 +817,8 @@ internal partial class InterfaceManager : IInternalDisposableService
|
|||
0,
|
||||
this.SetCursorDetour);
|
||||
|
||||
if (ReShadeAddonInterface.ReShadeIsSignedByReShade)
|
||||
if (ReShadeAddonInterface.ReShadeIsSignedByReShade &&
|
||||
this.dalamudConfiguration.ReShadeHandlingMode is ReShadeHandlingMode.ReShadeAddonPresent or ReShadeHandlingMode.ReShadeAddonReShadeOverlay)
|
||||
{
|
||||
Log.Warning("Signed ReShade binary detected");
|
||||
Service<NotificationManager>
|
||||
|
|
|
|||
|
|
@ -81,10 +81,24 @@ public class SettingsTabExperimental : SettingsTab
|
|||
(v, c) => c.ReShadeHandlingMode = v,
|
||||
fallbackValue: ReShadeHandlingMode.Default,
|
||||
warning: static rshm =>
|
||||
rshm is ReShadeHandlingMode.UnwrapReShade or ReShadeHandlingMode.None ||
|
||||
{
|
||||
var warning = string.Empty;
|
||||
warning += rshm is ReShadeHandlingMode.UnwrapReShade or ReShadeHandlingMode.None ||
|
||||
Service<DalamudConfiguration>.Get().SwapChainHookMode == SwapChainHelper.HookMode.ByteCode
|
||||
? null
|
||||
: "Current option will be ignored and no special ReShade handling will be done, because SwapChain vtable hook mode is set.")
|
||||
? string.Empty
|
||||
: "Current option will be ignored and no special ReShade handling will be done, because SwapChain vtable hook mode is set.";
|
||||
|
||||
if (ReShadeAddonInterface.ReShadeIsSignedByReShade)
|
||||
{
|
||||
warning += warning.Length > 0 ? "\n" : string.Empty;
|
||||
warning += Loc.Localize(
|
||||
"ReShadeNoAddonSupportNotificationContent",
|
||||
"Your installation of ReShade does not have full addon support, and may not work with Dalamud and/or the game.\n" +
|
||||
"Download and install ReShade with full addon-support.");
|
||||
}
|
||||
|
||||
return warning.Length > 0 ? warning : null;
|
||||
})
|
||||
{
|
||||
FriendlyEnumNameGetter = x => x switch
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue