diff options
| author | Ac_K <Acoustik666@gmail.com> | 2019-07-14 21:04:38 +0200 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2019-07-14 16:04:38 -0300 |
| commit | 4ad3936afd4ca393a05b330e3848958e9598e910 (patch) | |
| tree | e0b3bc963230d3ea3d6cc57b5bc6caeba9233479 /Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs | |
| parent | 4926f6523d3130879e108403979ab68f1212f544 (diff) | |
Refactoring result codes (#731)
* refactoring result codes
- Add a main enum who can handle some orphalin result codes and the default `ResultCode.Success` one.
- Add sub-enum by services when it's needed.
- Remove some empty line.
- Recast all service calls to ResultCode.
- Remove some unneeded static declaration.
- Delete unused `NvHelper` class.
* NvResult is back
* Fix
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs index 50d181b7..d09403f9 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns [Command(400)] // GetApplicationControlData(unknown<0x10>) -> (unknown<4>, buffer<unknown, 6>) - public long GetApplicationControlData(ServiceCtx context) + public ResultCode GetApplicationControlData(ServiceCtx context) { long position = context.Request.ReceiveBuff[0].Position; @@ -189,7 +189,6 @@ namespace Ryujinx.HLE.HOS.Services.Ns context.Memory.WriteBytes(position, reserved03); position += reserved03.Length; - for (int i = 0; i < 16; i++) { ulong value = 0; @@ -207,7 +206,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns context.Memory.WriteByte(position++, nacp.RepairFlag); context.Memory.WriteByte(position++, nacp.ProgramIndex); - return 0; + return ResultCode.Success; } } }
\ No newline at end of file |
