diff options
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 25 |
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 { | |||
| 50 | class ProfileManager; | 50 | class ProfileManager; |
| 51 | } // namespace Account | 51 | } // namespace Account |
| 52 | 52 | ||
| 53 | namespace AM::Applets { | 53 | namespace AM { |
| 54 | struct AppletFrontendSet; | 54 | struct FrontendAppletParameters; |
| 55 | class AppletManager; | 55 | class AppletManager; |
| 56 | } // namespace AM::Applets | 56 | } // namespace AM |
| 57 | |||
| 58 | namespace AM::Frontend { | ||
| 59 | struct FrontendAppletSet; | ||
| 60 | class FrontendAppletHolder; | ||
| 61 | } // namespace AM::Frontend | ||
| 57 | 62 | ||
| 58 | namespace APM { | 63 | namespace APM { |
| 59 | class Controller; | 64 | class 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 | ||