- Fix incorrect function call for novice network
- Fix keybind handler being obsolete
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Dalamud.NET.Sdk/13.0.0">
|
||||
<PropertyGroup>
|
||||
<Version>1.31.1</Version>
|
||||
<Version>1.31.2</Version>
|
||||
<TargetFramework>net9.0-windows</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
@@ -10,9 +10,7 @@ internal sealed unsafe class Context
|
||||
internal static void InviteToNoviceNetwork(string name, ushort world)
|
||||
{
|
||||
// can specify content id if we have it, but there's no need
|
||||
fixed (byte* namePtr = name.ToTerminatedBytes()) {
|
||||
InfoProxyNoviceNetwork.Instance()->InviteToNoviceNetwork(0, world, namePtr);
|
||||
}
|
||||
InfoProxyNoviceNetwork.Instance()->InviteToNoviceNetwork(0, 0, world, name.ToTerminatedBytes());
|
||||
}
|
||||
|
||||
internal static void TryOn(uint itemId, byte stainId)
|
||||
|
||||
@@ -467,19 +467,20 @@ internal unsafe class KeybindManager : IDisposable {
|
||||
|
||||
private static Keybind GetKeybind(string id)
|
||||
{
|
||||
var outData = new UIInputData.Keybind();
|
||||
var outData = new FFXIVClientStructs.FFXIV.Client.System.Input.Keybind();
|
||||
var idString = Utf8String.FromString(id);
|
||||
UIInputData.Instance()->GetKeybind(idString, &outData);
|
||||
UIInputData.Instance()->GetKeybindByName(idString, &outData);
|
||||
idString->Dtor(true);
|
||||
|
||||
var key1 = RemapInvalidVirtualKey((VirtualKey) outData.Key);
|
||||
var key2 = RemapInvalidVirtualKey((VirtualKey) outData.AltKey);
|
||||
var key1 = outData.KeySettings[0];
|
||||
var key2 = outData.KeySettings[1];
|
||||
return new Keybind
|
||||
{
|
||||
Key1 = key1,
|
||||
Modifier1 = (ModifierFlag) outData.Modifier,
|
||||
Key2 = key2,
|
||||
Modifier2 = (ModifierFlag) outData.AltModifier,
|
||||
Key1 = RemapInvalidVirtualKey((VirtualKey) key1.Key),
|
||||
Modifier1 = (ModifierFlag) key1.KeyModifier,
|
||||
|
||||
Key2 = RemapInvalidVirtualKey((VirtualKey) key2.Key),
|
||||
Modifier2 = (ModifierFlag) key2.KeyModifier,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Processing
|
||||
|
||||
internal async Task<MessageResponse[]> ReadMessageList()
|
||||
{
|
||||
var tabMessages = await Plugin.CurrentTab!.Messages.GetCopy();
|
||||
var tabMessages = await Plugin.CurrentTab.Messages.GetCopy();
|
||||
return tabMessages.TakeLast(Plugin.Config.WebinterfaceMaxLinesToSend).Select(ReadMessageContent).ToArray();
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public class Processing
|
||||
|
||||
color ??= 0;
|
||||
|
||||
var userContent = text.Content ?? "";
|
||||
var userContent = text.Content ?? string.Empty;
|
||||
if (Plugin.ChatLogWindow.ScreenshotMode)
|
||||
{
|
||||
if (chunk.Link is PlayerPayload playerPayload)
|
||||
|
||||
Reference in New Issue
Block a user