From 030d9f768fdd110cd3d00b086310153e4c142cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Hamil?= Date: Sat, 21 Jun 2025 12:59:45 +0300 Subject: [PATCH] Replace System.Diagnostics.Debug.WriteLine with Ryujinx logger --- src/Ryujinx.Graphics.Gpu/Overlay/ImageElement.cs | 3 ++- src/Ryujinx.Graphics.Gpu/Window.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Gpu/Overlay/ImageElement.cs b/src/Ryujinx.Graphics.Gpu/Overlay/ImageElement.cs index 849a1e5af..2f2fb0811 100644 --- a/src/Ryujinx.Graphics.Gpu/Overlay/ImageElement.cs +++ b/src/Ryujinx.Graphics.Gpu/Overlay/ImageElement.cs @@ -1,3 +1,4 @@ +using Ryujinx.Common.Logging; using SkiaSharp; using System; @@ -86,7 +87,7 @@ namespace Ryujinx.Graphics.Gpu.Overlay } catch (Exception ex) { - System.Diagnostics.Debug.WriteLine($"Failed to load image: {ex.Message}"); + Logger.Error?.Print(LogClass.Gpu, $"Failed to load image: {ex.Message}"); _bitmap = null; } } diff --git a/src/Ryujinx.Graphics.Gpu/Window.cs b/src/Ryujinx.Graphics.Gpu/Window.cs index 861769610..ad6deb2ee 100644 --- a/src/Ryujinx.Graphics.Gpu/Window.cs +++ b/src/Ryujinx.Graphics.Gpu/Window.cs @@ -1,3 +1,4 @@ +using Ryujinx.Common.Logging; using Ryujinx.Common.Memory; using Ryujinx.Graphics.GAL; using Ryujinx.Graphics.Gpu.Image; @@ -331,7 +332,7 @@ namespace Ryujinx.Graphics.Gpu catch (Exception ex) { // Silently fail if overlay rendering doesn't work - System.Diagnostics.Debug.WriteLine($"Overlay rendering failed: {ex.Message}"); + Logger.Error?.Print(LogClass.Gpu, $"Overlay rendering failed: {ex.Message}"); } }