From a5429fab12dc4154972c10d4746416150a1c66af Mon Sep 17 00:00:00 2001 From: Raymond Date: Mon, 16 Aug 2021 08:58:03 -0400 Subject: [PATCH] Add getter/init props to DalamudStartInfo, change to record type --- Dalamud/DalamudStartInfo.cs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Dalamud/DalamudStartInfo.cs b/Dalamud/DalamudStartInfo.cs index 7678cfb40..b04e5d3cb 100644 --- a/Dalamud/DalamudStartInfo.cs +++ b/Dalamud/DalamudStartInfo.cs @@ -9,47 +9,47 @@ namespace Dalamud /// Struct containing information needed to initialize Dalamud. /// [Serializable] - public struct DalamudStartInfo + public record DalamudStartInfo { /// - /// The working directory of the XIVLauncher installations. + /// Gets the working directory of the XIVLauncher installations. /// - public string WorkingDirectory; + public string WorkingDirectory { get; init; } /// - /// The path to the configuration file. + /// Gets the path to the configuration file. /// - public string ConfigurationPath; + public string ConfigurationPath { get; init; } /// - /// The path to the directory for installed plugins. + /// Gets the path to the directory for installed plugins. /// - public string PluginDirectory; + public string PluginDirectory { get; init; } /// - /// The path to the directory for developer plugins. + /// Gets the path to the directory for developer plugins. /// - public string DefaultPluginDirectory; + public string DefaultPluginDirectory { get; init; } /// - /// The path to core Dalamud assets. + /// Gets the path to core Dalamud assets. /// - public string AssetDirectory; + public string AssetDirectory { get; init; } /// - /// The language of the game client. + /// Gets the language of the game client. /// - public ClientLanguage Language; + public ClientLanguage Language { get; init; } /// - /// The current game version code. + /// Gets the current game version code. /// [JsonConverter(typeof(GameVersionConverter))] - public GameVersion GameVersion; + public GameVersion GameVersion { get; init; } /// - /// Whether or not market board information should be uploaded by default. + /// Gets a value indicating whether or not market board information should be uploaded by default. /// - public bool OptOutMbCollection; + public bool OptOutMbCollection { get; init; } } }