misc: improve unpacking error & add nullability to SelectedIcon

This commit is contained in:
Evan Husted 2025-01-03 02:36:31 -06:00
parent e956864697
commit 9bb50fc6dd
4 changed files with 8 additions and 12 deletions

View file

@ -25,7 +25,7 @@ namespace Ryujinx.Common.Configuration
{
var unpackedFields = packedHack.UnpackBitFields(PackedFormat);
if (unpackedFields is not [var hack, var value])
throw new ArgumentException(nameof(packedHack));
throw new Exception("The unpack operation on the integer resulted in an invalid unpacked result.");
return new EnabledDirtyHack((DirtyHack)hack, (int)value);
}