From 70bf67d312186f67c8146acf195f8ab71a31f4dc Mon Sep 17 00:00:00 2001 From: Jan Eisenhuth <47415874+Eisenhuth@users.noreply.github.com> Date: Wed, 3 Jul 2024 00:51:28 +0200 Subject: [PATCH] updated for apiX (#4) * updated packager, bumped version * minor adjustments --- logchamp/logchamp/Configuration.cs | 4 ++-- logchamp/logchamp/LogchampPlugin.cs | 6 +++--- logchamp/logchamp/LogchampPlugin.json | 2 +- logchamp/logchamp/logchamp.csproj | 4 ++-- logchamp/logchamp/packages.lock.json | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/logchamp/logchamp/Configuration.cs b/logchamp/logchamp/Configuration.cs index e253ce5..928eee0 100644 --- a/logchamp/logchamp/Configuration.cs +++ b/logchamp/logchamp/Configuration.cs @@ -22,9 +22,9 @@ public enum Timeframe public Timeframe DeleteAfterTimeframe = Timeframe.Thirty; - private DalamudPluginInterface _pluginInterface; + private IDalamudPluginInterface _pluginInterface; - public void Initialize(DalamudPluginInterface pInterface) + public void Initialize(IDalamudPluginInterface pInterface) { _pluginInterface = pInterface; } diff --git a/logchamp/logchamp/LogchampPlugin.cs b/logchamp/logchamp/LogchampPlugin.cs index cbf2465..73dfdaa 100644 --- a/logchamp/logchamp/LogchampPlugin.cs +++ b/logchamp/logchamp/LogchampPlugin.cs @@ -23,13 +23,13 @@ public class LogchampPlugin : IDalamudPlugin private IChatGui chatGui; private Configuration.Timeframe configTimeframe; private string configLogsDirectory; - [PluginService] private static DalamudPluginInterface PluginInterface { get; set; } = null!; + [PluginService] private static IDalamudPluginInterface PluginInterface { get; set; } = null!; [PluginService] private static ICommandManager CommandManager { get; set; } = null!; private bool cleanedOnStartup; - public LogchampPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] IChatGui chatGui, [RequiredVersion("1.0")] ICommandManager commandManager) + public LogchampPlugin(IDalamudPluginInterface dalamudPluginInterface, IChatGui chatGui, ICommandManager commandManager) { this.chatGui = chatGui; @@ -49,7 +49,7 @@ public LogchampPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPlu ShowInHelp = true }); } - private void OnChatMessage(XivChatType type, uint senderid, ref SeString sender, ref SeString message, ref bool ishandled) + private void OnChatMessage(XivChatType type, int senderid, ref SeString sender, ref SeString message, ref bool ishandled) { if (type == XivChatType.Notice && !cleanedOnStartup) { diff --git a/logchamp/logchamp/LogchampPlugin.json b/logchamp/logchamp/LogchampPlugin.json index a2d987b..901968b 100644 --- a/logchamp/logchamp/LogchampPlugin.json +++ b/logchamp/logchamp/LogchampPlugin.json @@ -3,7 +3,7 @@ "Name": "LogChamp", "Description": "automatically deletes your ACT logs after a configurable amount of time", "Punchline": "keep your ACT's FFXIVLogs folder in check", - "Changelog": "- added total saved counter in /logs menu", + "Changelog": "- updated for Dalamud apiX", "InternalName": "LogchampPlugin", "Tags": ["log", "act"], "RepoUrl": "https://github.com/Eisenhuth/dalamud-logchamp", diff --git a/logchamp/logchamp/logchamp.csproj b/logchamp/logchamp/logchamp.csproj index e82e93b..66fe96d 100644 --- a/logchamp/logchamp/logchamp.csproj +++ b/logchamp/logchamp/logchamp.csproj @@ -9,7 +9,7 @@ false $(AppData)\Eisenhuth\DalamudDevPlugins\LogchampPlugin\ false - 1.0.6.0 + 1.0.7.0 true true https://github.com/Eisenhuth/dalamud-logchamp @@ -18,7 +18,7 @@ - + diff --git a/logchamp/logchamp/packages.lock.json b/logchamp/logchamp/packages.lock.json index 8ca7ea5..19fcea9 100644 --- a/logchamp/logchamp/packages.lock.json +++ b/logchamp/logchamp/packages.lock.json @@ -4,9 +4,9 @@ "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==" } } }