Remove unneeded casts
This commit is contained in:
parent
3ede7b80d9
commit
9ab6334144
5 changed files with 6 additions and 6 deletions
|
@ -40,7 +40,7 @@ namespace Ryujinx.HLE
|
||||||
|
|
||||||
public unsafe byte ReadByte(long position)
|
public unsafe byte ReadByte(long position)
|
||||||
{
|
{
|
||||||
return *((byte*)(_ramPtr + position));
|
return *(_ramPtr + position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe ushort ReadUInt16(long position)
|
public unsafe ushort ReadUInt16(long position)
|
||||||
|
@ -80,7 +80,7 @@ namespace Ryujinx.HLE
|
||||||
|
|
||||||
public unsafe void WriteByte(long position, byte value)
|
public unsafe void WriteByte(long position, byte value)
|
||||||
{
|
{
|
||||||
*((byte*)(_ramPtr + position)) = value;
|
*(_ramPtr + position) = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe void WriteUInt16(long position, ushort value)
|
public unsafe void WriteUInt16(long position, ushort value)
|
||||||
|
|
|
@ -502,7 +502,7 @@ namespace Ryujinx.HLE.HOS
|
||||||
{
|
{
|
||||||
IExecutable staticObject = isNro
|
IExecutable staticObject = isNro
|
||||||
? (IExecutable)new NxRelocatableObject(input)
|
? (IExecutable)new NxRelocatableObject(input)
|
||||||
: (IExecutable)new NxStaticObject(input);
|
: new NxStaticObject(input);
|
||||||
|
|
||||||
ProgramLoader.LoadStaticObjects(this, metaData, new IExecutable[] { staticObject });
|
ProgramLoader.LoadStaticObjects(this, metaData, new IExecutable[] { staticObject });
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ namespace Ryujinx.HLE.HOS.Ipc
|
||||||
|
|
||||||
if (HasPId)
|
if (HasPId)
|
||||||
{
|
{
|
||||||
writer.Write((long)PId);
|
writer.Write(PId);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (int handle in ToCopy)
|
foreach (int handle in ToCopy)
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
_activeSlotsCount++;
|
_activeSlotsCount++;
|
||||||
|
|
||||||
handle = (int)((_idCounter << 15) & (uint)0xffff8000) | entry.Index;
|
handle = (int)((_idCounter << 15) & 0xffff8000) | entry.Index;
|
||||||
|
|
||||||
if ((short)(_idCounter + 1) >= 0)
|
if ((short)(_idCounter + 1) >= 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace Ryujinx.HLE.HOS.Services.Pl
|
||||||
{
|
{
|
||||||
int offset = (int)type * 4;
|
int offset = (int)type * 4;
|
||||||
|
|
||||||
if (!AddFontToOrderOfPriorityList(context, (SharedFontType)type, offset))
|
if (!AddFontToOrderOfPriorityList(context, type, offset))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue