From b2f733da7839ff8ba7a70a529cb9eb3eea9f0af6 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 21 Feb 2018 18:56:52 -0300 Subject: FspSrv improvements, also fix ImageEnd for NROs without a MOD0 section --- Ryujinx.Core/OsHle/Objects/ErrorCode.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Ryujinx.Core/OsHle/Objects/ErrorCode.cs (limited to 'Ryujinx.Core/OsHle/Objects/ErrorCode.cs') diff --git a/Ryujinx.Core/OsHle/Objects/ErrorCode.cs b/Ryujinx.Core/OsHle/Objects/ErrorCode.cs new file mode 100644 index 00000000..20f97f84 --- /dev/null +++ b/Ryujinx.Core/OsHle/Objects/ErrorCode.cs @@ -0,0 +1,12 @@ +using System; + +namespace Ryujinx.Core.OsHle.Objects +{ + static class ErrorCode + { + public static long MakeError(ErrorModule Module, int Code) + { + return (int)Module | (Code << 9); + } + } +} \ No newline at end of file -- cgit v1.2.3