Fix some codestyle issues
This commit is contained in:
parent
ef7bd49eae
commit
150e8c6e07
4 changed files with 10 additions and 6 deletions
|
@ -178,6 +178,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
InsertBlock(Src, PagesCount, MemoryState.Heap, MemoryPermission.None);
|
||||
|
||||
CpuMemory.Map(Dst, PA, Size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -225,6 +226,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
InsertBlock(Src, PagesCount, MemoryState.Heap, MemoryPermission.ReadAndWrite);
|
||||
|
||||
CpuMemory.Unmap(Dst, Size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -847,6 +849,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
{
|
||||
Result = IsUnmapped(Position, Size);
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,9 +48,9 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
|||
|
||||
class NrrInfo
|
||||
{
|
||||
public NrrHeader Header { get; private set; }
|
||||
public List<byte[]> Hashes { get; private set; }
|
||||
public long NrrAddress { get; private set; }
|
||||
public NrrHeader Header { get; private set; }
|
||||
public List<byte[]> Hashes { get; private set; }
|
||||
public long NrrAddress { get; private set; }
|
||||
|
||||
public NrrInfo(long NrrAddress, NrrHeader Header, List<byte[]> Hashes)
|
||||
{
|
||||
|
@ -328,8 +328,8 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
|||
return Result;
|
||||
}
|
||||
}
|
||||
return MakeError(ErrorModule.Loader, LoaderErr.BadNroAddress);
|
||||
|
||||
return MakeError(ErrorModule.Loader, LoaderErr.BadNroAddress);
|
||||
}
|
||||
|
||||
// LoadNro(u64, u64, u64, u64, u64, pid) -> u64
|
||||
|
@ -441,6 +441,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
|||
|
||||
Result = RemoveNrrInfo(NrrHeapAddress);
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
@ -449,6 +450,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
|||
{
|
||||
// TODO: we actually ignore the pid and process handle receive, we will need to use them when we will have multi process support.
|
||||
IsInitialized = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,6 @@ namespace Ryujinx.HLE.Loaders
|
|||
Memory.WriteBytes(TextPosition, Exe.Text);
|
||||
Memory.WriteBytes(ROPosition, Exe.RO);
|
||||
Memory.WriteBytes(DataPosition, Exe.Data);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Ryujinx.HLE.Loaders.Executables
|
|||
public int BssSize { get; private set; }
|
||||
|
||||
public long SourceAddress { get; private set; }
|
||||
public long BssAddress { get; private set; }
|
||||
public long BssAddress { get; private set; }
|
||||
|
||||
[Flags]
|
||||
private enum NsoFlags
|
||||
|
|
Loading…
Add table
Reference in a new issue