mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-25 18:35:33 +00:00
Add items to standard logs (#1942)
* Added more items to log * Update MainWindow.cs * Added log when changing settings * fix formating and add log when toggling vsync and docked * Update Ryujinx/Ui/MainWindow.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx/Ui/MainWindow.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx/Ui/Windows/SettingsWindow.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Fix formating * Change Location according to suggestion * Implemented OpenDataStorageWithProgramIndex * Update IFileSystemProxy.cs * Update IFileSystemProxy.cs * Commited that file on accidant * Revert "Merge branch 'master' of https://github.com/Joshi234/Ryujinx" This reverts commit375f430455
, reversing changes made to672e2c8f7d
. * Revert "Update IFileSystemProxy.cs" This reverts commit672e2c8f7d
. * Update IFileSystemProxy.cs * Update ISystemSettingsServer.cs * removed accidantel addition of IFileSystemProxy.OpenDataStorageWithProgramIndex * Fix formating and add missing stub * Update ISystemSettingsServer.cs * Added more items to log * Update MainWindow.cs * Added log when changing settings * fix formating and add log when toggling vsync and docked * Fix formating * Update Ryujinx/Ui/MainWindow.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx/Ui/MainWindow.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx/Ui/Windows/SettingsWindow.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Change Location according to suggestion * Fix Rebase stuff * Change Logger.Notice to Loger.Info * Update ISystemSettingsServer.cs * Update ISystemSettingsServer.cs Co-authored-by: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
parent
db56b2166d
commit
a8c945f35f
|
@ -9,6 +9,7 @@ using Ryujinx.Audio.Output;
|
||||||
using Ryujinx.Audio.Renderer.Device;
|
using Ryujinx.Audio.Renderer.Device;
|
||||||
using Ryujinx.Audio.Renderer.Server;
|
using Ryujinx.Audio.Renderer.Server;
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.Configuration;
|
using Ryujinx.Configuration;
|
||||||
using Ryujinx.HLE.FileSystem.Content;
|
using Ryujinx.HLE.FileSystem.Content;
|
||||||
using Ryujinx.HLE.HOS.Font;
|
using Ryujinx.HLE.HOS.Font;
|
||||||
|
@ -317,6 +318,8 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
// Reconfigure controllers
|
// Reconfigure controllers
|
||||||
Device.Hid.RefreshInputConfig(ConfigurationState.Instance.Hid.InputConfig.Value);
|
Device.Hid.RefreshInputConfig(ConfigurationState.Instance.Hid.InputConfig.Value);
|
||||||
|
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"IsDocked toggled to: {State.DockedMode}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ using LibHac.FsSystem;
|
||||||
using Ryujinx.Audio.Backends.CompatLayer;
|
using Ryujinx.Audio.Backends.CompatLayer;
|
||||||
using Ryujinx.Audio.Integration;
|
using Ryujinx.Audio.Integration;
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.Configuration;
|
using Ryujinx.Configuration;
|
||||||
using Ryujinx.Graphics.GAL;
|
using Ryujinx.Graphics.GAL;
|
||||||
using Ryujinx.Graphics.Gpu;
|
using Ryujinx.Graphics.Gpu;
|
||||||
|
@ -137,6 +138,10 @@ namespace Ryujinx.HLE
|
||||||
// Configure controllers
|
// Configure controllers
|
||||||
Hid.RefreshInputConfig(ConfigurationState.Instance.Hid.InputConfig.Value);
|
Hid.RefreshInputConfig(ConfigurationState.Instance.Hid.InputConfig.Value);
|
||||||
ConfigurationState.Instance.Hid.InputConfig.Event += Hid.RefreshInputConfigEvent;
|
ConfigurationState.Instance.Hid.InputConfig.Event += Hid.RefreshInputConfigEvent;
|
||||||
|
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"AudioBackend: {ConfigurationState.Instance.System.AudioBackend.Value}");
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"IsDocked: {ConfigurationState.Instance.System.EnableDockedMode.Value}");
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"Vsync: {ConfigurationState.Instance.Graphics.EnableVsync.Value}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IntegrityCheckLevel GetIntegrityCheckLevel()
|
public static IntegrityCheckLevel GetIntegrityCheckLevel()
|
||||||
|
|
|
@ -8,6 +8,7 @@ using OpenTK.Input;
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
using Ryujinx.Common.Configuration;
|
using Ryujinx.Common.Configuration;
|
||||||
using Ryujinx.Common.Configuration.Hid;
|
using Ryujinx.Common.Configuration.Hid;
|
||||||
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.Configuration;
|
using Ryujinx.Configuration;
|
||||||
using Ryujinx.Graphics.OpenGL;
|
using Ryujinx.Graphics.OpenGL;
|
||||||
using Ryujinx.HLE.HOS.Services.Hid;
|
using Ryujinx.HLE.HOS.Services.Hid;
|
||||||
|
@ -668,6 +669,8 @@ namespace Ryujinx.Ui
|
||||||
!_prevHotkeyButtons.HasFlag(HotkeyButtons.ToggleVSync))
|
!_prevHotkeyButtons.HasFlag(HotkeyButtons.ToggleVSync))
|
||||||
{
|
{
|
||||||
_device.EnableDeviceVsync = !_device.EnableDeviceVsync;
|
_device.EnableDeviceVsync = !_device.EnableDeviceVsync;
|
||||||
|
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"Vsync toggled to: {_device.EnableDeviceVsync}");
|
||||||
}
|
}
|
||||||
|
|
||||||
_prevHotkeyButtons = currentHotkeyButtons;
|
_prevHotkeyButtons = currentHotkeyButtons;
|
||||||
|
|
|
@ -900,6 +900,8 @@ namespace Ryujinx.Ui
|
||||||
private void VSyncStatus_Clicked(object sender, ButtonReleaseEventArgs args)
|
private void VSyncStatus_Clicked(object sender, ButtonReleaseEventArgs args)
|
||||||
{
|
{
|
||||||
_emulationContext.EnableDeviceVsync = !_emulationContext.EnableDeviceVsync;
|
_emulationContext.EnableDeviceVsync = !_emulationContext.EnableDeviceVsync;
|
||||||
|
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"VSync toggled to: {_emulationContext.EnableDeviceVsync}");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DockedMode_Clicked(object sender, ButtonReleaseEventArgs args)
|
private void DockedMode_Clicked(object sender, ButtonReleaseEventArgs args)
|
||||||
|
|
|
@ -4,6 +4,7 @@ using Ryujinx.Audio.Backends.OpenAL;
|
||||||
using Ryujinx.Audio.Backends.SoundIo;
|
using Ryujinx.Audio.Backends.SoundIo;
|
||||||
using Ryujinx.Common.Configuration;
|
using Ryujinx.Common.Configuration;
|
||||||
using Ryujinx.Common.Configuration.Hid;
|
using Ryujinx.Common.Configuration.Hid;
|
||||||
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.Configuration;
|
using Ryujinx.Configuration;
|
||||||
using Ryujinx.Configuration.System;
|
using Ryujinx.Configuration.System;
|
||||||
using Ryujinx.HLE.FileSystem;
|
using Ryujinx.HLE.FileSystem;
|
||||||
|
@ -433,7 +434,13 @@ namespace Ryujinx.Ui.Windows
|
||||||
|
|
||||||
if (_audioBackendSelect.GetActiveIter(out TreeIter activeIter))
|
if (_audioBackendSelect.GetActiveIter(out TreeIter activeIter))
|
||||||
{
|
{
|
||||||
ConfigurationState.Instance.System.AudioBackend.Value = (AudioBackend)_audioBackendStore.GetValue(activeIter, 1);
|
AudioBackend audioBackend = (AudioBackend)_audioBackendStore.GetValue(activeIter, 1);
|
||||||
|
if (audioBackend != ConfigurationState.Instance.System.AudioBackend.Value)
|
||||||
|
{
|
||||||
|
ConfigurationState.Instance.System.AudioBackend.Value = audioBackend;
|
||||||
|
|
||||||
|
Logger.Info?.Print(LogClass.Application, $"AudioBackend toggled to: {audioBackend}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigurationState.Instance.ToFileFormat().SaveConfig(Program.ConfigurationPath);
|
ConfigurationState.Instance.ToFileFormat().SaveConfig(Program.ConfigurationPath);
|
||||||
|
|
Loading…
Reference in a new issue