From 0bf7c5dfa2c68377a77672912af41f5535ee64f2 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Mon, 3 Feb 2025 19:23:47 -0600 Subject: [PATCH] misc: chore: [ci skip] AlwaysReturn factory function to go with the AlwaysResets singleton one. --- src/Ryujinx/Utilities/PlayReportAnalyzer.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Ryujinx/Utilities/PlayReportAnalyzer.cs b/src/Ryujinx/Utilities/PlayReportAnalyzer.cs index 8ec57fdde..80bef13bc 100644 --- a/src/Ryujinx/Utilities/PlayReportAnalyzer.cs +++ b/src/Ryujinx/Utilities/PlayReportAnalyzer.cs @@ -176,6 +176,13 @@ namespace Ryujinx.Ava.Utilities /// A delegate singleton you can use to always return in a . /// public static readonly PlayReportValueFormatter AlwaysResets = _ => ForceReset; + + /// + /// A delegate factory you can use to always return the specified + /// in a . + /// The string to always return for this delegate instance. + /// + public static PlayReportValueFormatter AlwaysReturns(string formattedValue) => _ => formattedValue; } }