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);
|
InsertBlock(Src, PagesCount, MemoryState.Heap, MemoryPermission.None);
|
||||||
|
|
||||||
CpuMemory.Map(Dst, PA, Size);
|
CpuMemory.Map(Dst, PA, Size);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -225,6 +226,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
InsertBlock(Src, PagesCount, MemoryState.Heap, MemoryPermission.ReadAndWrite);
|
InsertBlock(Src, PagesCount, MemoryState.Heap, MemoryPermission.ReadAndWrite);
|
||||||
|
|
||||||
CpuMemory.Unmap(Dst, Size);
|
CpuMemory.Unmap(Dst, Size);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -847,6 +849,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
Result = IsUnmapped(Position, Size);
|
Result = IsUnmapped(Position, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -328,8 +328,8 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return MakeError(ErrorModule.Loader, LoaderErr.BadNroAddress);
|
|
||||||
|
|
||||||
|
return MakeError(ErrorModule.Loader, LoaderErr.BadNroAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadNro(u64, u64, u64, u64, u64, pid) -> u64
|
// LoadNro(u64, u64, u64, u64, u64, pid) -> u64
|
||||||
|
@ -441,6 +441,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
||||||
|
|
||||||
Result = RemoveNrrInfo(NrrHeapAddress);
|
Result = RemoveNrrInfo(NrrHeapAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result;
|
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.
|
// 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;
|
IsInitialized = true;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,6 @@ namespace Ryujinx.HLE.Loaders
|
||||||
Memory.WriteBytes(TextPosition, Exe.Text);
|
Memory.WriteBytes(TextPosition, Exe.Text);
|
||||||
Memory.WriteBytes(ROPosition, Exe.RO);
|
Memory.WriteBytes(ROPosition, Exe.RO);
|
||||||
Memory.WriteBytes(DataPosition, Exe.Data);
|
Memory.WriteBytes(DataPosition, Exe.Data);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue