mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 06:47:44 +01:00
fix: cs changes blocking build
make ThisAssembly public
This commit is contained in:
parent
6f9955fd2a
commit
4dcb69594b
6 changed files with 29 additions and 6 deletions
|
|
@ -184,7 +184,10 @@ public sealed class EntryPoint
|
|||
InitSymbolHandler(info);
|
||||
|
||||
var dalamud = new Dalamud(info, fs, configuration, mainThreadContinueEvent);
|
||||
Log.Information("This is Dalamud - Core: {GitHash}, CS: {CsGitHash} [{CsVersion}]", Util.GetGitHash(), Util.GetGitHashClientStructs(), FFXIVClientStructs.Interop.Resolver.Version);
|
||||
Log.Information("This is Dalamud - Core: {GitHash}, CS: {CsGitHash} [{CsVersion}]",
|
||||
Util.GetGitHash(),
|
||||
Util.GetGitHashClientStructs(),
|
||||
FFXIVClientStructs.ThisAssembly.Git.Commits);
|
||||
|
||||
dalamud.WaitForUnload();
|
||||
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ public unsafe struct GameInventoryItem : IEquatable<GameInventoryItem>
|
|||
/// <summary>
|
||||
/// Gets the color used for this item.
|
||||
/// </summary>
|
||||
public byte Stain => this.InternalItem.Stain;
|
||||
public ReadOnlySpan<ushort> Stains => new(Unsafe.AsPointer(ref this.InternalItem.Stains[0]), 2);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the glamour id for this item.
|
||||
|
|
|
|||
|
|
@ -819,7 +819,7 @@ internal class DalamudInterface : IInternalDisposableService
|
|||
|
||||
ImGui.MenuItem(Util.AssemblyVersion, false);
|
||||
ImGui.MenuItem(this.dalamud.StartInfo.GameVersion?.ToString() ?? "Unknown version", false);
|
||||
ImGui.MenuItem($"D: {Util.GetGitHash()}[{Util.GetGitCommitCount()}] CS: {Util.GetGitHashClientStructs()}[{FFXIVClientStructs.Interop.Resolver.Version}]", false);
|
||||
ImGui.MenuItem($"D: {Util.GetGitHash()}[{Util.GetGitCommitCount()}] CS: {Util.GetGitHashClientStructs()}[{FFXIVClientStructs.ThisAssembly.Git.Commits}]", false);
|
||||
ImGui.MenuItem($"CLR: {Environment.Version}", false);
|
||||
|
||||
ImGui.EndMenu();
|
||||
|
|
|
|||
|
|
@ -270,8 +270,22 @@ internal class ContextMenuAgingStep : IAgingStep
|
|||
b.AppendLine(string.Join(", ", materias));
|
||||
|
||||
b.Append($"Dye/Stain: ");
|
||||
if (item.Stain != 0)
|
||||
b.AppendLine($"{this.stainSheet.GetRow(item.Stain)?.Name.ToDalamudString() ?? "Unknown"} ({item.Stain})");
|
||||
for (var i = 0; i < item.Stains.Length; i++)
|
||||
{
|
||||
var stainId = item.Stains[i];
|
||||
if (stainId != 0)
|
||||
{
|
||||
var stainName = this.stainSheet.GetRow(stainId)?.Name.ToDalamudString().ToString() ?? "Unknown";
|
||||
b.AppendLine($" Stain {i + 1}: {stainName} ({stainId})");
|
||||
}
|
||||
else
|
||||
{
|
||||
b.AppendLine($" Stain {i + 1}: None");
|
||||
}
|
||||
}
|
||||
|
||||
if (item.Stains[0] != 0)
|
||||
b.AppendLine($"{this.stainSheet.GetRow(item.Stains[0])?.Name.ToDalamudString() ?? "Unknown"} ({item.Stains[0]})");
|
||||
else
|
||||
b.AppendLine("None");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue