Update for DT / apiX

This commit is contained in:
Jade Macho 2024-07-01 01:33:11 +02:00
parent 876892db27
commit 3164d089ce
Signed by: 0x0ade
GPG Key ID: E1960710FE4FBEEF
6 changed files with 16 additions and 16 deletions

View File

@ -18,9 +18,9 @@ public class Configuration : IPluginConfiguration
public DXVKDWMHackMode DXVKDWMHackMode = DXVKDWMHackMode.Off; public DXVKDWMHackMode DXVKDWMHackMode = DXVKDWMHackMode.Off;
[NonSerialized] [NonSerialized]
private DalamudPluginInterface? pluginInterface; private IDalamudPluginInterface? pluginInterface;
internal void Initialize(DalamudPluginInterface pluginInterface) internal void Initialize(IDalamudPluginInterface pluginInterface)
{ {
this.pluginInterface = pluginInterface; this.pluginInterface = pluginInterface;
} }

View File

@ -10,7 +10,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework> <TargetFramework>net8.0-windows</TargetFramework>
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
@ -25,8 +25,8 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.12" /> <PackageReference Include="DalamudPackager" Version="2.1.13" />
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.2" /> <PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.6" />
<Reference Include="FFXIVClientStructs"> <Reference Include="FFXIVClientStructs">
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath> <HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
<Private>false</Private> <Private>false</Private>

View File

@ -3,7 +3,7 @@
"InternalName": "CustomResolution2782", "InternalName": "CustomResolution2782",
"Author": "0x0ade", "Author": "0x0ade",
"ApplicableVersion": "any", "ApplicableVersion": "any",
"DalamudApiLevel": 9, "DalamudApiLevel": 10,
"Punchline": "Enforces a custom resolution for the game, similar to NVIDIA DSR.", "Punchline": "Enforces a custom resolution for the game, similar to NVIDIA DSR.",
"Description": "Basic plugin that allows you to specify a custom resolution.", "Description": "Basic plugin that allows you to specify a custom resolution.",
"Tags": [ "dsr", "resolution", "dpi", "scale", "scaling" ], "Tags": [ "dsr", "resolution", "dpi", "scale", "scaling" ],

View File

@ -24,7 +24,7 @@ public sealed unsafe class Plugin : IDalamudPlugin
private RECT _currentWindowRect; private RECT _currentWindowRect;
private DXVKDWMHackMode _currentDXVKDWMHackMode = DXVKDWMHackMode.Off; private DXVKDWMHackMode _currentDXVKDWMHackMode = DXVKDWMHackMode.Off;
public Plugin([RequiredVersion("1.0")] DalamudPluginInterface pluginInterface) public Plugin(IDalamudPluginInterface pluginInterface)
{ {
_invisibleRgn = CreateRectRgn(0, 0, -1, -1); _invisibleRgn = CreateRectRgn(0, 0, -1, -1);
@ -249,7 +249,7 @@ public sealed unsafe class Plugin : IDalamudPlugin
Service.PluginLog.Info($"STYLE: 0x{style:X8}"); Service.PluginLog.Info($"STYLE: 0x{style:X8}");
Service.PluginLog.Info($"EXSTYLE: 0x{GetWindowLong(_currentHwnd, GWL.GWL_EXSTYLE):X8}"); Service.PluginLog.Info($"EXSTYLE: 0x{GetWindowLong(_currentHwnd, GWL.GWL_EXSTYLE):X8}");
Span<ushort> name = stackalloc ushort[256]; Span<char> name = stackalloc char[512];
GetClassName(_currentHwnd, name.GetPointer(0), name.Length); GetClassName(_currentHwnd, name.GetPointer(0), name.Length);
WNDCLASSEXW wce; WNDCLASSEXW wce;
GetClassInfoEx(GetModuleHandle(null), name.GetPointer(0), &wce); GetClassInfoEx(GetModuleHandle(null), name.GetPointer(0), &wce);

View File

@ -18,7 +18,7 @@ public sealed class Service
public static CursorPosHooks CursorPosHooks { get; internal set; } = null!; public static CursorPosHooks CursorPosHooks { get; internal set; } = null!;
[PluginService] [PluginService]
public static DalamudPluginInterface PluginInterface { get; private set; } = null!; public static IDalamudPluginInterface PluginInterface { get; private set; } = null!;
[PluginService] [PluginService]
public static ICommandManager CommandManager { get; private set; } = null!; public static ICommandManager CommandManager { get; private set; } = null!;

View File

@ -1,18 +1,18 @@
{ {
"version": 1, "version": 1,
"dependencies": { "dependencies": {
"net7.0-windows7.0": { "net8.0-windows7.0": {
"DalamudPackager": { "DalamudPackager": {
"type": "Direct", "type": "Direct",
"requested": "[2.1.12, )", "requested": "[2.1.13, )",
"resolved": "2.1.12", "resolved": "2.1.13",
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg==" "contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
}, },
"TerraFX.Interop.Windows": { "TerraFX.Interop.Windows": {
"type": "Direct", "type": "Direct",
"requested": "[10.0.22621.2, )", "requested": "[10.0.22621.6, )",
"resolved": "10.0.22621.2", "resolved": "10.0.22621.6",
"contentHash": "lORoYCoURS33Vi7PDvubRugLF2+l5v3rX2oVEqNhpBLjs3aZpqapRvTHPKVwsC+dGrsGuqJ/3yXuxVUb0vl3vg==" "contentHash": "IFjdtFFta+8awzDLCVSJMin+GBmkncFmVCUIPY4NWGPeQNoA99kFXXBgE3zNOXQ7yafnlAldUiarno0X/U0heA=="
} }
} }
} }