Un-whether-or-not the codebase

This commit is contained in:
goaaats 2025-04-25 22:48:26 +02:00
parent f4102db488
commit 731d7e0f6e
59 changed files with 249 additions and 249 deletions

View file

@ -66,12 +66,12 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public List<string>? BadWords { get; set; } public List<string>? BadWords { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the taskbar should flash once a duty is found. /// Gets or sets a value indicating whether the taskbar should flash once a duty is found.
/// </summary> /// </summary>
public bool DutyFinderTaskbarFlash { get; set; } = true; public bool DutyFinderTaskbarFlash { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not a message should be sent in chat once a duty is found. /// Gets or sets a value indicating whether a message should be sent in chat once a duty is found.
/// </summary> /// </summary>
public bool DutyFinderChatMessage { get; set; } = true; public bool DutyFinderChatMessage { get; set; } = true;
@ -101,7 +101,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public XivChatType GeneralChatType { get; set; } = XivChatType.Debug; public XivChatType GeneralChatType { get; set; } = XivChatType.Debug;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not plugin testing builds should be shown. /// Gets or sets a value indicating whether plugin testing builds should be shown.
/// </summary> /// </summary>
public bool DoPluginTest { get; set; } = false; public bool DoPluginTest { get; set; } = false;
@ -116,7 +116,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public List<ThirdPartyRepoSettings> ThirdRepoList { get; set; } = new(); public List<ThirdPartyRepoSettings> ThirdRepoList { get; set; } = new();
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not a disclaimer regarding third-party repos has been dismissed. /// Gets or sets a value indicating whether a disclaimer regarding third-party repos has been dismissed.
/// </summary> /// </summary>
public bool? ThirdRepoSpeedbumpDismissed { get; set; } = null; public bool? ThirdRepoSpeedbumpDismissed { get; set; } = null;
@ -174,38 +174,38 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public float ImeStateIndicatorOpacity { get; set; } = 1f; public float ImeStateIndicatorOpacity { get; set; } = 1f;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not plugin UI should be hidden. /// Gets or sets a value indicating whether plugin UI should be hidden.
/// </summary> /// </summary>
public bool ToggleUiHide { get; set; } = true; public bool ToggleUiHide { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not plugin UI should be hidden during cutscenes. /// Gets or sets a value indicating whether plugin UI should be hidden during cutscenes.
/// </summary> /// </summary>
public bool ToggleUiHideDuringCutscenes { get; set; } = true; public bool ToggleUiHideDuringCutscenes { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not plugin UI should be hidden during GPose. /// Gets or sets a value indicating whether plugin UI should be hidden during GPose.
/// </summary> /// </summary>
public bool ToggleUiHideDuringGpose { get; set; } = true; public bool ToggleUiHideDuringGpose { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not a message containing Dalamud's current version and the number of loaded plugins should be sent at login. /// Gets or sets a value indicating whether a message containing Dalamud's current version and the number of loaded plugins should be sent at login.
/// </summary> /// </summary>
public bool PrintDalamudWelcomeMsg { get; set; } = true; public bool PrintDalamudWelcomeMsg { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not a message containing detailed plugin information should be sent at login. /// Gets or sets a value indicating whether a message containing detailed plugin information should be sent at login.
/// </summary> /// </summary>
public bool PrintPluginsWelcomeMsg { get; set; } = true; public bool PrintPluginsWelcomeMsg { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not plugins should be auto-updated. /// Gets or sets a value indicating whether plugins should be auto-updated.
/// </summary> /// </summary>
[Obsolete("Use AutoUpdateBehavior instead.")] [Obsolete("Use AutoUpdateBehavior instead.")]
public bool AutoUpdatePlugins { get; set; } public bool AutoUpdatePlugins { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not Dalamud should add buttons to the system menu. /// Gets or sets a value indicating whether Dalamud should add buttons to the system menu.
/// </summary> /// </summary>
public bool DoButtonsSystemMenu { get; set; } = true; public bool DoButtonsSystemMenu { get; set; } = true;
@ -220,12 +220,12 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public bool LogSynchronously { get; set; } = false; public bool LogSynchronously { get; set; } = false;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the debug log should scroll automatically. /// Gets or sets a value indicating whether the debug log should scroll automatically.
/// </summary> /// </summary>
public bool LogAutoScroll { get; set; } = true; public bool LogAutoScroll { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the debug log should open at startup. /// Gets or sets a value indicating whether the debug log should open at startup.
/// </summary> /// </summary>
public bool LogOpenAtStartup { get; set; } public bool LogOpenAtStartup { get; set; }
@ -240,29 +240,29 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public List<string> LogCommandHistory { get; set; } = new(); public List<string> LogCommandHistory { get; set; } = new();
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the dev bar should open at startup. /// Gets or sets a value indicating whether the dev bar should open at startup.
/// </summary> /// </summary>
public bool DevBarOpenAtStartup { get; set; } public bool DevBarOpenAtStartup { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not ImGui asserts should be enabled at startup. /// Gets or sets a value indicating whether ImGui asserts should be enabled at startup.
/// </summary> /// </summary>
public bool? ImGuiAssertsEnabledAtStartup { get; set; } public bool? ImGuiAssertsEnabledAtStartup { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not docking should be globally enabled in ImGui. /// Gets or sets a value indicating whether docking should be globally enabled in ImGui.
/// </summary> /// </summary>
public bool IsDocking { get; set; } public bool IsDocking { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not plugin user interfaces should trigger sound effects. /// Gets or sets a value indicating whether plugin user interfaces should trigger sound effects.
/// This setting is effected by the in-game "System Sounds" option and volume. /// This setting is effected by the in-game "System Sounds" option and volume.
/// </summary> /// </summary>
[SuppressMessage("ReSharper", "InconsistentNaming", Justification = "ABI")] [SuppressMessage("ReSharper", "InconsistentNaming", Justification = "ABI")]
public bool EnablePluginUISoundEffects { get; set; } public bool EnablePluginUISoundEffects { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not an additional button allowing pinning and clickthrough options should be shown /// Gets or sets a value indicating whether an additional button allowing pinning and clickthrough options should be shown
/// on plugin title bars when using the Window System. /// on plugin title bars when using the Window System.
/// </summary> /// </summary>
public bool EnablePluginUiAdditionalOptions { get; set; } = true; public bool EnablePluginUiAdditionalOptions { get; set; } = true;
@ -273,17 +273,17 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public bool IsDisableViewport { get; set; } = true; public bool IsDisableViewport { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not navigation via a gamepad should be globally enabled in ImGui. /// Gets or sets a value indicating whether navigation via a gamepad should be globally enabled in ImGui.
/// </summary> /// </summary>
public bool IsGamepadNavigationEnabled { get; set; } = true; public bool IsGamepadNavigationEnabled { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not focus management is enabled. /// Gets or sets a value indicating whether focus management is enabled.
/// </summary> /// </summary>
public bool IsFocusManagementEnabled { get; set; } = true; public bool IsFocusManagementEnabled { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the anti-anti-debug check is enabled on startup. /// Gets or sets a value indicating whether the anti-anti-debug check is enabled on startup.
/// </summary> /// </summary>
public bool IsAntiAntiDebugEnabled { get; set; } = false; public bool IsAntiAntiDebugEnabled { get; set; } = false;
@ -298,7 +298,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public string? DalamudBetaKind { get; set; } public string? DalamudBetaKind { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not any plugin should be loaded when the game is started. /// Gets or sets a value indicating whether any plugin should be loaded when the game is started.
/// It is reset immediately when read. /// It is reset immediately when read.
/// </summary> /// </summary>
public bool PluginSafeMode { get; set; } public bool PluginSafeMode { get; set; }
@ -310,7 +310,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public int? PluginWaitBeforeFree { get; set; } public int? PluginWaitBeforeFree { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not crashes during shutdown should be reported. /// Gets or sets a value indicating whether crashes during shutdown should be reported.
/// </summary> /// </summary>
public bool ReportShutdownCrashes { get; set; } public bool ReportShutdownCrashes { get; set; }
@ -342,12 +342,12 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public ProfileModel? DefaultProfile { get; set; } public ProfileModel? DefaultProfile { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not profiles are enabled. /// Gets or sets a value indicating whether profiles are enabled.
/// </summary> /// </summary>
public bool ProfilesEnabled { get; set; } = false; public bool ProfilesEnabled { get; set; } = false;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the user has seen the profiles tutorial. /// Gets or sets a value indicating whether the user has seen the profiles tutorial.
/// </summary> /// </summary>
public bool ProfilesHasSeenTutorial { get; set; } = false; public bool ProfilesHasSeenTutorial { get; set; } = false;
@ -391,7 +391,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
public bool? ReduceMotions { get; set; } public bool? ReduceMotions { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not market board data should be uploaded. /// Gets or sets a value indicating whether market board data should be uploaded.
/// </summary> /// </summary>
public bool IsMbCollect { get; set; } = true; public bool IsMbCollect { get; set; } = true;
@ -427,7 +427,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
} }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not to show info on dev bar. /// Gets or sets a value indicating whether to show info on dev bar.
/// </summary> /// </summary>
public bool ShowDevBarInfo { get; set; } = true; public bool ShowDevBarInfo { get; set; } = true;

View file

@ -21,7 +21,7 @@ internal class EnvironmentConfiguration
public static bool DalamudForceMinHook { get; } = GetEnvironmentVariable("DALAMUD_FORCE_MINHOOK"); public static bool DalamudForceMinHook { get; } = GetEnvironmentVariable("DALAMUD_FORCE_MINHOOK");
/// <summary> /// <summary>
/// Gets a value indicating whether or not Dalamud context menus should be disabled. /// Gets a value indicating whether Dalamud context menus should be disabled.
/// </summary> /// </summary>
public static bool DalamudDoContextMenu { get; } = GetEnvironmentVariable("DALAMUD_ENABLE_CONTEXTMENU"); public static bool DalamudDoContextMenu { get; } = GetEnvironmentVariable("DALAMUD_ENABLE_CONTEXTMENU");

View file

@ -27,7 +27,7 @@ public interface IConsoleCommand : IConsoleEntry
/// Execute this command. /// Execute this command.
/// </summary> /// </summary>
/// <param name="arguments">Arguments to invoke the entry with.</param> /// <param name="arguments">Arguments to invoke the entry with.</param>
/// <returns>Whether or not execution succeeded.</returns> /// <returns>Whether execution succeeded.</returns>
public bool Invoke(IEnumerable<object> arguments); public bool Invoke(IEnumerable<object> arguments);
} }

View file

@ -181,7 +181,7 @@ internal partial class ConsoleManager : IServiceType
/// Process a console command. /// Process a console command.
/// </summary> /// </summary>
/// <param name="command">The command to process.</param> /// <param name="command">The command to process.</param>
/// <returns>Whether or not the command was successfully processed.</returns> /// <returns>Whether the command was successfully processed.</returns>
public bool ProcessCommand(string command) public bool ProcessCommand(string command)
{ {
if (this.Invoke?.Invoke(command) == true) if (this.Invoke?.Invoke(command) == true)
@ -374,7 +374,7 @@ internal partial class ConsoleManager : IServiceType
/// Execute this command. /// Execute this command.
/// </summary> /// </summary>
/// <param name="arguments">Arguments to invoke the entry with.</param> /// <param name="arguments">Arguments to invoke the entry with.</param>
/// <returns>Whether or not execution succeeded.</returns> /// <returns>Whether execution succeeded.</returns>
public abstract bool Invoke(IEnumerable<object> arguments); public abstract bool Invoke(IEnumerable<object> arguments);
/// <summary> /// <summary>

View file

@ -42,7 +42,7 @@ internal class AddonSetupHook<T> : IDisposable where T : Delegate
} }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook is enabled. /// Gets a value indicating whether the hook is enabled.
/// </summary> /// </summary>
public bool IsEnabled => this.asmHook.IsEnabled; public bool IsEnabled => this.asmHook.IsEnabled;

View file

@ -43,7 +43,7 @@ internal partial class ChatHandlers : IServiceType
public string? LastLink { get; private set; } public string? LastLink { get; private set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not auto-updates have already completed this session. /// Gets a value indicating whether auto-updates have already completed this session.
/// </summary> /// </summary>
public bool IsAutoUpdateComplete { get; private set; } public bool IsAutoUpdateComplete { get; private set; }

View file

@ -70,13 +70,13 @@ public interface IFate : IEquatable<IFate>
byte Progress { get; } byte Progress { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this <see cref="Fate"/> has a EXP bonus. /// Gets a value indicating whether this <see cref="Fate"/> has a EXP bonus.
/// </summary> /// </summary>
[Obsolete($"Use {nameof(HasBonus)} instead")] [Obsolete($"Use {nameof(HasBonus)} instead")]
bool HasExpBonus { get; } bool HasExpBonus { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this <see cref="Fate"/> has a bonus. /// Gets a value indicating whether this <see cref="Fate"/> has a bonus.
/// </summary> /// </summary>
bool HasBonus { get; } bool HasBonus { get; }

View file

@ -45,19 +45,19 @@ public unsafe class BLMGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
public int AstralSoulStacks => this.Struct->AstralSoulStacks; public int AstralSoulStacks => this.Struct->AstralSoulStacks;
/// <summary> /// <summary>
/// Gets a value indicating whether or not the player is in Umbral Ice. /// Gets a value indicating whether the player is in Umbral Ice.
/// </summary> /// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns> /// <returns><c>true</c> or <c>false</c>.</returns>
public bool InUmbralIce => this.Struct->ElementStance < 0; public bool InUmbralIce => this.Struct->ElementStance < 0;
/// <summary> /// <summary>
/// Gets a value indicating whether or not the player is in Astral fire. /// Gets a value indicating whether the player is in Astral fire.
/// </summary> /// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns> /// <returns><c>true</c> or <c>false</c>.</returns>
public bool InAstralFire => this.Struct->ElementStance > 0; public bool InAstralFire => this.Struct->ElementStance > 0;
/// <summary> /// <summary>
/// Gets a value indicating whether or not Enochian is active. /// Gets a value indicating whether Enochian is active.
/// </summary> /// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns> /// <returns><c>true</c> or <c>false</c>.</returns>
public bool IsEnochianActive => this.Struct->EnochianActive; public bool IsEnochianActive => this.Struct->EnochianActive;

View file

@ -30,27 +30,27 @@ public unsafe class PCTGauge : JobGaugeBase<PictomancerGauge>
public byte Paint => Struct->Paint; public byte Paint => Struct->Paint;
/// <summary> /// <summary>
/// Gets a value indicating whether or not a creature motif is drawn. /// Gets a value indicating whether a creature motif is drawn.
/// </summary> /// </summary>
public bool CreatureMotifDrawn => Struct->CreatureMotifDrawn; public bool CreatureMotifDrawn => Struct->CreatureMotifDrawn;
/// <summary> /// <summary>
/// Gets a value indicating whether or not a weapon motif is drawn. /// Gets a value indicating whether a weapon motif is drawn.
/// </summary> /// </summary>
public bool WeaponMotifDrawn => Struct->WeaponMotifDrawn; public bool WeaponMotifDrawn => Struct->WeaponMotifDrawn;
/// <summary> /// <summary>
/// Gets a value indicating whether or not a landscape motif is drawn. /// Gets a value indicating whether a landscape motif is drawn.
/// </summary> /// </summary>
public bool LandscapeMotifDrawn => Struct->LandscapeMotifDrawn; public bool LandscapeMotifDrawn => Struct->LandscapeMotifDrawn;
/// <summary> /// <summary>
/// Gets a value indicating whether or not a moogle portrait is ready. /// Gets a value indicating whether a moogle portrait is ready.
/// </summary> /// </summary>
public bool MooglePortraitReady => Struct->MooglePortraitReady; public bool MooglePortraitReady => Struct->MooglePortraitReady;
/// <summary> /// <summary>
/// Gets a value indicating whether or not a madeen portrait is ready. /// Gets a value indicating whether a madeen portrait is ready.
/// </summary> /// </summary>
public bool MadeenPortraitReady => Struct->MadeenPortraitReady; public bool MadeenPortraitReady => Struct->MadeenPortraitReady;

View file

@ -42,7 +42,7 @@ public enum CustomizeIndex
HairStyle = 0x06, HairStyle = 0x06,
/// <summary> /// <summary>
/// Whether or not the character has hair highlights. /// Whether the character has hair highlights.
/// </summary> /// </summary>
HasHighlights = 0x07, // negative to enable, positive to disable HasHighlights = 0x07, // negative to enable, positive to disable

View file

@ -269,7 +269,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
/// Check whether an entry with the specified title exists. /// Check whether an entry with the specified title exists.
/// </summary> /// </summary>
/// <param name="title">The title to check for.</param> /// <param name="title">The title to check for.</param>
/// <returns>Whether or not an entry with that title is registered.</returns> /// <returns>Whether an entry with that title is registered.</returns>
internal bool HasEntry(string title) internal bool HasEntry(string title)
{ {
var found = false; var found = false;

View file

@ -39,7 +39,7 @@ public interface IReadOnlyDtrBarEntry
public bool Shown { get; } public bool Shown { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the user has hidden this entry from view through the Dalamud settings. /// Gets a value indicating whether the user has hidden this entry from view through the Dalamud settings.
/// </summary> /// </summary>
public bool UserHidden { get; } public bool UserHidden { get; }

View file

@ -259,7 +259,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui
/// <summary> /// <summary>
/// Indicates if the game is in the lobby scene (title screen, chara select, chara make, aesthetician etc.). /// Indicates if the game is in the lobby scene (title screen, chara select, chara make, aesthetician etc.).
/// </summary> /// </summary>
/// <returns>A value indicating whether or not the game is in the lobby scene.</returns> /// <returns>A value indicating whether the game is in the lobby scene.</returns>
internal bool IsInLobby() => RaptureAtkModule.Instance()->CurrentUIScene.StartsWith("LobbyMain"u8); internal bool IsInLobby() => RaptureAtkModule.Instance()->CurrentUIScene.StartsWith("LobbyMain"u8);
/// <summary> /// <summary>

View file

@ -6,7 +6,7 @@ namespace Dalamud.Game.Gui.NamePlate;
/// A part builder for constructing and setting quoted nameplate fields (i.e. free company tag and title). /// A part builder for constructing and setting quoted nameplate fields (i.e. free company tag and title).
/// </summary> /// </summary>
/// <param name="field">The field type which should be set.</param> /// <param name="field">The field type which should be set.</param>
/// <param name="isFreeCompany">Whether or not this is a Free Company part.</param> /// <param name="isFreeCompany">Whether this is a Free Company part.</param>
/// <remarks> /// <remarks>
/// This class works as a lazy writer initialized with empty parts, where an empty part signifies no change should be /// This class works as a lazy writer initialized with empty parts, where an empty part signifies no change should be
/// performed. Only after all handler processing is complete does it write out any parts which were set to the /// performed. Only after all handler processing is complete does it write out any parts which were set to the

View file

@ -21,7 +21,7 @@ internal class MarketBoardItemRequest
public uint Status { get; private set; } public uint Status { get; private set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this request was successful. /// Gets a value indicating whether this request was successful.
/// </summary> /// </summary>
public bool Ok => this.Status == 0; public bool Ok => this.Status == 0;

View file

@ -248,7 +248,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService
/// <summary> /// <summary>
/// Disposes of managed and unmanaged resources. /// Disposes of managed and unmanaged resources.
/// </summary> /// </summary>
/// <param name="shouldDispose">Whether or not to execute the disposal.</param> /// <param name="shouldDispose">Whether to execute the disposal.</param>
protected void Dispose(bool shouldDispose) protected void Dispose(bool shouldDispose)
{ {
if (!shouldDispose) if (!shouldDispose)

View file

@ -31,7 +31,7 @@ public class SigScanner : IDisposable, ISigScanner
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="SigScanner"/> class using the main module of the current process. /// Initializes a new instance of the <see cref="SigScanner"/> class using the main module of the current process.
/// </summary> /// </summary>
/// <param name="doCopy">Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param> /// <param name="doCopy">Whether to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param>
/// <param name="cacheFile">File used to cached signatures.</param> /// <param name="cacheFile">File used to cached signatures.</param>
public SigScanner(bool doCopy = false, FileInfo? cacheFile = null) public SigScanner(bool doCopy = false, FileInfo? cacheFile = null)
: this(Process.GetCurrentProcess().MainModule!, doCopy, cacheFile) : this(Process.GetCurrentProcess().MainModule!, doCopy, cacheFile)
@ -42,7 +42,7 @@ public class SigScanner : IDisposable, ISigScanner
/// Initializes a new instance of the <see cref="SigScanner"/> class. /// Initializes a new instance of the <see cref="SigScanner"/> class.
/// </summary> /// </summary>
/// <param name="module">The ProcessModule to be used for scanning.</param> /// <param name="module">The ProcessModule to be used for scanning.</param>
/// <param name="doCopy">Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param> /// <param name="doCopy">Whether to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param>
/// <param name="cacheFile">File used to cached signatures.</param> /// <param name="cacheFile">File used to cached signatures.</param>
public SigScanner(ProcessModule module, bool doCopy = false, FileInfo? cacheFile = null) public SigScanner(ProcessModule module, bool doCopy = false, FileInfo? cacheFile = null)
{ {

View file

@ -19,7 +19,7 @@ internal class TargetSigScanner : SigScanner, IPublicDisposableService
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="TargetSigScanner"/> class. /// Initializes a new instance of the <see cref="TargetSigScanner"/> class.
/// </summary> /// </summary>
/// <param name="doCopy">Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param> /// <param name="doCopy">Whether to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param>
/// <param name="cacheFile">File used to cached signatures.</param> /// <param name="cacheFile">File used to cached signatures.</param>
public TargetSigScanner(bool doCopy = false, FileInfo? cacheFile = null) public TargetSigScanner(bool doCopy = false, FileInfo? cacheFile = null)
: base(Process.GetCurrentProcess().MainModule!, doCopy, cacheFile) : base(Process.GetCurrentProcess().MainModule!, doCopy, cacheFile)

View file

@ -31,7 +31,7 @@ public class ItemPayload : Payload
/// Creates a payload representing an interactable item link for the specified item. /// Creates a payload representing an interactable item link for the specified item.
/// </summary> /// </summary>
/// <param name="itemId">The id of the item.</param> /// <param name="itemId">The id of the item.</param>
/// <param name="isHq">Whether or not the link should be for the high-quality variant of the item.</param> /// <param name="isHq">Whether the link should be for the high-quality variant of the item.</param>
/// <param name="displayNameOverride">An optional name to include in the item link. Typically this should /// <param name="displayNameOverride">An optional name to include in the item link. Typically this should
/// be left as null, or set to the normal item name. Actual overrides are better done with the subsequent /// be left as null, or set to the normal item name. Actual overrides are better done with the subsequent
/// TextPayload that is a part of a full item link in chat.</param> /// TextPayload that is a part of a full item link in chat.</param>
@ -142,7 +142,7 @@ public class ItemPayload : Payload
: (RowRef)LuminaUtils.CreateRef<Item>(this.ItemId); : (RowRef)LuminaUtils.CreateRef<Item>(this.ItemId);
/// <summary> /// <summary>
/// Gets a value indicating whether or not this item link is for a high-quality version of the item. /// Gets a value indicating whether this item link is for a high-quality version of the item.
/// </summary> /// </summary>
[JsonProperty] [JsonProperty]
public bool IsHQ => this.Kind == ItemKind.Hq; public bool IsHQ => this.Kind == ItemKind.Hq;

View file

@ -46,7 +46,7 @@ public class UIForegroundPayload : Payload
public override PayloadType Type => PayloadType.UIForeground; public override PayloadType Type => PayloadType.UIForeground;
/// <summary> /// <summary>
/// Gets a value indicating whether or not this payload represents applying a foreground color, or disabling one. /// Gets a value indicating whether this payload represents applying a foreground color, or disabling one.
/// </summary> /// </summary>
public bool IsEnabled => this.ColorKey != 0; public bool IsEnabled => this.ColorKey != 0;

View file

@ -64,7 +64,7 @@ public class UIGlowPayload : Payload
} }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this payload represents applying a glow color, or disabling one. /// Gets a value indicating whether this payload represents applying a glow color, or disabling one.
/// </summary> /// </summary>
public bool IsEnabled => this.ColorKey != 0; public bool IsEnabled => this.ColorKey != 0;

View file

@ -113,7 +113,7 @@ public class SeStringBuilder
/// Add an item link to the builder. /// Add an item link to the builder.
/// </summary> /// </summary>
/// <param name="itemId">The item ID.</param> /// <param name="itemId">The item ID.</param>
/// <param name="isHq">Whether or not the item is high quality.</param> /// <param name="isHq">Whether the item is high quality.</param>
/// <param name="itemNameOverride">Override for the item's name.</param> /// <param name="itemNameOverride">Override for the item's name.</param>
/// <returns>The current builder.</returns> /// <returns>The current builder.</returns>
public SeStringBuilder AddItemLink(uint itemId, bool isHq, string? itemNameOverride = null) => public SeStringBuilder AddItemLink(uint itemId, bool isHq, string? itemNameOverride = null) =>

View file

@ -89,7 +89,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook
} }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook is enabled. /// Gets a value indicating whether the hook is enabled.
/// </summary> /// </summary>
public bool IsEnabled public bool IsEnabled
{ {
@ -101,7 +101,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook
} }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook has been disposed. /// Gets a value indicating whether the hook has been disposed.
/// </summary> /// </summary>
public bool IsDisposed { get; private set; } public bool IsDisposed { get; private set; }

View file

@ -59,12 +59,12 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate
=> this.IsDisposed ? Marshal.GetDelegateForFunctionPointer<T>(this.address) : this.Original; => this.IsDisposed ? Marshal.GetDelegateForFunctionPointer<T>(this.address) : this.Original;
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook is enabled. /// Gets a value indicating whether the hook is enabled.
/// </summary> /// </summary>
public virtual bool IsEnabled => throw new NotImplementedException(); public virtual bool IsEnabled => throw new NotImplementedException();
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook has been disposed. /// Gets a value indicating whether the hook has been disposed.
/// </summary> /// </summary>
public bool IsDisposed { get; private set; } public bool IsDisposed { get; private set; }

View file

@ -11,12 +11,12 @@ public interface IDalamudHook : IDisposable
public IntPtr Address { get; } public IntPtr Address { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook is enabled. /// Gets a value indicating whether the hook is enabled.
/// </summary> /// </summary>
public bool IsEnabled { get; } public bool IsEnabled { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook is disposed. /// Gets a value indicating whether the hook is disposed.
/// </summary> /// </summary>
public bool IsDisposed { get; } public bool IsDisposed { get; }

View file

@ -53,7 +53,7 @@ internal class CallHook<T> : IDalamudHook where T : Delegate
} }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the hook is enabled. /// Gets a value indicating whether the hook is enabled.
/// </summary> /// </summary>
public bool IsEnabled => this.asmHook.IsEnabled; public bool IsEnabled => this.asmHook.IsEnabled;

View file

@ -85,12 +85,12 @@ public abstract class Easing
public TimeSpan Duration { get; set; } public TimeSpan Duration { get; set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the animation is running. /// Gets a value indicating whether the animation is running.
/// </summary> /// </summary>
public bool IsRunning => this.animationTimer.IsRunning; public bool IsRunning => this.animationTimer.IsRunning;
/// <summary> /// <summary>
/// Gets a value indicating whether or not the animation is done. /// Gets a value indicating whether the animation is done.
/// </summary> /// </summary>
public bool IsDone => this.animationTimer.ElapsedMilliseconds > this.Duration.TotalMilliseconds; public bool IsDone => this.animationTimer.ElapsedMilliseconds > this.Duration.TotalMilliseconds;

View file

@ -23,7 +23,7 @@ internal class DriveListLoader
public IReadOnlyList<DriveInfo> Drives { get; private set; } public IReadOnlyList<DriveInfo> Drives { get; private set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the loader is loading. /// Gets a value indicating whether the loader is loading.
/// </summary> /// </summary>
public bool Loading { get; private set; } public bool Loading { get; private set; }

View file

@ -521,7 +521,7 @@ internal class DalamudInterface : IInternalDisposableService
/// <summary> /// <summary>
/// Toggle the screen darkening effect used for the credits. /// Toggle the screen darkening effect used for the credits.
/// </summary> /// </summary>
/// <param name="status">Whether or not to turn the effect on.</param> /// <param name="status">Whether to turn the effect on.</param>
public void SetCreditsDarkeningAnimation(bool status) public void SetCreditsDarkeningAnimation(bool status)
{ {
this.isCreditsDarkening = status; this.isCreditsDarkening = status;

View file

@ -212,7 +212,7 @@ internal partial class InterfaceManager : IInternalDisposableService
public IntPtr WindowHandlePtr => this.scene?.WindowHandlePtr ?? IntPtr.Zero; public IntPtr WindowHandlePtr => this.scene?.WindowHandlePtr ?? IntPtr.Zero;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the game's cursor should be overridden with the ImGui cursor. /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor.
/// </summary> /// </summary>
public bool OverrideGameCursor public bool OverrideGameCursor
{ {
@ -231,7 +231,7 @@ internal partial class InterfaceManager : IInternalDisposableService
public bool IsReady => this.scene != null; public bool IsReady => this.scene != null;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not Draw events should be dispatched. /// Gets or sets a value indicating whether Draw events should be dispatched.
/// </summary> /// </summary>
public bool IsDispatchingEvents { get; set; } = true; public bool IsDispatchingEvents { get; set; } = true;

View file

@ -8,7 +8,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// Test setup for Lumina. /// Test setup for Lumina.
/// </summary> /// </summary>
/// <typeparam name="T">ExcelRow to run test on.</typeparam> /// <typeparam name="T">ExcelRow to run test on.</typeparam>
/// <param name="isLargeSheet">Whether or not the sheet is large. If it is large, the self test will iterate through the full sheet in one frame and benchmark the time taken.</param> /// <param name="isLargeSheet">Whether the sheet is large. If it is large, the self test will iterate through the full sheet in one frame and benchmark the time taken.</param>
internal class LuminaSelfTestStep<T>(bool isLargeSheet) : ISelfTestStep internal class LuminaSelfTestStep<T>(bool isLargeSheet) : ISelfTestStep
where T : struct, IExcelRow<T> where T : struct, IExcelRow<T>
{ {

View file

@ -11,12 +11,12 @@ public abstract class SettingsEntry
public string? Name { get; protected set; } public string? Name { get; protected set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this entry is valid. /// Gets or sets a value indicating whether this entry is valid.
/// </summary> /// </summary>
public virtual bool IsValid { get; protected set; } = true; public virtual bool IsValid { get; protected set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this entry is visible. /// Gets or sets a value indicating whether this entry is visible.
/// </summary> /// </summary>
public virtual bool IsVisible { get; protected set; } = true; public virtual bool IsVisible { get; protected set; } = true;

View file

@ -14,7 +14,7 @@ namespace Dalamud.Interface;
public interface ITitleScreenMenuEntry : IReadOnlyTitleScreenMenuEntry, IComparable<TitleScreenMenuEntry> public interface ITitleScreenMenuEntry : IReadOnlyTitleScreenMenuEntry, IComparable<TitleScreenMenuEntry>
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this entry is internal. /// Gets or sets a value indicating whether this entry is internal.
/// </summary> /// </summary>
bool IsInternal { get; set; } bool IsInternal { get; set; }

View file

@ -147,7 +147,7 @@ public interface IUiBuilder
bool DisableGposeUiHide { get; set; } bool DisableGposeUiHide { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the game's cursor should be overridden with the ImGui cursor. /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor.
/// </summary> /// </summary>
bool OverrideGameCursor { get; set; } bool OverrideGameCursor { get; set; }
@ -157,7 +157,7 @@ public interface IUiBuilder
ulong FrameCount { get; } ulong FrameCount { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not a cutscene is playing. /// Gets a value indicating whether a cutscene is playing.
/// </summary> /// </summary>
bool CutsceneActive { get; } bool CutsceneActive { get; }
@ -177,7 +177,7 @@ public interface IUiBuilder
IFontAtlas FontAtlas { get; } IFontAtlas FontAtlas { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not to use "reduced motion". This usually means that you should use less /// Gets a value indicating whether to use "reduced motion". This usually means that you should use less
/// intrusive animations, or disable them entirely. /// intrusive animations, or disable them entirely.
/// </summary> /// </summary>
bool ShouldUseReducedMotion { get; } bool ShouldUseReducedMotion { get; }
@ -445,7 +445,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder
public bool DisableGposeUiHide { get; set; } = false; public bool DisableGposeUiHide { get; set; } = false;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the game's cursor should be overridden with the ImGui cursor. /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor.
/// </summary> /// </summary>
public bool OverrideGameCursor public bool OverrideGameCursor
{ {
@ -459,7 +459,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder
public ulong FrameCount { get; private set; } = 0; public ulong FrameCount { get; private set; } = 0;
/// <summary> /// <summary>
/// Gets a value indicating whether or not a cutscene is playing. /// Gets a value indicating whether a cutscene is playing.
/// </summary> /// </summary>
public bool CutsceneActive public bool CutsceneActive
{ {
@ -489,7 +489,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder
public IFontAtlas FontAtlas { get; } public IFontAtlas FontAtlas { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not to use "reduced motion". This usually means that you should use less /// Gets a value indicating whether to use "reduced motion". This usually means that you should use less
/// intrusive animations, or disable them entirely. /// intrusive animations, or disable them entirely.
/// </summary> /// </summary>
public bool ShouldUseReducedMotion => Service<DalamudConfiguration>.Get().ReduceMotions ?? false; public bool ShouldUseReducedMotion => Service<DalamudConfiguration>.Get().ReduceMotions ?? false;

View file

@ -150,7 +150,7 @@ public abstract class Window
public WindowSizeConstraints? SizeConstraints { get; set; } public WindowSizeConstraints? SizeConstraints { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this window is collapsed. /// Gets or sets a value indicating whether this window is collapsed.
/// </summary> /// </summary>
public bool? Collapsed { get; set; } public bool? Collapsed { get; set; }
@ -165,7 +165,7 @@ public abstract class Window
public ImGuiWindowFlags Flags { get; set; } public ImGuiWindowFlags Flags { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this ImGui window will be forced to stay inside the main game window. /// Gets or sets a value indicating whether this ImGui window will be forced to stay inside the main game window.
/// </summary> /// </summary>
public bool ForceMainWindow { get; set; } public bool ForceMainWindow { get; set; }
@ -175,17 +175,17 @@ public abstract class Window
public float? BgAlpha { get; set; } public float? BgAlpha { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this ImGui window should display a close button in the title bar. /// Gets or sets a value indicating whether this ImGui window should display a close button in the title bar.
/// </summary> /// </summary>
public bool ShowCloseButton { get; set; } = true; public bool ShowCloseButton { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this window should offer to be pinned via the window's titlebar context menu. /// Gets or sets a value indicating whether this window should offer to be pinned via the window's titlebar context menu.
/// </summary> /// </summary>
public bool AllowPinning { get; set; } = true; public bool AllowPinning { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this window should offer to be made click-through via the window's titlebar context menu. /// Gets or sets a value indicating whether this window should offer to be made click-through via the window's titlebar context menu.
/// </summary> /// </summary>
public bool AllowClickthrough { get; set; } = true; public bool AllowClickthrough { get; set; } = true;
@ -199,7 +199,7 @@ public abstract class Window
public List<TitleBarButton> TitleBarButtons { get; set; } = new(); public List<TitleBarButton> TitleBarButtons { get; set; } = new();
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this window will stay open. /// Gets or sets a value indicating whether this window will stay open.
/// </summary> /// </summary>
public bool IsOpen public bool IsOpen
{ {
@ -804,7 +804,7 @@ public abstract class Window
public int Priority { get; set; } public int Priority { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the button shall be clickable /// Gets or sets a value indicating whether the button shall be clickable
/// when the respective window is set to clickthrough. /// when the respective window is set to clickthrough.
/// </summary> /// </summary>
public bool AvailableClickthrough { get; set; } public bool AvailableClickthrough { get; set; }

View file

@ -200,22 +200,22 @@ internal class TaskTracker : IInternalDisposableService
public StackTrace? StackTrace { get; set; } public StackTrace? StackTrace { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the task was completed. /// Gets or sets a value indicating whether the task was completed.
/// </summary> /// </summary>
public bool IsCompleted { get; set; } public bool IsCompleted { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the task faulted. /// Gets or sets a value indicating whether the task faulted.
/// </summary> /// </summary>
public bool IsFaulted { get; set; } public bool IsFaulted { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the task was canceled. /// Gets or sets a value indicating whether the task was canceled.
/// </summary> /// </summary>
public bool IsCanceled { get; set; } public bool IsCanceled { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the task was completed successfully. /// Gets or sets a value indicating whether the task was completed successfully.
/// </summary> /// </summary>
public bool IsCompletedSuccessfully { get; set; } public bool IsCompletedSuccessfully { get; set; }

View file

@ -1987,7 +1987,7 @@ internal static partial class NativeFunctions
/// <param name="fInvadeProcess"> /// <param name="fInvadeProcess">
/// If this value is <see langword="true"/>, enumerates the loaded modules for the process and effectively calls the SymLoadModule64 function for each module. /// If this value is <see langword="true"/>, enumerates the loaded modules for the process and effectively calls the SymLoadModule64 function for each module.
/// </param> /// </param>
/// <returns>Whether or not the function succeeded.</returns> /// <returns>Whether the function succeeded.</returns>
[DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)] [DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool SymInitialize(IntPtr hProcess, string userSearchPath, bool fInvadeProcess); public static extern bool SymInitialize(IntPtr hProcess, string userSearchPath, bool fInvadeProcess);
@ -1995,7 +1995,7 @@ internal static partial class NativeFunctions
/// Deallocates all resources associated with the process handle. /// Deallocates all resources associated with the process handle.
/// </summary> /// </summary>
/// <param name="hProcess">A handle to the process that was originally passed to the <seealso cref="SymInitialize"/> function.</param> /// <param name="hProcess">A handle to the process that was originally passed to the <seealso cref="SymInitialize"/> function.</param>
/// <returns>Whether or not the function succeeded.</returns> /// <returns>Whether the function succeeded.</returns>
[DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)] [DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool SymCleanup(IntPtr hProcess); public static extern bool SymCleanup(IntPtr hProcess);
@ -2009,7 +2009,7 @@ internal static partial class NativeFunctions
/// <param name="exceptionInfo">Exception information.</param> /// <param name="exceptionInfo">Exception information.</param>
/// <param name="userStreamParam">User information.</param> /// <param name="userStreamParam">User information.</param>
/// <param name="callback">Callback.</param> /// <param name="callback">Callback.</param>
/// <returns>Whether or not the minidump succeeded.</returns> /// <returns>Whether the minidump succeeded.</returns>
[DllImport("dbghelp.dll")] [DllImport("dbghelp.dll")]
public static extern bool MiniDumpWriteDump(IntPtr hProcess, uint processId, IntPtr hFile, int dumpType, ref MinidumpExceptionInformation exceptionInfo, IntPtr userStreamParam, IntPtr callback); public static extern bool MiniDumpWriteDump(IntPtr hProcess, uint processId, IntPtr hFile, int dumpType, ref MinidumpExceptionInformation exceptionInfo, IntPtr userStreamParam, IntPtr callback);

View file

@ -100,7 +100,7 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa
public PluginLoadReason Reason { get; } public PluginLoadReason Reason { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not auto-updates have already completed this session. /// Gets a value indicating whether auto-updates have already completed this session.
/// </summary> /// </summary>
public bool IsAutoUpdateComplete => Service<AutoUpdateManager>.Get().IsAutoUpdateComplete; public bool IsAutoUpdateComplete => Service<AutoUpdateManager>.Get().IsAutoUpdateComplete;

View file

@ -52,7 +52,7 @@ public interface IDalamudPluginInterface
PluginLoadReason Reason { get; } PluginLoadReason Reason { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not auto-updates have already completed this session. /// Gets a value indicating whether auto-updates have already completed this session.
/// </summary> /// </summary>
bool IsAutoUpdateComplete { get; } bool IsAutoUpdateComplete { get; }

View file

@ -34,12 +34,12 @@ public interface IExposedPlugin
bool IsTesting { get; } bool IsTesting { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this plugin is orphaned(belongs to a repo) or not. /// Gets a value indicating whether this plugin is orphaned(belongs to a repo) or not.
/// </summary> /// </summary>
bool IsOrphaned { get; } bool IsOrphaned { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does). /// Gets a value indicating whether this plugin is serviced(repo still exists, but plugin no longer does).
/// </summary> /// </summary>
bool IsDecommissioned { get; } bool IsDecommissioned { get; }

View file

@ -131,7 +131,7 @@ internal class AutoUpdateManager : IServiceType
} }
/// <summary> /// <summary>
/// Gets a value indicating whether or not auto-updates have already completed this session. /// Gets a value indicating whether auto-updates have already completed this session.
/// </summary> /// </summary>
public bool IsAutoUpdateComplete { get; private set; } public bool IsAutoUpdateComplete { get; private set; }

View file

@ -284,7 +284,7 @@ internal class PluginManager : IInternalDisposableService
/// Check if a manifest even has an available testing version. /// Check if a manifest even has an available testing version.
/// </summary> /// </summary>
/// <param name="manifest">The manifest to test.</param> /// <param name="manifest">The manifest to test.</param>
/// <returns>Whether or not a testing version is available.</returns> /// <returns>Whether a testing version is available.</returns>
public static bool HasTestingVersion(IPluginManifest manifest) public static bool HasTestingVersion(IPluginManifest manifest)
{ {
var av = manifest.AssemblyVersion; var av = manifest.AssemblyVersion;
@ -1037,7 +1037,7 @@ internal class PluginManager : IInternalDisposableService
/// </summary> /// </summary>
/// <param name="metadata">The available plugin update.</param> /// <param name="metadata">The available plugin update.</param>
/// <param name="notify">Whether to notify that installed plugins have changed afterwards.</param> /// <param name="notify">Whether to notify that installed plugins have changed afterwards.</param>
/// <param name="dryRun">Whether or not to actually perform the update, or just indicate success.</param> /// <param name="dryRun">Whether to actually perform the update, or just indicate success.</param>
/// <returns>The status of the update.</returns> /// <returns>The status of the update.</returns>
public async Task<PluginUpdateStatus> UpdateSinglePluginAsync(AvailablePluginUpdate metadata, bool notify, bool dryRun) public async Task<PluginUpdateStatus> UpdateSinglePluginAsync(AvailablePluginUpdate metadata, bool notify, bool dryRun)
{ {

View file

@ -24,8 +24,8 @@ internal class Profile
/// </summary> /// </summary>
/// <param name="manager">The manager this profile belongs to.</param> /// <param name="manager">The manager this profile belongs to.</param>
/// <param name="model">The model this profile is tied to.</param> /// <param name="model">The model this profile is tied to.</param>
/// <param name="isDefaultProfile">Whether or not this profile is the default profile.</param> /// <param name="isDefaultProfile">Whether this profile is the default profile.</param>
/// <param name="isBoot">Whether or not this profile was initialized during bootup.</param> /// <param name="isBoot">Whether this profile was initialized during bootup.</param>
public Profile(ProfileManager manager, ProfileModel model, bool isDefaultProfile, bool isBoot) public Profile(ProfileManager manager, ProfileModel model, bool isDefaultProfile, bool isBoot)
{ {
this.manager = manager; this.manager = manager;
@ -108,12 +108,12 @@ internal class Profile
public Guid Guid => this.modelV1.Guid; public Guid Guid => this.modelV1.Guid;
/// <summary> /// <summary>
/// Gets a value indicating whether or not this profile is currently enabled. /// Gets a value indicating whether this profile is currently enabled.
/// </summary> /// </summary>
public bool IsEnabled { get; private set; } public bool IsEnabled { get; private set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this profile is the default profile. /// Gets a value indicating whether this profile is the default profile.
/// </summary> /// </summary>
public bool IsDefaultProfile { get; } public bool IsDefaultProfile { get; }
@ -139,8 +139,8 @@ internal class Profile
/// Set this profile's state. This cannot be called for the default profile. /// Set this profile's state. This cannot be called for the default profile.
/// This will block until all states have been applied. /// This will block until all states have been applied.
/// </summary> /// </summary>
/// <param name="enabled">Whether or not the profile is enabled.</param> /// <param name="enabled">Whether the profile is enabled.</param>
/// <param name="apply">Whether or not the current state should immediately be applied.</param> /// <param name="apply">Whether the current state should immediately be applied.</param>
/// <exception cref="InvalidOperationException">Thrown when an untoggleable profile is toggled.</exception> /// <exception cref="InvalidOperationException">Thrown when an untoggleable profile is toggled.</exception>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public async Task SetStateAsync(bool enabled, bool apply = true) public async Task SetStateAsync(bool enabled, bool apply = true)
@ -178,8 +178,8 @@ internal class Profile
/// </summary> /// </summary>
/// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param>
/// <param name="internalName">The internal name of the plugin, if available.</param> /// <param name="internalName">The internal name of the plugin, if available.</param>
/// <param name="state">Whether or not the plugin should be enabled.</param> /// <param name="state">Whether the plugin should be enabled.</param>
/// <param name="apply">Whether or not the current state should immediately be applied.</param> /// <param name="apply">Whether the current state should immediately be applied.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public async Task AddOrUpdateAsync(Guid workingPluginId, string? internalName, bool state, bool apply = true) public async Task AddOrUpdateAsync(Guid workingPluginId, string? internalName, bool state, bool apply = true)
{ {
@ -223,9 +223,9 @@ internal class Profile
/// This will block until all states have been applied. /// This will block until all states have been applied.
/// </summary> /// </summary>
/// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param>
/// <param name="apply">Whether or not the current state should immediately be applied.</param> /// <param name="apply">Whether the current state should immediately be applied.</param>
/// <param name="checkDefault"> /// <param name="checkDefault">
/// Whether or not to throw when a plugin is removed from the default profile, without being in another profile. /// Whether to throw when a plugin is removed from the default profile, without being in another profile.
/// Used to prevent orphan plugins, but can be ignored when cleaning up old entries. /// Used to prevent orphan plugins, but can be ignored when cleaning up old entries.
/// </param> /// </param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>

View file

@ -54,7 +54,7 @@ internal class ProfileManager : IServiceType
public IEnumerable<Profile> Profiles => this.profiles; public IEnumerable<Profile> Profiles => this.profiles;
/// <summary> /// <summary>
/// Gets a value indicating whether or not the profile manager is busy enabling/disabling plugins. /// Gets a value indicating whether the profile manager is busy enabling/disabling plugins.
/// </summary> /// </summary>
public bool IsBusy => this.isBusy; public bool IsBusy => this.isBusy;
@ -71,8 +71,8 @@ internal class ProfileManager : IServiceType
/// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param>
/// <param name="internalName">The internal name of the plugin, if available.</param> /// <param name="internalName">The internal name of the plugin, if available.</param>
/// <param name="defaultState">The state the plugin shall be in, if it needs to be added.</param> /// <param name="defaultState">The state the plugin shall be in, if it needs to be added.</param>
/// <param name="addIfNotDeclared">Whether or not the plugin should be added to the default preset, if it's not present in any preset.</param> /// <param name="addIfNotDeclared">Whether the plugin should be added to the default preset, if it's not present in any preset.</param>
/// <returns>Whether or not the plugin shall be enabled.</returns> /// <returns>Whether the plugin shall be enabled.</returns>
public async Task<bool> GetWantStateAsync(Guid workingPluginId, string? internalName, bool defaultState, bool addIfNotDeclared = true) public async Task<bool> GetWantStateAsync(Guid workingPluginId, string? internalName, bool defaultState, bool addIfNotDeclared = true)
{ {
var want = false; var want = false;
@ -106,7 +106,7 @@ internal class ProfileManager : IServiceType
/// Check whether a plugin is declared in any profile. /// Check whether a plugin is declared in any profile.
/// </summary> /// </summary>
/// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param>
/// <returns>Whether or not the plugin is in any profile.</returns> /// <returns>Whether the plugin is in any profile.</returns>
public bool IsInAnyProfile(Guid workingPluginId) public bool IsInAnyProfile(Guid workingPluginId)
{ {
lock (this.profiles) lock (this.profiles)
@ -118,7 +118,7 @@ internal class ProfileManager : IServiceType
/// A plugin can never be in the default profile if it is in any other profile. /// A plugin can never be in the default profile if it is in any other profile.
/// </summary> /// </summary>
/// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param>
/// <returns>Whether or not the plugin is in the default profile.</returns> /// <returns>Whether the plugin is in the default profile.</returns>
public bool IsInDefaultProfile(Guid workingPluginId) public bool IsInDefaultProfile(Guid workingPluginId)
=> this.DefaultProfile.WantsPlugin(workingPluginId) != null; => this.DefaultProfile.WantsPlugin(workingPluginId) != null;

View file

@ -36,7 +36,7 @@ public class ProfileModelV1 : ProfileModel
public static string SerializedPrefix => "DP1"; public static string SerializedPrefix => "DP1";
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this profile should always be enabled at boot. /// Gets or sets a value indicating whether this profile should always be enabled at boot.
/// </summary> /// </summary>
[JsonProperty("b")] [JsonProperty("b")]
[Obsolete("Superseded by StartupPolicy")] [Obsolete("Superseded by StartupPolicy")]
@ -49,7 +49,7 @@ public class ProfileModelV1 : ProfileModel
public ProfileStartupPolicy? StartupPolicy { get; set; } public ProfileStartupPolicy? StartupPolicy { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this profile is currently enabled. /// Gets or sets a value indicating whether this profile is currently enabled.
/// </summary> /// </summary>
[JsonProperty("e")] [JsonProperty("e")]
public bool IsEnabled { get; set; } = false; public bool IsEnabled { get; set; } = false;
@ -81,7 +81,7 @@ public class ProfileModelV1 : ProfileModel
public Guid WorkingPluginId { get; set; } public Guid WorkingPluginId { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not this entry is enabled. /// Gets or sets a value indicating whether this entry is enabled.
/// </summary> /// </summary>
public bool IsEnabled { get; set; } public bool IsEnabled { get; set; }
} }

View file

@ -10,7 +10,7 @@ internal class ProfilePluginEntry
/// </summary> /// </summary>
/// <param name="internalName">The internal name of the plugin.</param> /// <param name="internalName">The internal name of the plugin.</param>
/// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param>
/// <param name="state">A value indicating whether or not this entry is enabled.</param> /// <param name="state">A value indicating whether this entry is enabled.</param>
public ProfilePluginEntry(string internalName, Guid workingPluginId, bool state) public ProfilePluginEntry(string internalName, Guid workingPluginId, bool state)
{ {
this.InternalName = internalName; this.InternalName = internalName;
@ -29,7 +29,7 @@ internal class ProfilePluginEntry
public Guid WorkingPluginId { get; set; } public Guid WorkingPluginId { get; set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this entry is enabled. /// Gets a value indicating whether this entry is enabled.
/// </summary> /// </summary>
public bool IsEnabled { get; } public bool IsEnabled { get; }
} }

View file

@ -178,13 +178,13 @@ internal class LocalPlugin : IAsyncDisposable
public bool IsTesting => this.manifest.IsTestingExclusive || this.manifest.Testing; public bool IsTesting => this.manifest.IsTestingExclusive || this.manifest.Testing;
/// <summary> /// <summary>
/// Gets a value indicating whether or not this plugin is orphaned(belongs to a repo) or not. /// Gets a value indicating whether this plugin is orphaned(belongs to a repo) or not.
/// </summary> /// </summary>
public bool IsOrphaned => !this.IsDev && public bool IsOrphaned => !this.IsDev &&
this.GetSourceRepository() == null; this.GetSourceRepository() == null;
/// <summary> /// <summary>
/// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does). /// Gets a value indicating whether this plugin is serviced(repo still exists, but plugin no longer does).
/// </summary> /// </summary>
public bool IsDecommissioned => !this.IsDev && public bool IsDecommissioned => !this.IsDev &&
this.GetSourceRepository()?.State == PluginRepositoryState.Success && this.GetSourceRepository()?.State == PluginRepositoryState.Success &&
@ -499,7 +499,7 @@ internal class LocalPlugin : IAsyncDisposable
/// <summary> /// <summary>
/// Check if anything forbids this plugin from loading. /// Check if anything forbids this plugin from loading.
/// </summary> /// </summary>
/// <returns>Whether or not this plugin shouldn't load.</returns> /// <returns>Whether this plugin shouldn't load.</returns>
public bool CheckPolicy() public bool CheckPolicy()
{ {
var startInfo = Service<Dalamud>.Get().StartInfo; var startInfo = Service<Dalamud>.Get().StartInfo;

View file

@ -42,7 +42,7 @@ internal record PluginManifest : IPluginManifest
public List<string>? CategoryTags { get; init; } public List<string>? CategoryTags { get; init; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the plugin is hidden in the plugin installer. /// Gets or sets a value indicating whether the plugin is hidden in the plugin installer.
/// This value comes from the plugin master and is in addition to the list of hidden names kept by Dalamud. /// This value comes from the plugin master and is in addition to the list of hidden names kept by Dalamud.
/// </summary> /// </summary>
[JsonProperty] [JsonProperty]

View file

@ -101,12 +101,12 @@ public interface IClientState
public bool IsLoggedIn { get; } public bool IsLoggedIn { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the user is playing PvP. /// Gets a value indicating whether the user is playing PvP.
/// </summary> /// </summary>
public bool IsPvP { get; } public bool IsPvP { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the user is playing PvP, excluding the Wolves' Den. /// Gets a value indicating whether the user is playing PvP, excluding the Wolves' Den.
/// </summary> /// </summary>
public bool IsPvPExcludingDen { get; } public bool IsPvPExcludingDen { get; }

View file

@ -10,12 +10,12 @@ namespace Dalamud.Game;
public interface ISigScanner public interface ISigScanner
{ {
/// <summary> /// <summary>
/// Gets a value indicating whether or not the search on this module is performed on a copy. /// Gets a value indicating whether the search on this module is performed on a copy.
/// </summary> /// </summary>
public bool IsCopy { get; } public bool IsCopy { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the ProcessModule is 32-bit. /// Gets a value indicating whether the ProcessModule is 32-bit.
/// </summary> /// </summary>
public bool Is32BitProcess { get; } public bool Is32BitProcess { get; }

View file

@ -200,7 +200,7 @@ public interface ITextureProvider
/// </remarks> /// </remarks>
/// <param name="lookup">A game icon specifier.</param> /// <param name="lookup">A game icon specifier.</param>
/// <param name="texture">The resulting <see cref="ISharedImmediateTexture"/>.</param> /// <param name="texture">The resulting <see cref="ISharedImmediateTexture"/>.</param>
/// <returns>Whether or not the lookup succeeded.</returns> /// <returns>Whether the lookup succeeded.</returns>
bool TryGetFromGameIcon(in GameIconLookup lookup, [NotNullWhen(true)] out ISharedImmediateTexture? texture); bool TryGetFromGameIcon(in GameIconLookup lookup, [NotNullWhen(true)] out ISharedImmediateTexture? texture);
/// <summary>Gets a shared texture corresponding to the given path to a game resource.</summary> /// <summary>Gets a shared texture corresponding to the given path to a game resource.</summary>

View file

@ -25,7 +25,7 @@ public static class SafeMemory
/// <param name="address">The address to read from.</param> /// <param name="address">The address to read from.</param>
/// <param name="count">The amount of bytes to read.</param> /// <param name="count">The amount of bytes to read.</param>
/// <param name="buffer">The result buffer.</param> /// <param name="buffer">The result buffer.</param>
/// <returns>Whether or not the read succeeded.</returns> /// <returns>Whether the read succeeded.</returns>
public static bool ReadBytes(IntPtr address, int count, out byte[] buffer) public static bool ReadBytes(IntPtr address, int count, out byte[] buffer)
{ {
buffer = new byte[count <= 0 ? 0 : count]; buffer = new byte[count <= 0 ? 0 : count];
@ -37,7 +37,7 @@ public static class SafeMemory
/// </summary> /// </summary>
/// <param name="address">The address to write to.</param> /// <param name="address">The address to write to.</param>
/// <param name="buffer">The buffer to write.</param> /// <param name="buffer">The buffer to write.</param>
/// <returns>Whether or not the write succeeded.</returns> /// <returns>Whether the write succeeded.</returns>
public static bool WriteBytes(IntPtr address, byte[] buffer) public static bool WriteBytes(IntPtr address, byte[] buffer)
{ {
return Imports.WriteProcessMemory(Handle, address, buffer, buffer.Length, out _); return Imports.WriteProcessMemory(Handle, address, buffer, buffer.Length, out _);
@ -49,7 +49,7 @@ public static class SafeMemory
/// <typeparam name="T">The type of the struct.</typeparam> /// <typeparam name="T">The type of the struct.</typeparam>
/// <param name="address">The address to read from.</param> /// <param name="address">The address to read from.</param>
/// <param name="result">The resulting object.</param> /// <param name="result">The resulting object.</param>
/// <returns>Whether or not the read succeeded.</returns> /// <returns>Whether the read succeeded.</returns>
public static bool Read<T>(IntPtr address, out T result) where T : struct public static bool Read<T>(IntPtr address, out T result) where T : struct
{ {
if (!ReadBytes(address, SizeCache<T>.Size, out var buffer)) if (!ReadBytes(address, SizeCache<T>.Size, out var buffer))
@ -91,7 +91,7 @@ public static class SafeMemory
/// <typeparam name="T">The type of the struct.</typeparam> /// <typeparam name="T">The type of the struct.</typeparam>
/// <param name="address">The address to write to.</param> /// <param name="address">The address to write to.</param>
/// <param name="obj">The object to write.</param> /// <param name="obj">The object to write.</param>
/// <returns>Whether or not the write succeeded.</returns> /// <returns>Whether the write succeeded.</returns>
public static bool Write<T>(IntPtr address, T obj) where T : struct public static bool Write<T>(IntPtr address, T obj) where T : struct
{ {
using var mem = new LocalMemory(SizeCache<T>.Size); using var mem = new LocalMemory(SizeCache<T>.Size);
@ -105,7 +105,7 @@ public static class SafeMemory
/// <typeparam name="T">The type of the structs.</typeparam> /// <typeparam name="T">The type of the structs.</typeparam>
/// <param name="address">The address to write to.</param> /// <param name="address">The address to write to.</param>
/// <param name="objArray">The array to write.</param> /// <param name="objArray">The array to write.</param>
/// <returns>Whether or not the write succeeded.</returns> /// <returns>Whether the write succeeded.</returns>
public static bool Write<T>(IntPtr address, T[] objArray) where T : struct public static bool Write<T>(IntPtr address, T[] objArray) where T : struct
{ {
if (objArray == null || objArray.Length == 0) if (objArray == null || objArray.Length == 0)
@ -164,7 +164,7 @@ public static class SafeMemory
/// </remarks> /// </remarks>
/// <param name="address">The address to write to.</param> /// <param name="address">The address to write to.</param>
/// <param name="str">The string to write.</param> /// <param name="str">The string to write.</param>
/// <returns>Whether or not the write succeeded.</returns> /// <returns>Whether the write succeeded.</returns>
public static bool WriteString(IntPtr address, string str) public static bool WriteString(IntPtr address, string str)
{ {
return WriteString(address, str, Encoding.UTF8); return WriteString(address, str, Encoding.UTF8);
@ -181,7 +181,7 @@ public static class SafeMemory
/// <param name="address">The address to write to.</param> /// <param name="address">The address to write to.</param>
/// <param name="str">The string to write.</param> /// <param name="str">The string to write.</param>
/// <param name="encoding">The encoding to use.</param> /// <param name="encoding">The encoding to use.</param>
/// <returns>Whether or not the write succeeded.</returns> /// <returns>Whether the write succeeded.</returns>
public static bool WriteString(IntPtr address, string str, Encoding encoding) public static bool WriteString(IntPtr address, string str, Encoding encoding)
{ {
if (string.IsNullOrEmpty(str)) if (string.IsNullOrEmpty(str))

View file

@ -157,7 +157,7 @@ internal class ReliableFileStorage : IInternalDisposableService
/// automatically written back to disk, however. /// automatically written back to disk, however.
/// </summary> /// </summary>
/// <param name="path">The path to read from.</param> /// <param name="path">The path to read from.</param>
/// <param name="forceBackup">Whether or not the backup of the file should take priority.</param> /// <param name="forceBackup">Whether the backup of the file should take priority.</param>
/// <param name="containerId">The container to read from.</param> /// <param name="containerId">The container to read from.</param>
/// <returns>All text stored in this file.</returns> /// <returns>All text stored in this file.</returns>
/// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception>
@ -171,7 +171,7 @@ internal class ReliableFileStorage : IInternalDisposableService
/// </summary> /// </summary>
/// <param name="path">The path to read from.</param> /// <param name="path">The path to read from.</param>
/// <param name="encoding">The encoding to read with.</param> /// <param name="encoding">The encoding to read with.</param>
/// <param name="forceBackup">Whether or not the backup of the file should take priority.</param> /// <param name="forceBackup">Whether the backup of the file should take priority.</param>
/// <param name="containerId">The container to read from.</param> /// <param name="containerId">The container to read from.</param>
/// <returns>All text stored in this file.</returns> /// <returns>All text stored in this file.</returns>
/// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception>
@ -249,7 +249,7 @@ internal class ReliableFileStorage : IInternalDisposableService
/// automatically written back to disk, however. /// automatically written back to disk, however.
/// </summary> /// </summary>
/// <param name="path">The path to read from.</param> /// <param name="path">The path to read from.</param>
/// <param name="forceBackup">Whether or not the backup of the file should take priority.</param> /// <param name="forceBackup">Whether the backup of the file should take priority.</param>
/// <param name="containerId">The container to read from.</param> /// <param name="containerId">The container to read from.</param>
/// <returns>All bytes stored in this file.</returns> /// <returns>All bytes stored in this file.</returns>
/// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception>

View file

@ -20,10 +20,10 @@ internal static class BugBait
/// Send feedback to Discord. /// Send feedback to Discord.
/// </summary> /// </summary>
/// <param name="plugin">The plugin to send feedback about.</param> /// <param name="plugin">The plugin to send feedback about.</param>
/// <param name="isTesting">Whether or not the plugin is a testing plugin.</param> /// <param name="isTesting">Whether the plugin is a testing plugin.</param>
/// <param name="content">The content of the feedback.</param> /// <param name="content">The content of the feedback.</param>
/// <param name="reporter">The reporter name.</param> /// <param name="reporter">The reporter name.</param>
/// <param name="includeException">Whether or not the most recent exception to occur should be included in the report.</param> /// <param name="includeException">Whether the most recent exception to occur should be included in the report.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public static async Task SendFeedback(IPluginManifest plugin, bool isTesting, string content, string reporter, bool includeException) public static async Task SendFeedback(IPluginManifest plugin, bool isTesting, string content, string reporter, bool includeException)
{ {

View file

@ -14,21 +14,21 @@ internal static class NullabilityUtil
/// Check if the provided property is nullable. /// Check if the provided property is nullable.
/// </summary> /// </summary>
/// <param name="property">The property to check.</param> /// <param name="property">The property to check.</param>
/// <returns>Whether or not the property is nullable.</returns> /// <returns>Whether the property is nullable.</returns>
internal static bool IsNullable(PropertyInfo property) => IsNullableHelper(property.PropertyType, property.DeclaringType, property.CustomAttributes); internal static bool IsNullable(PropertyInfo property) => IsNullableHelper(property.PropertyType, property.DeclaringType, property.CustomAttributes);
/// <summary> /// <summary>
/// Check if the provided field is nullable. /// Check if the provided field is nullable.
/// </summary> /// </summary>
/// <param name="field">The field to check.</param> /// <param name="field">The field to check.</param>
/// <returns>Whether or not the field is nullable.</returns> /// <returns>Whether the field is nullable.</returns>
internal static bool IsNullable(FieldInfo field) => IsNullableHelper(field.FieldType, field.DeclaringType, field.CustomAttributes); internal static bool IsNullable(FieldInfo field) => IsNullableHelper(field.FieldType, field.DeclaringType, field.CustomAttributes);
/// <summary> /// <summary>
/// Check if the provided parameter is nullable. /// Check if the provided parameter is nullable.
/// </summary> /// </summary>
/// <param name="parameter">The parameter to check.</param> /// <param name="parameter">The parameter to check.</param>
/// <returns>Whether or not the parameter is nullable.</returns> /// <returns>Whether the parameter is nullable.</returns>
internal static bool IsNullable(ParameterInfo parameter) => IsNullableHelper(parameter.ParameterType, parameter.Member, parameter.CustomAttributes); internal static bool IsNullable(ParameterInfo parameter) => IsNullableHelper(parameter.ParameterType, parameter.Member, parameter.CustomAttributes);
private static bool IsNullableHelper(Type memberType, MemberInfo? declaringType, IEnumerable<CustomAttributeData> customAttributes) private static bool IsNullableHelper(Type memberType, MemberInfo? declaringType, IEnumerable<CustomAttributeData> customAttributes)

View file

@ -16,7 +16,7 @@ internal interface IFieldOrPropertyInfo
Type ActualType { get; } Type ActualType { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not the field or property is nullable. /// Gets a value indicating whether the field or property is nullable.
/// </summary> /// </summary>
bool IsNullable { get; } bool IsNullable { get; }

View file

@ -67,7 +67,7 @@ public sealed class TimingHandle : TimingEvent, IDisposable, IComparable<TimingH
public TimingHandle? Parent { get; private set; } public TimingHandle? Parent { get; private set; }
/// <summary> /// <summary>
/// Gets a value indicating whether or not this timing was started on the main thread. /// Gets a value indicating whether this timing was started on the main thread.
/// </summary> /// </summary>
public bool IsMainThread { get; private set; } public bool IsMainThread { get; private set; }

View file

@ -308,7 +308,7 @@ public static class Util
/// </summary> /// </summary>
/// <param name="obj">The structure to show.</param> /// <param name="obj">The structure to show.</param>
/// <param name="addr">The address to the structure.</param> /// <param name="addr">The address to the structure.</param>
/// <param name="autoExpand">Whether or not this structure should start out expanded.</param> /// <param name="autoExpand">Whether this structure should start out expanded.</param>
/// <param name="path">The already followed path.</param> /// <param name="path">The already followed path.</param>
public static void ShowStruct(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null) public static void ShowStruct(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null)
=> ShowStructInternal(obj, addr, autoExpand, path); => ShowStructInternal(obj, addr, autoExpand, path);
@ -318,7 +318,7 @@ public static class Util
/// </summary> /// </summary>
/// <typeparam name="T">The type of the structure.</typeparam> /// <typeparam name="T">The type of the structure.</typeparam>
/// <param name="obj">The pointer to the structure.</param> /// <param name="obj">The pointer to the structure.</param>
/// <param name="autoExpand">Whether or not this structure should start out expanded.</param> /// <param name="autoExpand">Whether this structure should start out expanded.</param>
public static unsafe void ShowStruct<T>(T* obj, bool autoExpand = false) where T : unmanaged public static unsafe void ShowStruct<T>(T* obj, bool autoExpand = false) where T : unmanaged
{ {
ShowStruct(*obj, (ulong)&obj, autoExpand); ShowStruct(*obj, (ulong)&obj, autoExpand);
@ -328,7 +328,7 @@ public static class Util
/// Show a GameObject's internal data in an ImGui-context. /// Show a GameObject's internal data in an ImGui-context.
/// </summary> /// </summary>
/// <param name="go">The GameObject to show.</param> /// <param name="go">The GameObject to show.</param>
/// <param name="autoExpand">Whether or not the struct should start as expanded.</param> /// <param name="autoExpand">Whether the struct should start as expanded.</param>
public static unsafe void ShowGameObjectStruct(IGameObject go, bool autoExpand = true) public static unsafe void ShowGameObjectStruct(IGameObject go, bool autoExpand = true)
{ {
switch (go) switch (go)
@ -1031,7 +1031,7 @@ public static class Util
/// </summary> /// </summary>
/// <param name="obj">The structure to show.</param> /// <param name="obj">The structure to show.</param>
/// <param name="addr">The address to the structure.</param> /// <param name="addr">The address to the structure.</param>
/// <param name="autoExpand">Whether or not this structure should start out expanded.</param> /// <param name="autoExpand">Whether this structure should start out expanded.</param>
/// <param name="path">The already followed path.</param> /// <param name="path">The already followed path.</param>
/// <param name="hideAddress">Do not print addresses. Use when displaying a copied value.</param> /// <param name="hideAddress">Do not print addresses. Use when displaying a copied value.</param>
private static void ShowStructInternal(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null, bool hideAddress = false) private static void ShowStructInternal(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null, bool hideAddress = false)

View file

@ -360,7 +360,7 @@ MINIZ_EXPORT mz_ulong mz_compressBound(mz_ulong source_len);
/* Initializes a decompressor. */ /* Initializes a decompressor. */
MINIZ_EXPORT int mz_inflateInit(mz_streamp pStream); MINIZ_EXPORT int mz_inflateInit(mz_streamp pStream);
/* mz_inflateInit2() is like mz_inflateInit() with an additional option that controls the window size and whether or not the stream has been wrapped with a zlib header/footer: */ /* mz_inflateInit2() is like mz_inflateInit() with an additional option that controls the window size and whether the stream has been wrapped with a zlib header/footer: */
/* window_bits must be MZ_DEFAULT_WINDOW_BITS (to parse zlib header/footer) or -MZ_DEFAULT_WINDOW_BITS (raw deflate). */ /* window_bits must be MZ_DEFAULT_WINDOW_BITS (to parse zlib header/footer) or -MZ_DEFAULT_WINDOW_BITS (raw deflate). */
MINIZ_EXPORT int mz_inflateInit2(mz_streamp pStream, int window_bits); MINIZ_EXPORT int mz_inflateInit2(mz_streamp pStream, int window_bits);