mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 17:45:26 +00:00
08831eecf7
* IPC refactor part 3 + 4: New server HIPC message processor with source generator based serialization * Make types match on calls to AlignUp/AlignDown * Formatting * Address some PR feedback * Move BitfieldExtensions to Ryujinx.Common.Utilities and consolidate implementations * Rename Reader/Writer to SpanReader/SpanWriter and move to Ryujinx.Common.Memory * Implement EventType * Address more PR feedback * Log request processing errors since they are not normal * Rename waitable to multiwait and add missing lock * PR feedback * Ac_K PR feedback
32 lines
1.4 KiB
C#
32 lines
1.4 KiB
C#
using Ryujinx.Horizon.Common;
|
|
|
|
namespace Ryujinx.Horizon.Sdk.Sf
|
|
{
|
|
static class SfResult
|
|
{
|
|
public const int ModuleId = 10;
|
|
|
|
public static Result NotSupported => new Result(ModuleId, 1);
|
|
public static Result InvalidHeaderSize => new Result(ModuleId, 202);
|
|
public static Result InvalidInHeader => new Result(ModuleId, 211);
|
|
public static Result InvalidOutHeader => new Result(ModuleId, 212);
|
|
public static Result UnknownCommandId => new Result(ModuleId, 221);
|
|
public static Result InvalidOutRawSize => new Result(ModuleId, 232);
|
|
public static Result InvalidInObjectsCount => new Result(ModuleId, 235);
|
|
public static Result InvalidOutObjectsCount => new Result(ModuleId, 236);
|
|
public static Result InvalidInObject => new Result(ModuleId, 239);
|
|
|
|
public static Result TargetNotFound => new Result(ModuleId, 261);
|
|
|
|
public static Result OutOfDomainEntries => new Result(ModuleId, 301);
|
|
|
|
public static Result InvalidatedByUser => new Result(ModuleId, 802);
|
|
public static Result RequestDeferredByUser => new Result(ModuleId, 812);
|
|
|
|
public static bool RequestContextChanged(Result result) => result.InRange(800, 899);
|
|
public static bool Invalidated(Result result) => result.InRange(801, 809);
|
|
|
|
public static bool RequestDeferred(Result result) => result.InRange(811, 819);
|
|
}
|
|
}
|