1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-12-04 08:32:09 -06:00

Ipc refactor (#9)

* Start refactoring IPC objects (started with IFile and IFileSystem)

* End refactoring IPC objects (#8)

* End refactoring IPC objects

* End refactoring IPC objects

corrections
This commit is contained in:
gdkchan
2018-02-09 21:14:55 -03:00
committed by GitHub
parent 7f4a190665
commit 322f28668d
62 changed files with 935 additions and 619 deletions

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Acc;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -13,7 +13,7 @@ namespace Ryujinx.OsHle.Services
public static long AccU0GetProfile(ServiceCtx Context)
{
MakeObject(Context, new AccIProfile());
MakeObject(Context, new IProfile());
return 0;
}
@@ -25,7 +25,7 @@ namespace Ryujinx.OsHle.Services
public static long AccU0GetBaasAccountManagerForApplication(ServiceCtx Context)
{
MakeObject(Context, new AccIManagerForApplication());
MakeObject(Context, new IManagerForApplication());
return 0;
}

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Apm;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -8,7 +8,7 @@ namespace Ryujinx.OsHle.Services
{
public static long ApmOpenSession(ServiceCtx Context)
{
MakeObject(Context, new ApmISession());
MakeObject(Context, new ISession());
return 0;
}

View File

@@ -8,7 +8,7 @@ namespace Ryujinx.OsHle.Services
{
public static long AppletOpenApplicationProxy(ServiceCtx Context)
{
MakeObject(Context, new AmIApplicationProxy());
MakeObject(Context, new IApplicationProxy());
return 0;
}

View File

@@ -1,5 +1,5 @@
using ChocolArm64.Memory;
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Aud;
using System.Text;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -21,7 +21,7 @@ namespace Ryujinx.OsHle.Services
public static long AudOutOpenAudioOut(ServiceCtx Context)
{
MakeObject(Context, new AudIAudioOut());
MakeObject(Context, new IAudioOut());
Context.ResponseData.Write(48000); //Sample Rate
Context.ResponseData.Write(2); //Channel Count
@@ -42,7 +42,7 @@ namespace Ryujinx.OsHle.Services
public static long AudRenOpenAudioRenderer(ServiceCtx Context)
{
MakeObject(Context, new AudIAudioRenderer());
MakeObject(Context, new IAudioRenderer());
return 0;
}

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Friend;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -8,7 +8,7 @@ namespace Ryujinx.OsHle.Services
{
public static long FriendCreateFriendService(ServiceCtx Context)
{
MakeObject(Context, new FriendIFriendService());
MakeObject(Context, new IFriendService());
return 0;
}

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.FspSrv;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -13,28 +13,28 @@ namespace Ryujinx.OsHle.Services
public static long FspSrvMountSdCard(ServiceCtx Context)
{
MakeObject(Context, new FspSrvIFileSystem(Context.Ns.VFs.GetSdCardPath()));
MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetSdCardPath()));
return 0;
}
public static long FspSrvMountSaveData(ServiceCtx Context)
{
MakeObject(Context, new FspSrvIFileSystem(Context.Ns.VFs.GetGameSavesPath()));
MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetGameSavesPath()));
return 0;
}
public static long FspSrvOpenDataStorageByCurrentProcess(ServiceCtx Context)
{
MakeObject(Context, new FspSrvIStorage(Context.Ns.VFs.RomFs));
MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
return 0;
}
public static long FspSrvOpenRomStorage(ServiceCtx Context)
{
MakeObject(Context, new FspSrvIStorage(Context.Ns.VFs.RomFs));
MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
return 0;
}

View File

@@ -1,5 +1,5 @@
using Ryujinx.OsHle.Handles;
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Hid;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -11,7 +11,7 @@ namespace Ryujinx.OsHle.Services
{
HSharedMem HidHndData = Context.Ns.Os.Handles.GetData<HSharedMem>(Context.Ns.Os.HidHandle);
MakeObject(Context, new HidIAppletResource(HidHndData));
MakeObject(Context, new IAppletResource(HidHndData));
return 0;
}

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Am;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -8,7 +8,7 @@ namespace Ryujinx.OsHle.Services
{
public static long PctlCreateService(ServiceCtx Context)
{
MakeObject(Context, new AmIParentalControlService());
MakeObject(Context, new IParentalControlService());
return 0;
}

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Time;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -8,28 +8,28 @@ namespace Ryujinx.OsHle.Services
{
public static long TimeGetStandardUserSystemClock(ServiceCtx Context)
{
MakeObject(Context, new TimeISystemClock());
MakeObject(Context, new ISystemClock());
return 0;
}
public static long TimeGetStandardNetworkSystemClock(ServiceCtx Context)
{
MakeObject(Context, new TimeISystemClock());
MakeObject(Context, new ISystemClock());
return 0;
}
public static long TimeGetStandardSteadyClock(ServiceCtx Context)
{
MakeObject(Context, new TimeISteadyClock());
MakeObject(Context, new ISteadyClock());
return 0;
}
public static long TimeGetTimeZoneService(ServiceCtx Context)
{
MakeObject(Context, new TimeITimeZoneService());
MakeObject(Context, new ITimeZoneService());
return 0;
}

View File

@@ -1,4 +1,4 @@
using Ryujinx.OsHle.Objects;
using Ryujinx.OsHle.Objects.Vi;
using static Ryujinx.OsHle.Objects.ObjHelper;
@@ -10,7 +10,7 @@ namespace Ryujinx.OsHle.Services
{
int Unknown = Context.RequestData.ReadInt32();
MakeObject(Context, new ViIApplicationDisplayService());
MakeObject(Context, new IApplicationDisplayService());
return 0;
}