mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-02-23 21:54:37 +01:00
misc: chore: [ci skip] AlwaysReturn factory function to go with the AlwaysResets singleton one.
This commit is contained in:
parent
11bc32d98e
commit
0bf7c5dfa2
@ -176,6 +176,13 @@ namespace Ryujinx.Ava.Utilities
|
|||||||
/// A delegate singleton you can use to always return <see cref="ForceReset"/> in a <see cref="PlayReportValueFormatter"/>.
|
/// A delegate singleton you can use to always return <see cref="ForceReset"/> in a <see cref="PlayReportValueFormatter"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly PlayReportValueFormatter AlwaysResets = _ => ForceReset;
|
public static readonly PlayReportValueFormatter AlwaysResets = _ => ForceReset;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A delegate factory you can use to always return the specified
|
||||||
|
/// <paramref name="formattedValue"/> in a <see cref="PlayReportValueFormatter"/>.
|
||||||
|
/// <param name="formattedValue">The string to always return for this delegate instance.</param>
|
||||||
|
/// </summary>
|
||||||
|
public static PlayReportValueFormatter AlwaysReturns(string formattedValue) => _ => formattedValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user