HLE: Fix integer sign inconcistency accross the codebase (#2222)
* Make all title id instances unsigned * Replace address and size with ulong instead of signed types Long overdue change. Also change some logics here and there to optimize with the new memory manager. * Address Ac_K's comments * Remove uneeded cast all around * Fixes some others misalignment
This commit is contained in:
parent
c46f6879ff
commit
305f06eb71
73 changed files with 707 additions and 716 deletions
|
@ -41,8 +41,8 @@ namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
|||
{
|
||||
CertificateFormat certificateFormat = (CertificateFormat)context.RequestData.ReadUInt32();
|
||||
|
||||
long certificateDataPosition = context.Request.SendBuff[0].Position;
|
||||
long certificateDataSize = context.Request.SendBuff[0].Size;
|
||||
ulong certificateDataPosition = context.Request.SendBuff[0].Position;
|
||||
ulong certificateDataSize = context.Request.SendBuff[0].Size;
|
||||
|
||||
context.ResponseData.Write(_serverCertificateId++);
|
||||
|
||||
|
@ -55,15 +55,15 @@ namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
|||
// ImportClientPki(buffer<bytes, 5> certificate, buffer<bytes, 5> ascii_password) -> u64 certificateId
|
||||
public ResultCode ImportClientPki(ServiceCtx context)
|
||||
{
|
||||
long certificateDataPosition = context.Request.SendBuff[0].Position;
|
||||
long certificateDataSize = context.Request.SendBuff[0].Size;
|
||||
ulong certificateDataPosition = context.Request.SendBuff[0].Position;
|
||||
ulong certificateDataSize = context.Request.SendBuff[0].Size;
|
||||
|
||||
long asciiPasswordDataPosition = context.Request.SendBuff[1].Position;
|
||||
long asciiPasswordDataSize = context.Request.SendBuff[1].Size;
|
||||
ulong asciiPasswordDataPosition = context.Request.SendBuff[1].Position;
|
||||
ulong asciiPasswordDataSize = context.Request.SendBuff[1].Size;
|
||||
|
||||
byte[] asciiPasswordData = new byte[asciiPasswordDataSize];
|
||||
|
||||
context.Memory.Read((ulong)asciiPasswordDataPosition, asciiPasswordData);
|
||||
context.Memory.Read(asciiPasswordDataPosition, asciiPasswordData);
|
||||
|
||||
string asciiPassword = Encoding.ASCII.GetString(asciiPasswordData).Trim('\0');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue