Refactoring HOS folder structure (#771)
* Refactoring HOS folder structure Refactoring HOS folder structure: - Added some subfolders when needed (Following structure decided in private). - Added some `Types` folders when needed. - Little cleanup here and there. - Add services placeholders for every HOS services (close #766 and #753). * Remove Types namespaces
This commit is contained in:
parent
4af3101b22
commit
a0720b5681
393 changed files with 2540 additions and 1299 deletions
8
Ryujinx.HLE/HOS/Services/Nfc/IAmManager.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Nfc/IAmManager.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc
|
||||
{
|
||||
[Service("nfc:am")]
|
||||
class IAmManager : IpcService
|
||||
{
|
||||
public IAmManager(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Nfc/ISystemManager.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Nfc/ISystemManager.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc
|
||||
{
|
||||
[Service("nfc:sys")]
|
||||
class ISystemManager : IpcService
|
||||
{
|
||||
public ISystemManager(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Nfc/IUserManager.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Nfc/IUserManager.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc
|
||||
{
|
||||
[Service("nfc:user")]
|
||||
class IUserManager : IpcService
|
||||
{
|
||||
public IUserManager(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Nfc/Mifare/IUserManager.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Nfc/Mifare/IUserManager.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc.Mifare
|
||||
{
|
||||
[Service("nfc:mf:u")]
|
||||
class IUserManager : IpcService
|
||||
{
|
||||
public IUserManager(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Nfc/Nfp/IDebugManager.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Nfc/Nfp/IDebugManager.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||
{
|
||||
[Service("nfp:dbg")]
|
||||
class IAmManager : IpcService
|
||||
{
|
||||
public IAmManager(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Nfc/Nfp/ISystemManager.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Nfc/Nfp/ISystemManager.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||
{
|
||||
[Service("nfp:sys")]
|
||||
class ISystemManager : IpcService
|
||||
{
|
||||
public ISystemManager(ServiceCtx context) { }
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||
{
|
||||
enum State
|
||||
{
|
||||
NonInitialized = 0,
|
||||
Initialized = 1
|
||||
}
|
||||
}
|
|
@ -3,6 +3,8 @@ using Ryujinx.HLE.HOS.Ipc;
|
|||
using Ryujinx.HLE.HOS.Kernel.Common;
|
||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||
using Ryujinx.HLE.HOS.Services.Hid;
|
||||
using Ryujinx.HLE.HOS.Services.Hid.HidServer;
|
||||
using Ryujinx.HLE.HOS.Services.Nfc.Nfp.UserManager;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
@ -41,8 +43,8 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
|||
// TODO: When we will be able to add multiple controllers add one entry by controller here.
|
||||
Device device1 = new Device
|
||||
{
|
||||
NpadIdType = NpadIdType.Player1,
|
||||
Handle = HidUtils.GetIndexFromNpadIdType(NpadIdType.Player1),
|
||||
NpadIdType = HidNpadIdType.Player1,
|
||||
Handle = HidUtils.GetIndexFromNpadIdType(HidNpadIdType.Player1),
|
||||
State = DeviceState.Initialized
|
||||
};
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using Ryujinx.HLE.HOS.Services.Hid;
|
||||
using Ryujinx.HLE.Input;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp.UserManager
|
||||
{
|
||||
class Device
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
|||
|
||||
public DeviceState State = DeviceState.Unavailable;
|
||||
|
||||
public ControllerId Handle;
|
||||
public NpadIdType NpadIdType;
|
||||
public ControllerId Handle;
|
||||
public HidNpadIdType NpadIdType;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp.UserManager
|
||||
{
|
||||
enum DeviceState
|
||||
{
|
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp.UserManager
|
||||
{
|
||||
enum State
|
||||
{
|
||||
NonInitialized = 0,
|
||||
Initialized = 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue