Update for DT / apiX
This commit is contained in:
parent
876892db27
commit
3164d089ce
@ -18,9 +18,9 @@ public class Configuration : IPluginConfiguration
|
||||
public DXVKDWMHackMode DXVKDWMHackMode = DXVKDWMHackMode.Off;
|
||||
|
||||
[NonSerialized]
|
||||
private DalamudPluginInterface? pluginInterface;
|
||||
private IDalamudPluginInterface? pluginInterface;
|
||||
|
||||
internal void Initialize(DalamudPluginInterface pluginInterface)
|
||||
internal void Initialize(IDalamudPluginInterface pluginInterface)
|
||||
{
|
||||
this.pluginInterface = pluginInterface;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Platforms>x64</Platforms>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>latest</LangVersion>
|
||||
@ -25,8 +25,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.12" />
|
||||
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.2" />
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.13" />
|
||||
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.6" />
|
||||
<Reference Include="FFXIVClientStructs">
|
||||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"InternalName": "CustomResolution2782",
|
||||
"Author": "0x0ade",
|
||||
"ApplicableVersion": "any",
|
||||
"DalamudApiLevel": 9,
|
||||
"DalamudApiLevel": 10,
|
||||
"Punchline": "Enforces a custom resolution for the game, similar to NVIDIA DSR.",
|
||||
"Description": "Basic plugin that allows you to specify a custom resolution.",
|
||||
"Tags": [ "dsr", "resolution", "dpi", "scale", "scaling" ],
|
||||
|
@ -24,7 +24,7 @@ public sealed unsafe class Plugin : IDalamudPlugin
|
||||
private RECT _currentWindowRect;
|
||||
private DXVKDWMHackMode _currentDXVKDWMHackMode = DXVKDWMHackMode.Off;
|
||||
|
||||
public Plugin([RequiredVersion("1.0")] DalamudPluginInterface pluginInterface)
|
||||
public Plugin(IDalamudPluginInterface pluginInterface)
|
||||
{
|
||||
_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($"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);
|
||||
WNDCLASSEXW wce;
|
||||
GetClassInfoEx(GetModuleHandle(null), name.GetPointer(0), &wce);
|
||||
|
@ -18,7 +18,7 @@ public sealed class Service
|
||||
public static CursorPosHooks CursorPosHooks { get; internal set; } = null!;
|
||||
|
||||
[PluginService]
|
||||
public static DalamudPluginInterface PluginInterface { get; private set; } = null!;
|
||||
public static IDalamudPluginInterface PluginInterface { get; private set; } = null!;
|
||||
|
||||
[PluginService]
|
||||
public static ICommandManager CommandManager { get; private set; } = null!;
|
||||
|
@ -1,18 +1,18 @@
|
||||
{
|
||||
"version": 1,
|
||||
"dependencies": {
|
||||
"net7.0-windows7.0": {
|
||||
"net8.0-windows7.0": {
|
||||
"DalamudPackager": {
|
||||
"type": "Direct",
|
||||
"requested": "[2.1.12, )",
|
||||
"resolved": "2.1.12",
|
||||
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
|
||||
"requested": "[2.1.13, )",
|
||||
"resolved": "2.1.13",
|
||||
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
|
||||
},
|
||||
"TerraFX.Interop.Windows": {
|
||||
"type": "Direct",
|
||||
"requested": "[10.0.22621.2, )",
|
||||
"resolved": "10.0.22621.2",
|
||||
"contentHash": "lORoYCoURS33Vi7PDvubRugLF2+l5v3rX2oVEqNhpBLjs3aZpqapRvTHPKVwsC+dGrsGuqJ/3yXuxVUb0vl3vg=="
|
||||
"requested": "[10.0.22621.6, )",
|
||||
"resolved": "10.0.22621.6",
|
||||
"contentHash": "IFjdtFFta+8awzDLCVSJMin+GBmkncFmVCUIPY4NWGPeQNoA99kFXXBgE3zNOXQ7yafnlAldUiarno0X/U0heA=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user