From 6e568afeb22ca598b552dc1b49b507c104b5479f Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Wed, 3 Jul 2024 19:07:13 +0200 Subject: [PATCH] API 10 --- RetainerShutUp/Plogon.cs | 8 ++-- RetainerShutUp/RetainerShutUp.csproj | 49 ++------------------- RetainerShutUp/packages.lock.json | 64 ++++++++++++++++++++++++++-- 3 files changed, 68 insertions(+), 53 deletions(-) diff --git a/RetainerShutUp/Plogon.cs b/RetainerShutUp/Plogon.cs index 14b691b..5102bd6 100644 --- a/RetainerShutUp/Plogon.cs +++ b/RetainerShutUp/Plogon.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using Dalamud.Game.ClientState.Conditions; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Logging; -using Dalamud.Memory; using Dalamud.Plugin; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; @@ -36,7 +34,7 @@ public sealed class Plogon : IDalamudPlugin _retainerNames = null; } - private void CheckMessageHandled(XivChatType type, uint senderId, ref SeString sender, ref SeString message, + private void CheckMessageHandled(XivChatType type, int senderId, ref SeString sender, ref SeString message, ref bool isHandled) { if (isHandled || type != XivChatType.NPCDialogue || senderId != 0 || @@ -54,12 +52,12 @@ public sealed class Plogon : IDalamudPlugin if (retainerManager == null || retainerManager->Ready != 1) return; - foreach (var retainer in retainerManager->RetainersSpan) + foreach (var retainer in retainerManager->Retainers) { if (!retainer.Available) continue; - newNames.Add(MemoryHelper.ReadSeStringNullTerminated((IntPtr)retainer.Name).ToString()); + newNames.Add(retainer.NameString); } } _retainerNames = newNames; diff --git a/RetainerShutUp/RetainerShutUp.csproj b/RetainerShutUp/RetainerShutUp.csproj index 9f9c81f..45828b5 100644 --- a/RetainerShutUp/RetainerShutUp.csproj +++ b/RetainerShutUp/RetainerShutUp.csproj @@ -1,57 +1,16 @@ - + - net8.0-windows - 1.0 + 2.0 12 enable - true - false false dist true - true portable + $(SolutionDir)=X:\ + false - - $(appdata)\XIVLauncher\addon\Hooks\dev\ - - - - $(DALAMUD_HOME)/ - - - - - - - - - $(DalamudLibPath)Dalamud.dll - false - - - $(DalamudLibPath)ImGui.NET.dll - false - - - $(DalamudLibPath)Lumina.dll - false - - - $(DalamudLibPath)Lumina.Excel.dll - false - - - $(DalamudLibPath)Newtonsoft.Json.dll - false - - - $(DalamudLibPath)FFXIVClientStructs.dll - false - - - diff --git a/RetainerShutUp/packages.lock.json b/RetainerShutUp/packages.lock.json index 8ca7ea5..ba37d65 100644 --- a/RetainerShutUp/packages.lock.json +++ b/RetainerShutUp/packages.lock.json @@ -4,9 +4,67 @@ "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==" + }, + "DotNet.ReproducibleBuilds": { + "type": "Direct", + "requested": "[1.1.1, )", + "resolved": "1.1.1", + "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", + "dependencies": { + "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", + "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", + "Microsoft.SourceLink.GitHub": "1.1.1", + "Microsoft.SourceLink.GitLab": "1.1.1" + } + }, + "Microsoft.Build.Tasks.Git": { + "type": "Transitive", + "resolved": "1.1.1", + "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" + }, + "Microsoft.SourceLink.AzureRepos.Git": { + "type": "Transitive", + "resolved": "1.1.1", + "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", + "dependencies": { + "Microsoft.Build.Tasks.Git": "1.1.1", + "Microsoft.SourceLink.Common": "1.1.1" + } + }, + "Microsoft.SourceLink.Bitbucket.Git": { + "type": "Transitive", + "resolved": "1.1.1", + "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", + "dependencies": { + "Microsoft.Build.Tasks.Git": "1.1.1", + "Microsoft.SourceLink.Common": "1.1.1" + } + }, + "Microsoft.SourceLink.Common": { + "type": "Transitive", + "resolved": "1.1.1", + "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" + }, + "Microsoft.SourceLink.GitHub": { + "type": "Transitive", + "resolved": "1.1.1", + "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", + "dependencies": { + "Microsoft.Build.Tasks.Git": "1.1.1", + "Microsoft.SourceLink.Common": "1.1.1" + } + }, + "Microsoft.SourceLink.GitLab": { + "type": "Transitive", + "resolved": "1.1.1", + "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", + "dependencies": { + "Microsoft.Build.Tasks.Git": "1.1.1", + "Microsoft.SourceLink.Common": "1.1.1" + } } } }