Skip to content

Commit

Permalink
Dalamud API 9 update.
Browse files Browse the repository at this point in the history
  • Loading branch information
saltybrackets committed Oct 4, 2023
1 parent 8df00c4 commit 1e60e79
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Data/startupCommands.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"Name": "Startup Commands",
"InternalName": "StartupCommands",
"Description": "Perform various behaviors/commands right after logging into a character.",
"AssemblyVersion": "1.1.1.0",
"AssemblyVersion": "1.1.2.0",
"RepoUrl": "https://github.com/saltycog/ffxiv-startup-commands",
"IconUrl": "https://github.com/saltycog/ffxiv-startup-commands/raw/master/icon.png",
"DalamudApiLevel": 8
"DalamudApiLevel": 9
}
13 changes: 7 additions & 6 deletions StartupCommandsPlugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Dalamud.Game.Gui;
using Dalamud.IoC;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;


/// <summary>
Expand All @@ -22,22 +23,22 @@ public class Plugin : IDalamudPlugin
public static DalamudPluginInterface PluginInterface { get; private set; }

[PluginService]
public static CommandManager CommandManager { get; private set; }
public static ICommandManager CommandManager { get; private set; }

[PluginService]
public static ClientState ClientState { get; private set; }
public static IClientState ClientState { get; private set; }

[PluginService]
public static Framework Framework { get; private set; }
public static IFramework Framework { get; private set; }

[PluginService]
public static ChatGui ChatGui { get; private set; }
public static IChatGui ChatGui { get; private set; }

[PluginService]
public static GameGui GameGui { get; private set; }
public static IGameGui GameGui { get; private set; }

[PluginService]
public static SigScanner TargetModuleScanner { get; private set; }
public static ISigScanner TargetModuleScanner { get; private set; }

private Configuration configuration = new Configuration();
private GameClient gameClient;
Expand Down
4 changes: 2 additions & 2 deletions StartupCommandsPlugin/StartupHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void Dispose()
/// <summary>
/// Executed upon successful character login.
/// </summary>
public unsafe void OnLogin(object sender, EventArgs args)
public unsafe void OnLogin()
{
if (this.chatReady
|| this.WaitingForChatThread != null)
Expand All @@ -72,7 +72,7 @@ public unsafe void OnLogin(object sender, EventArgs args)
}


public void OnLogout(object sender, EventArgs args)
public void OnLogout()
{
this.chatReady = false;
if (this.WaitingForChatThread != null)
Expand Down

0 comments on commit 1e60e79

Please sign in to comment.