summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/library_applet_accessor.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-03 00:29:03 +0100
committerLiam <byteslice@airmail.cc>2024-01-30 02:17:33 +0100
commit182137a9a4b09c8188d2cbffa312550c5dc83641 (patch)
treeaf62d2ecf774e7790c227cb0984e5392deca5afe /src/core/hle/service/am/library_applet_accessor.h
parentam: retrieve main applet creation info from frontend (diff)
downloadyuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.tar
yuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.tar.gz
yuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.tar.bz2
yuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.tar.lz
yuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.tar.xz
yuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.tar.zst
yuzu-182137a9a4b09c8188d2cbffa312550c5dc83641.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/library_applet_accessor.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/hle/service/am/library_applet_accessor.h b/src/core/hle/service/am/library_applet_accessor.h
index 77f62906c..c34a1cbca 100644
--- a/src/core/hle/service/am/library_applet_accessor.h
+++ b/src/core/hle/service/am/library_applet_accessor.h
@@ -3,17 +3,21 @@
#pragma once
-#include "core/hle/service/am/frontend/applets.h"
#include "core/hle/service/service.h"
namespace Service::AM {
+struct AppletStorageHolder;
+struct Applet;
+
class ILibraryAppletAccessor final : public ServiceFramework<ILibraryAppletAccessor> {
public:
explicit ILibraryAppletAccessor(Core::System& system_,
- std::shared_ptr<Frontend::FrontendApplet> applet_);
+ std::shared_ptr<AppletStorageHolder> storage_,
+ std::shared_ptr<Applet> applet_);
+ ~ILibraryAppletAccessor();
-private:
+protected:
void GetAppletStateChangedEvent(HLERequestContext& ctx);
void IsCompleted(HLERequestContext& ctx);
void GetResult(HLERequestContext& ctx);
@@ -28,7 +32,8 @@ private:
void GetPopInteractiveOutDataEvent(HLERequestContext& ctx);
void GetIndirectLayerConsumerHandle(HLERequestContext& ctx);
- std::shared_ptr<Frontend::FrontendApplet> applet;
+ const std::shared_ptr<AppletStorageHolder> storage;
+ const std::shared_ptr<Applet> applet;
};
} // namespace Service::AM