Merge branch 'master' into master

This commit is contained in:
Vladimir Sokolov 2025-02-09 16:51:11 +10:00 committed by GitHub
commit b9982c02e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,20 +213,20 @@ namespace Ryujinx.Ava.Utilities.PlayReport
switch (Formatter) switch (Formatter)
{ {
case SingleValueFormatter svf when data is MessagePackObject mpo: case SingleValueFormatter svf when data is MessagePackObject match:
formattedValue = svf(new SingleValue(mpo) { Application = appMeta, PlayReport = playReport }); formattedValue = svf(
new SingleValue(match) { Application = appMeta, PlayReport = playReport }
);
return true; return true;
case MultiValueFormatter mvf when data is List<MessagePackObject> messagePackObjects: case MultiValueFormatter mvf when data is List<MessagePackObject> matches:
formattedValue = formattedValue = mvf(
mvf(new MultiValue(messagePackObjects) { Application = appMeta, PlayReport = playReport }); new MultiValue(matches) { Application = appMeta, PlayReport = playReport }
);
return true; return true;
case SparseMultiValueFormatter smvf when case SparseMultiValueFormatter smvf when data is Dictionary<string, MessagePackObject> sparseMatches:
data is Dictionary<string, MessagePackObject> sparseMessagePackObjects: formattedValue = smvf(
formattedValue = new SparseMultiValue(sparseMatches) { Application = appMeta, PlayReport = playReport }
smvf(new SparseMultiValue(sparseMessagePackObjects) );
{
Application = appMeta, PlayReport = playReport
});
return true; return true;
default: default:
throw new InvalidOperationException("Formatter delegate is not of a known type!"); throw new InvalidOperationException("Formatter delegate is not of a known type!");