mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-15 11:31:16 +01:00
c6e12949e5
* Add multiple calls to am service This implement/stub some am calls: - SetAutoSleepDisabled - IsAutoSleepDisabled - SetAlbumImageTakenNotificationEnabled - EnableApplicationCrashReport - GetPreviousProgramIndex - NeedsToExitProcess - RequestForAppletToGetForeground - GetIndirectLayerConsumerHandle All checked by RE. Additionnaly to that, there is some cleanup here and there. Fix #1387, #1324, #1165, #1163, #1065 * Fix casting * Thread safe assign
29 lines
1.3 KiB
C#
29 lines
1.3 KiB
C#
namespace Ryujinx.HLE.HOS.Services.Am
|
|
{
|
|
enum ResultCode
|
|
{
|
|
ModuleId = 128,
|
|
ErrorCodeShift = 9,
|
|
|
|
Success = 0,
|
|
|
|
NotAvailable = (2 << ErrorCodeShift) | ModuleId,
|
|
NoMessages = (3 << ErrorCodeShift) | ModuleId,
|
|
AppletLaunchFailed = (35 << ErrorCodeShift) | ModuleId,
|
|
TitleIdNotFound = (37 << ErrorCodeShift) | ModuleId,
|
|
ObjectInvalid = (500 << ErrorCodeShift) | ModuleId,
|
|
IStorageInUse = (502 << ErrorCodeShift) | ModuleId,
|
|
OutOfBounds = (503 << ErrorCodeShift) | ModuleId,
|
|
InvalidParameters = (506 << ErrorCodeShift) | ModuleId,
|
|
OpenedAsWrongType = (511 << ErrorCodeShift) | ModuleId,
|
|
UnbalancedFatalSection = (512 << ErrorCodeShift) | ModuleId,
|
|
NullObject = (518 << ErrorCodeShift) | ModuleId,
|
|
MemoryAllocationFailed = (600 << ErrorCodeShift) | ModuleId,
|
|
StackPoolExhausted = (712 << ErrorCodeShift) | ModuleId,
|
|
DebugModeNotEnabled = (974 << ErrorCodeShift) | ModuleId,
|
|
DevFunctionNotEnabled = (980 << ErrorCodeShift) | ModuleId,
|
|
NotImplemented = (998 << ErrorCodeShift) | ModuleId,
|
|
Stubbed = (999 << ErrorCodeShift) | ModuleId
|
|
}
|
|
}
|