summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/core/core.h b/src/core/core.h
index d8862e9ce..90826bd3a 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -50,10 +50,15 @@ namespace Account {
50class ProfileManager; 50class ProfileManager;
51} // namespace Account 51} // namespace Account
52 52
53namespace AM::Applets { 53namespace AM {
54struct AppletFrontendSet; 54struct FrontendAppletParameters;
55class AppletManager; 55class AppletManager;
56} // namespace AM::Applets 56} // namespace AM
57
58namespace AM::Frontend {
59struct FrontendAppletSet;
60class FrontendAppletHolder;
61} // namespace AM::Frontend
57 62
58namespace APM { 63namespace APM {
59class Controller; 64class Controller;
@@ -203,8 +208,8 @@ public:
203 * @returns SystemResultStatus code, indicating if the operation succeeded. 208 * @returns SystemResultStatus code, indicating if the operation succeeded.
204 */ 209 */
205 [[nodiscard]] SystemResultStatus Load(Frontend::EmuWindow& emu_window, 210 [[nodiscard]] SystemResultStatus Load(Frontend::EmuWindow& emu_window,
206 const std::string& filepath, u64 program_id = 0, 211 const std::string& filepath,
207 std::size_t program_index = 0); 212 Service::AM::FrontendAppletParameters& params);
208 213
209 /** 214 /**
210 * Indicates if the emulated system is powered on (all subsystems initialized and able to run an 215 * Indicates if the emulated system is powered on (all subsystems initialized and able to run an
@@ -344,11 +349,13 @@ public:
344 const std::array<u8, 0x20>& build_id, u64 main_region_begin, 349 const std::array<u8, 0x20>& build_id, u64 main_region_begin,
345 u64 main_region_size); 350 u64 main_region_size);
346 351
347 void SetAppletFrontendSet(Service::AM::Applets::AppletFrontendSet&& set); 352 void SetFrontendAppletSet(Service::AM::Frontend::FrontendAppletSet&& set);
348 void SetDefaultAppletFrontendSet(); 353
354 [[nodiscard]] Service::AM::Frontend::FrontendAppletHolder& GetFrontendAppletHolder();
355 [[nodiscard]] const Service::AM::Frontend::FrontendAppletHolder& GetFrontendAppletHolder()
356 const;
349 357
350 [[nodiscard]] Service::AM::Applets::AppletManager& GetAppletManager(); 358 [[nodiscard]] Service::AM::AppletManager& GetAppletManager();
351 [[nodiscard]] const Service::AM::Applets::AppletManager& GetAppletManager() const;
352 359
353 void SetContentProvider(std::unique_ptr<FileSys::ContentProviderUnion> provider); 360 void SetContentProvider(std::unique_ptr<FileSys::ContentProviderUnion> provider);
354 361