From 182137a9a4b09c8188d2cbffa312550c5dc83641 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 2 Jan 2024 18:29:03 -0500 Subject: am: migrate global state to per-applet state structure --- src/core/hle/service/am/applet_common_functions.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core/hle/service/am/applet_common_functions.h') diff --git a/src/core/hle/service/am/applet_common_functions.h b/src/core/hle/service/am/applet_common_functions.h index be87b3820..229555669 100644 --- a/src/core/hle/service/am/applet_common_functions.h +++ b/src/core/hle/service/am/applet_common_functions.h @@ -7,13 +7,17 @@ namespace Service::AM { +struct Applet; + class IAppletCommonFunctions final : public ServiceFramework { public: - explicit IAppletCommonFunctions(Core::System& system_); + explicit IAppletCommonFunctions(Core::System& system_, std::shared_ptr applet_); ~IAppletCommonFunctions() override; private: void SetCpuBoostRequestPriority(HLERequestContext& ctx); + + const std::shared_ptr applet; }; } // namespace Service::AM -- cgit v1.2.3