aboutsummaryrefslogblamecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Ncm/Lr/ILocationResolverManager.cs
blob: 318ad30e6edcbb71e3d31a6addb9b6f9af3f953f (plain) (tree)
1
2
3
4
5
6
7
8
9
                    
                                                              
 
                                         
 
                   
                                               
                                                               
 
                        
                                 
                                                                  
         
                                                                            
 
                                                                  
 
                                      
         
 
using LibHac.Ncm;
using Ryujinx.HLE.HOS.Services.Ncm.Lr.LocationResolverManager;

namespace Ryujinx.HLE.HOS.Services.Ncm.Lr
{
    [Service("lr")]
    class ILocationResolverManager : IpcService
    {
        public ILocationResolverManager(ServiceCtx context) { }

        [CommandCmif(0)]
        // OpenLocationResolver()
        public ResultCode OpenLocationResolver(ServiceCtx context)
        {
            StorageId storageId = (StorageId)context.RequestData.ReadByte();

            MakeObject(context, new ILocationResolver(storageId));

            return ResultCode.Success;
        }
    }
}