mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 06:46:24 +02:00
misc: improve unpacking error & add nullability to SelectedIcon
This commit is contained in:
parent
e956864697
commit
9bb50fc6dd
4 changed files with 8 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue