mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-01 19:00:48 -07:00
Horizon: Impl Prepo, Fixes bugs, Clean things (#4220)
* Horizon: Impl Prepo, Fixes bugs, Clean things * remove ToArray() * resultCode > status * Remove old services * Addresses gdkchan's comments and more cleanup * Addresses Gdkchan's feedback 2 * Reorganize services, make sure service are loaded before guest Co-Authored-By: gdkchan <5624669+gdkchan@users.noreply.github.com> * Create interfaces for lm and sm Co-authored-by: gdkchan <5624669+gdkchan@users.noreply.github.com>
This commit is contained in:
@ -6,26 +6,22 @@ namespace Ryujinx.Horizon.Sdk.Sf
|
||||
{
|
||||
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 Result NotSupported => new(ModuleId, 1);
|
||||
public static Result InvalidHeaderSize => new(ModuleId, 202);
|
||||
public static Result InvalidInHeader => new(ModuleId, 211);
|
||||
public static Result InvalidOutHeader => new(ModuleId, 212);
|
||||
public static Result UnknownCommandId => new(ModuleId, 221);
|
||||
public static Result InvalidOutRawSize => new(ModuleId, 232);
|
||||
public static Result InvalidInObjectsCount => new(ModuleId, 235);
|
||||
public static Result InvalidOutObjectsCount => new(ModuleId, 236);
|
||||
public static Result InvalidInObject => new(ModuleId, 239);
|
||||
public static Result TargetNotFound => new(ModuleId, 261);
|
||||
public static Result OutOfDomainEntries => new(ModuleId, 301);
|
||||
public static Result InvalidatedByUser => new(ModuleId, 802);
|
||||
public static Result RequestDeferredByUser => new(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);
|
||||
public static bool Invalidated(Result result) => result.InRange(801, 809);
|
||||
public static bool RequestDeferred(Result result) => result.InRange(811, 819);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user