aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2021-03-19 00:04:49 +0100
committerGitHub <noreply@github.com>2021-03-19 00:04:49 +0100
commitdb56b2166d3591eb5d16923b1fcf02733c12420b (patch)
treec7d918613efcd7e7695cb12cee453d47e5034c5a /Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs
parentca848d635930928df96f0adcdb8f46abf1c2231a (diff)
ErrorApplet: Implement ApplicationErrorArg (#2123)
This PR implement `ApplicationErrorArg` to the Error Applet. It's used by the guest to throw some specific error messages. The code was done for (and merged) LDN2 build since long time ago and have been tested a bunch of times because of that! In a way to reduce the differences between LDN and master build it's fine to add it to master.
Diffstat (limited to 'Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs')
-rw-r--r--Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs b/Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs
new file mode 100644
index 00000000..931c5912
--- /dev/null
+++ b/Ryujinx.HLE/HOS/Applets/Error/ApplicationErrorArg.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.HLE.HOS.Applets.Error
+{
+ [StructLayout(LayoutKind.Sequential, Pack = 1)]
+ unsafe struct ApplicationErrorArg
+ {
+ public uint ErrorNumber;
+ public ulong LanguageCode;
+ public fixed byte MessageText[0x800];
+ public fixed byte DetailsText[0x800];
+ }
+} \ No newline at end of file