mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Name the tuple in BaseAddressResolver
This commit is contained in:
parent
3c5f6271ce
commit
67624e14ae
2 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Dalamud.Game.Internal
|
namespace Dalamud.Game
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base memory address resolver.
|
/// Base memory address resolver.
|
||||||
|
|
@ -11,9 +11,9 @@ namespace Dalamud.Game.Internal
|
||||||
public abstract class BaseAddressResolver
|
public abstract class BaseAddressResolver
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A list of memory addresses that were found, to list in /xldata.
|
/// Gets a list of memory addresses that were found, to list in /xldata.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Dictionary<string, List<(string, IntPtr)>> DebugScannedValues = new();
|
public static Dictionary<string, List<(string ClassName, IntPtr Address)>> DebugScannedValues { get; } = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether the resolver has successfully run <see cref="Setup32Bit(SigScanner)"/> or <see cref="Setup64Bit(SigScanner)"/>.
|
/// Gets or sets a value indicating whether the resolver has successfully run <see cref="Setup32Bit(SigScanner)"/> or <see cref="Setup64Bit(SigScanner)"/>.
|
||||||
|
|
@ -286,11 +286,11 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
foreach (var valueTuple in debugScannedValue.Value)
|
foreach (var valueTuple in debugScannedValue.Value)
|
||||||
{
|
{
|
||||||
ImGui.TextUnformatted(
|
ImGui.TextUnformatted(
|
||||||
$" {valueTuple.Item1} - 0x{valueTuple.Item2.ToInt64():x}");
|
$" {valueTuple.ClassName} - 0x{valueTuple.Address.ToInt64():x}");
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
|
|
||||||
if (ImGui.Button($"C##copyAddress{this.copyButtonIndex++}"))
|
if (ImGui.Button($"C##copyAddress{this.copyButtonIndex++}"))
|
||||||
ImGui.SetClipboardText(valueTuple.Item2.ToInt64().ToString("x"));
|
ImGui.SetClipboardText(valueTuple.Address.ToInt64().ToString("x"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue