mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #688 from goatcorp/endwalker
This commit is contained in:
commit
4a69b5a6c8
4 changed files with 21 additions and 25 deletions
|
|
@ -16,7 +16,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="Build">
|
||||
<OutputPath>$(AppData)\XIVLauncher\devPlugins\Dalamud.CorePlugin</OutputPath>
|
||||
<OutputPath>bin\$(Configuration)</OutputPath>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
|
|
|
|||
|
|
@ -131,6 +131,6 @@ namespace Dalamud.Game.ClientState.Fates
|
|||
/// <summary>
|
||||
/// Gets the territory this <see cref="Fate"/> is located in.
|
||||
/// </summary>
|
||||
public ExcelResolver<Lumina.Excel.GeneratedSheets.TerritoryType> TerritoryType => new(this.Struct->TerritoryID);
|
||||
public ExcelResolver<Lumina.Excel.GeneratedSheets.TerritoryType> TerritoryType => new(this.Struct->TerritoryId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,16 +45,13 @@ namespace Dalamud.Game.ClientState.Fates
|
|||
return 0;
|
||||
|
||||
// Sonar used this to check if the table was safe to read
|
||||
var check = Struct->Unk80.ToInt64();
|
||||
if (check == 0)
|
||||
if (Struct->FateDirector == null)
|
||||
return 0;
|
||||
|
||||
var start = Struct->FirstFatePtr.ToInt64();
|
||||
var end = Struct->LastFatePtr.ToInt64();
|
||||
if (start == 0 || end == 0)
|
||||
if (Struct->Fates.First == null || Struct->Fates.Last == null)
|
||||
return 0;
|
||||
|
||||
return (int)((end - start) / 8);
|
||||
return (int)Struct->Fates.Capacity();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -102,8 +99,7 @@ namespace Dalamud.Game.ClientState.Fates
|
|||
if (fateTable == IntPtr.Zero)
|
||||
return IntPtr.Zero;
|
||||
|
||||
var firstFate = this.Struct->FirstFatePtr;
|
||||
return *(IntPtr*)(firstFate + (8 * index));
|
||||
return *(IntPtr*)this.Struct->Fates.Get((ulong)index).Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -387,16 +387,16 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
{
|
||||
ImGui.Text(Locs.FeedbackModal_Text(this.feedbackPlugin.Name));
|
||||
|
||||
if (this.feedbackPlugin?.FeedbackMessage != null)
|
||||
{
|
||||
ImGui.TextWrapped(this.feedbackPlugin.FeedbackMessage);
|
||||
}
|
||||
if (this.feedbackPlugin?.FeedbackMessage != null)
|
||||
{
|
||||
ImGui.TextWrapped(this.feedbackPlugin.FeedbackMessage);
|
||||
}
|
||||
|
||||
if (this.pluginListUpdatable.Any(
|
||||
up => up.InstalledPlugin.Manifest.InternalName == this.feedbackPlugin?.InternalName))
|
||||
{
|
||||
ImGui.TextColored(ImGuiColors.DalamudRed, Locs.FeedbackModal_HasUpdate);
|
||||
}
|
||||
if (this.pluginListUpdatable.Any(
|
||||
up => up.InstalledPlugin.Manifest.InternalName == this.feedbackPlugin?.InternalName))
|
||||
{
|
||||
ImGui.TextColored(ImGuiColors.DalamudRed, Locs.FeedbackModal_HasUpdate);
|
||||
}
|
||||
|
||||
ImGui.Spacing();
|
||||
|
||||
|
|
@ -1231,10 +1231,10 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
this.DrawVisitRepoUrlButton(manifest.RepoUrl);
|
||||
|
||||
if (!manifest.SourceRepo.IsThirdParty && manifest.AcceptsFeedback)
|
||||
{
|
||||
this.DrawSendFeedbackButton(manifest);
|
||||
}
|
||||
if (!manifest.SourceRepo.IsThirdParty && manifest.AcceptsFeedback)
|
||||
{
|
||||
this.DrawSendFeedbackButton(manifest);
|
||||
}
|
||||
|
||||
ImGuiHelpers.ScaledDummy(5);
|
||||
|
||||
|
|
@ -1405,8 +1405,8 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
ImGui.SameLine();
|
||||
ImGui.TextColored(ImGuiColors.DalamudGrey3, downloadText);
|
||||
|
||||
var isThirdParty = manifest.IsThirdParty;
|
||||
var canFeedback = !isThirdParty && !plugin.IsDev && plugin.Manifest.DalamudApiLevel == PluginManager.DalamudApiLevel && plugin.Manifest.AcceptsFeedback;
|
||||
var isThirdParty = manifest.IsThirdParty;
|
||||
var canFeedback = !isThirdParty && !plugin.IsDev && plugin.Manifest.DalamudApiLevel == PluginManager.DalamudApiLevel && plugin.Manifest.AcceptsFeedback;
|
||||
|
||||
// Installed from
|
||||
if (plugin.IsDev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue