Improve IRoInterface logic (#809)
* hle: Improve IRoInterface logic This commit contains a little rewrite of IRoInterface to fix some issues that we were facing on some recent games (AC3 Remastered & Final Fantasy VIII Remastered) Related issues: - https://github.com/Ryujinx/Ryujinx-Games-List/issues/196 * Address comments
This commit is contained in:
parent
88593bf872
commit
2ea8d5bd5f
6 changed files with 228 additions and 131 deletions
27
Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
Normal file
27
Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Ro
|
||||
{
|
||||
enum ResultCode
|
||||
{
|
||||
ModuleId = 22,
|
||||
ErrorCodeShift = 22,
|
||||
|
||||
Success = 0,
|
||||
|
||||
InsufficientAddressSpace = (2 << ErrorCodeShift) | ModuleId,
|
||||
AlreadyLoaded = (3 << ErrorCodeShift) | ModuleId,
|
||||
InvalidNro = (4 << ErrorCodeShift) | ModuleId,
|
||||
InvalidNrr = (6 << ErrorCodeShift) | ModuleId,
|
||||
TooManyNro = (7 << ErrorCodeShift) | ModuleId,
|
||||
TooManyNrr = (8 << ErrorCodeShift) | ModuleId,
|
||||
NotAuthorized = (9 << ErrorCodeShift) | ModuleId,
|
||||
|
||||
InvalidNrrType = (10 << ErrorCodeShift) | ModuleId,
|
||||
|
||||
InvalidAddress = (1025 << ErrorCodeShift) | ModuleId,
|
||||
InvalidSize = (1026 << ErrorCodeShift) | ModuleId,
|
||||
NotLoaded = (1028 << ErrorCodeShift) | ModuleId,
|
||||
NotRegistered = (1029 << ErrorCodeShift) | ModuleId,
|
||||
InvalidSession = (1030 << ErrorCodeShift) | ModuleId,
|
||||
InvalidProcess = (1031 << ErrorCodeShift) | ModuleId,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue