mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-29 21:43:01 +00:00
5d08e9b495
* hos: Cleanup the project Since a lot of changes has been done on the HOS project, there are some leftover here and there, or class just used in one service, things at wrong places, and more. This PR fixes that, additionnally to that, I've realigned some vars because I though it make the code more readable. * Address gdkchan feedback * addresses Thog feedback * Revert ElfSymbol
40 lines
No EOL
1.3 KiB
C#
40 lines
No EOL
1.3 KiB
C#
using Ryujinx.HLE.HOS.Ipc;
|
|
using Ryujinx.HLE.HOS.Kernel.Process;
|
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
|
using Ryujinx.Memory;
|
|
using System.IO;
|
|
|
|
namespace Ryujinx.HLE.HOS
|
|
{
|
|
class ServiceCtx
|
|
{
|
|
public Switch Device { get; }
|
|
public KProcess Process { get; }
|
|
public IVirtualMemoryManager Memory { get; }
|
|
public KThread Thread { get; }
|
|
public IpcMessage Request { get; }
|
|
public IpcMessage Response { get; }
|
|
public BinaryReader RequestData { get; }
|
|
public BinaryWriter ResponseData { get; }
|
|
|
|
public ServiceCtx(
|
|
Switch device,
|
|
KProcess process,
|
|
IVirtualMemoryManager memory,
|
|
KThread thread,
|
|
IpcMessage request,
|
|
IpcMessage response,
|
|
BinaryReader requestData,
|
|
BinaryWriter responseData)
|
|
{
|
|
Device = device;
|
|
Process = process;
|
|
Memory = memory;
|
|
Thread = thread;
|
|
Request = request;
|
|
Response = response;
|
|
RequestData = requestData;
|
|
ResponseData = responseData;
|
|
}
|
|
}
|
|
} |