Skip to content

Commit

Permalink
chore: always respect the manifest name
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Aug 21, 2022
1 parent 9c03bc0 commit 3f76a70
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions Dalamud.Injector/LegacyBlowfish.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dalamud.Injector
{
Expand Down
1 change: 0 additions & 1 deletion Dalamud/Game/Internal/AntiDebug.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;

using Dalamud.Configuration.Internal;
using Serilog;

namespace Dalamud.Game.Internal
Expand Down
4 changes: 2 additions & 2 deletions Dalamud/Game/Internal/DalamudAtkTweaks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using CheapLoc;
using Dalamud.Configuration.Internal;
using Dalamud.Data;
//using Dalamud.Data;
//using Dalamud.Game.Gui.ContextMenus;
using Dalamud.Game.Text;
using Dalamud.Game.Text.SeStringHandling;
Expand All @@ -12,7 +12,7 @@
using Dalamud.Interface.Internal;
using Dalamud.Interface.Windowing;
using FFXIVClientStructs.FFXIV.Component.GUI;
using Lumina.Excel.GeneratedSheets;
//using Lumina.Excel.GeneratedSheets;
using Serilog;

using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.ValueType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
/*using System;
using Dalamud.Data;
using Dalamud.Utility;
using ImGuiNET;
using Lumina.Excel.GeneratedSheets;
using Serilog;
using Serilog;*/

namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
{
Expand Down
4 changes: 2 additions & 2 deletions Dalamud/Plugin/Internal/Types/LocalPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public LocalPlugin(FileInfo dllFile, LocalPluginManifest? manifest)
/// <summary>
/// Gets the plugin name, directly from the plugin or if it is not loaded from the manifest.
/// </summary>
public string Name => this.instance?.Name ?? this.Manifest.Name;
public string Name => this.Manifest.Name;

/// <summary>
/// Gets an optional reason, if the plugin is banned.
Expand Down Expand Up @@ -427,7 +427,7 @@ public async Task LoadAsync(PluginLoadReason reason, bool reloading = false)
SignatureHelper.Initialise(this.instance);

// In-case the manifest name was a placeholder. Can occur when no manifest was included.
if (this.instance.Name != this.Manifest.Name)
if (this.Manifest.Name.IsNullOrEmpty())
{
this.Manifest.Name = this.instance.Name;
this.Manifest.Save(this.manifestFile);
Expand Down

0 comments on commit 3f76a70

Please sign in to comment.