Fix ~3500 analyser issues

See merge request ryubing/ryujinx!44
This commit is contained in:
MrKev
2025-05-30 17:08:34 -05:00
committed by LotP
parent 417df486b1
commit 361d0c5632
622 changed files with 3080 additions and 2652 deletions

View File

@@ -1,11 +1,12 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Ryujinx.Horizon.Common
{
static class ResultNames
{
// Reference: https://github.com/Thealexbarney/LibHac/blob/master/build/CodeGen/results.csv
private static readonly IReadOnlyDictionary<int, string> _names = new Dictionary<int, string>()
private static readonly ReadOnlyDictionary<int, string> _names = new Dictionary<int, string>()
{
{ 0x0, "Success" },
{ 0xE01, "OutOfSessions" },
@@ -1691,7 +1692,7 @@ namespace Ryujinx.Horizon.Common
{ 0x823AC, "InvalidPackage1SectionSize" },
{ 0x825AC, "InvalidPackage1MarikoBodySize" },
{ 0x827AC, "InvalidPackage1Pk11Size" },
};
}.AsReadOnly();
public static bool TryGet(int errorCode, out string name)
{