summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/am/applet_oe.h
blob: f2ba1c92423e48eb7d2c28ac422fcefc60f79015 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                               


            
                 
 


                                     



                           

                      

 

              
              
 

                                                          
                                                                                  
                         

        
                                                      
 

                                                                         
                                       



                      
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <memory>

#include "core/hle/service/service.h"

namespace Service {
namespace FileSystem {
class FileSystemController;
}

namespace Nvnflinger {
class Nvnflinger;
}

namespace AM {

struct Applet;

class AppletOE final : public ServiceFramework<AppletOE> {
public:
    explicit AppletOE(Nvnflinger::Nvnflinger& nvnflinger_, Core::System& system_);
    ~AppletOE() override;

private:
    void OpenApplicationProxy(HLERequestContext& ctx);

    std::shared_ptr<Applet> GetAppletFromContext(HLERequestContext& ctx);

    Nvnflinger::Nvnflinger& nvnflinger;
};

} // namespace AM
} // namespace Service