mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-19 06:08:52 +02:00
* Implement some calls of ISelfController This PR implement some calls of ISelfController: - EnterFatalSection - LeaveFatalSection - GetAccumulatedSuspendedTickValue (close #937) According to RE of the 8.1.0 am service. * thread safe increment/decrement * Fix thread safe * remove unused using
18 lines
No EOL
636 B
C#
18 lines
No EOL
636 B
C#
namespace Ryujinx.HLE.HOS.Services.Am
|
|
{
|
|
enum ResultCode
|
|
{
|
|
ModuleId = 128,
|
|
ErrorCodeShift = 9,
|
|
|
|
Success = 0,
|
|
|
|
NotAvailable = (2 << ErrorCodeShift) | ModuleId,
|
|
NoMessages = (3 << ErrorCodeShift) | ModuleId,
|
|
ObjectInvalid = (500 << ErrorCodeShift) | ModuleId,
|
|
OutOfBounds = (503 << ErrorCodeShift) | ModuleId,
|
|
InvalidParameters = (506 << ErrorCodeShift) | ModuleId,
|
|
UnbalancedFatalSection = (512 << ErrorCodeShift) | ModuleId,
|
|
NullObject = (518 << ErrorCodeShift) | ModuleId
|
|
}
|
|
} |