diff --git a/CustomResolution/Configuration.cs b/CustomResolution/Configuration.cs
index 0b94599..de562b4 100644
--- a/CustomResolution/Configuration.cs
+++ b/CustomResolution/Configuration.cs
@@ -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;
}
diff --git a/CustomResolution/CustomResolution.csproj b/CustomResolution/CustomResolution.csproj
index dfb46ca..4c7da66 100644
--- a/CustomResolution/CustomResolution.csproj
+++ b/CustomResolution/CustomResolution.csproj
@@ -10,7 +10,7 @@
- net7.0-windows
+ net8.0-windows
x64
enable
latest
@@ -25,8 +25,8 @@
-
-
+
+
$(DalamudLibPath)FFXIVClientStructs.dll
false
diff --git a/CustomResolution/CustomResolution.json b/CustomResolution/CustomResolution.json
index 8d7d2be..9278ee3 100644
--- a/CustomResolution/CustomResolution.json
+++ b/CustomResolution/CustomResolution.json
@@ -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" ],
diff --git a/CustomResolution/Plugin.cs b/CustomResolution/Plugin.cs
index 6388986..fc2b66c 100644
--- a/CustomResolution/Plugin.cs
+++ b/CustomResolution/Plugin.cs
@@ -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 name = stackalloc ushort[256];
+ Span name = stackalloc char[512];
GetClassName(_currentHwnd, name.GetPointer(0), name.Length);
WNDCLASSEXW wce;
GetClassInfoEx(GetModuleHandle(null), name.GetPointer(0), &wce);
diff --git a/CustomResolution/Service.cs b/CustomResolution/Service.cs
index cbcdfce..3c9b16d 100644
--- a/CustomResolution/Service.cs
+++ b/CustomResolution/Service.cs
@@ -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!;
diff --git a/CustomResolution/packages.lock.json b/CustomResolution/packages.lock.json
index 75e5c9b..40f6a50 100644
--- a/CustomResolution/packages.lock.json
+++ b/CustomResolution/packages.lock.json
@@ -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=="
}
}
}