diff options
| author | SamusAranX <hallo@emmalyx.dev> | 2024-05-15 18:10:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-15 18:10:47 +0200 |
| commit | 091230af222a309584ab35df8379ab3a725cd3c1 (patch) | |
| tree | 6ee36d3f740279c6191b51817c06013160a16412 /src/Ryujinx.UI.Common | |
| parent | 3aea19460635ef9d1652a220e6806130dd6a7355 (diff) | |
Improves some log messages and fixes a typo (#6773)
* Improves some log messages and fixes a typo
* oops
* Update src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Log config file path
---------
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
Diffstat (limited to 'src/Ryujinx.UI.Common')
| -rw-r--r-- | src/Ryujinx.UI.Common/App/ApplicationData.cs | 2 | ||||
| -rw-r--r-- | src/Ryujinx.UI.Common/App/ApplicationLibrary.cs | 2 | ||||
| -rw-r--r-- | src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/Ryujinx.UI.Common/App/ApplicationData.cs b/src/Ryujinx.UI.Common/App/ApplicationData.cs index 8cc7238e..13c05655 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationData.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationData.cs @@ -45,7 +45,7 @@ namespace Ryujinx.UI.App.Common if (!System.IO.Path.Exists(titleFilePath)) { - Logger.Error?.Print(LogClass.Application, $"File does not exists. {titleFilePath}"); + Logger.Error?.Print(LogClass.Application, $"File \"{titleFilePath}\" does not exist."); return string.Empty; } diff --git a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs index 65cf7a9e..82783e63 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs @@ -106,7 +106,7 @@ namespace Ryujinx.UI.App.Common if (!Directory.Exists(appDir)) { - Logger.Warning?.Print(LogClass.Application, $"The \"game_dirs\" section in \"{ReleaseInformation.ConfigName}\" contains an invalid directory: \"{appDir}\""); + Logger.Warning?.Print(LogClass.Application, $"The specified game directory \"{appDir}\" does not exist."); continue; } diff --git a/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs b/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs index 01c60a5e..8420dc5d 100644 --- a/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs +++ b/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs @@ -11,6 +11,7 @@ using Ryujinx.UI.Common.Configuration.UI; using Ryujinx.UI.Common.Helper; using System; using System.Collections.Generic; +using System.Globalization; using System.Text.Json.Nodes; namespace Ryujinx.UI.Common.Configuration @@ -1594,7 +1595,9 @@ namespace Ryujinx.UI.Common.Configuration private static void LogValueChange<T>(ReactiveEventArgs<T> eventArgs, string valueName) { - Ryujinx.Common.Logging.Logger.Info?.Print(LogClass.Configuration, $"{valueName} set to: {eventArgs.NewValue}"); + string message = string.Create(CultureInfo.InvariantCulture, $"{valueName} set to: {eventArgs.NewValue}"); + + Ryujinx.Common.Logging.Logger.Info?.Print(LogClass.Configuration, message); } public static void Initialize() |
