Update to API12 / NET9

This commit is contained in:
Jade Macho 2025-03-24 13:26:04 +01:00
parent 2ff090f4a4
commit be226771c8
Signed by: 0x0ade
GPG key ID: E1960710FE4FBEEF
5 changed files with 9 additions and 6 deletions

View file

@ -3,14 +3,14 @@
<PropertyGroup>
<Authors>0x0ade</Authors>
<Company></Company>
<Version>0.3.0.0</Version>
<Version>0.3.1.0</Version>
<Description></Description>
<Copyright></Copyright>
<PackageProjectUrl></PackageProjectUrl>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<Platforms>x64</Platforms>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>

View file

@ -3,7 +3,7 @@
"InternalName": "CustomResolution2782",
"Author": "0x0ade",
"ApplicableVersion": "any",
"DalamudApiLevel": 11,
"DalamudApiLevel": 12,
"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" ],

View file

@ -9,6 +9,7 @@ using ImGuiNET;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using TerraFX.Interop.Windows;
using static TerraFX.Interop.Windows.Windows;
@ -241,6 +242,8 @@ public sealed unsafe class Plugin : IDalamudPlugin
//Service.PluginLog.Info($"Game window at {win->WindowWidth} x {win->WindowHeight}");
//Service.PluginLog.Info($"AAA {Service.GameConfig.System.GetUInt(nameof(SystemConfigOption.UiHighScale))}");
CurrentBorderlessFullscreen = win->Borderless;
if (Service.Config.DXVKDWMHackMode != DXVKDWMHackMode.Off && !_unloading)

View file

@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net8.0-windows7.0": {
"net9.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[11.0.0, )",

View file

@ -1,5 +1,5 @@
@set src=.\CustomResolution2782\bin\x64\Release\CustomResolution2782
@set dst=O:\home\ade\wwwext\xiv\CustomResolution
@set dst=O:\home\ade\wwwext\xiv\CustomResolution2782
dotnet build -c Release