Skip to content

Commit

Permalink
updated for apiX (#4)
Browse files Browse the repository at this point in the history
* updated packager, bumped version

* minor adjustments
  • Loading branch information
Eisenhuth committed Jul 2, 2024
1 parent 7eabf46 commit 70bf67d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions logchamp/logchamp/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions logchamp/logchamp/LogchampPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion logchamp/logchamp/LogchampPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions logchamp/logchamp/logchamp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>$(AppData)\Eisenhuth\DalamudDevPlugins\LogchampPlugin\</OutputPath>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<AssemblyVersion>1.0.6.0</AssemblyVersion>
<AssemblyVersion>1.0.7.0</AssemblyVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<PackageProjectUrl>https://github.com/Eisenhuth/dalamud-logchamp</PackageProjectUrl>
Expand All @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.12" />
<PackageReference Include="DalamudPackager" Version="2.1.13" />
</ItemGroup>

<PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions logchamp/logchamp/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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=="
}
}
}
Expand Down

0 comments on commit 70bf67d

Please sign in to comment.