diff options
Diffstat (limited to 'src/Ryujinx.HLE/Exceptions/InvalidStructLayoutException.cs')
-rw-r--r-- | src/Ryujinx.HLE/Exceptions/InvalidStructLayoutException.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.HLE/Exceptions/InvalidStructLayoutException.cs b/src/Ryujinx.HLE/Exceptions/InvalidStructLayoutException.cs index 2f03d13a..6852dcef 100644 --- a/src/Ryujinx.HLE/Exceptions/InvalidStructLayoutException.cs +++ b/src/Ryujinx.HLE/Exceptions/InvalidStructLayoutException.cs @@ -3,13 +3,13 @@ using System.Runtime.CompilerServices; namespace Ryujinx.HLE.Exceptions { - public class InvalidStructLayoutException<T> : Exception + public class InvalidStructLayoutException<T> : Exception { static readonly Type _structType = typeof(T); public InvalidStructLayoutException(string message) : base(message) { } - + public InvalidStructLayoutException(int expectedSize) : base($"Type {_structType.Name} has the wrong size. Expected: {expectedSize} bytes, got: {Unsafe.SizeOf<T>()} bytes") { } } -}
\ No newline at end of file +} |