diff options
author | Liam <byteslice@airmail.cc> | 2024-01-02 18:26:53 -0500 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-29 20:17:09 -0500 |
commit | 3155f4e96d10904f4a207e465f20fb4b25043f5c (patch) | |
tree | 849388480f5b7bb17f07a259b3f3661eeca99f61 /src/yuzu/main.h | |
parent | dfb9fa0144ca79e596f6f2b1bc960b1a44745aa6 (diff) |
am: retrieve main applet creation info from frontend
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r-- | src/yuzu/main.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index c079baffa..aba61e388 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -64,11 +64,6 @@ enum class StartGameType { Global, // Only uses global configuration }; -enum class AmLaunchType { - UserInitiated, - ApplicationInitiated, -}; - namespace Core { enum class SystemResultStatus : u32; class System; @@ -101,6 +96,11 @@ namespace InputCommon { class InputSubsystem; } +namespace Service::AM { +struct FrontendAppletParameters; +enum class AppletId : u32; +} // namespace Service::AM + namespace Service::AM::Frontend { enum class SwkbdResult : u32; enum class SwkbdTextCheckResult : u32; @@ -268,11 +268,10 @@ private: void PreventOSSleep(); void AllowOSSleep(); - bool LoadROM(const QString& filename, u64 program_id, std::size_t program_index, - AmLaunchType launch_type); - void BootGame(const QString& filename, u64 program_id = 0, std::size_t program_index = 0, - StartGameType with_config = StartGameType::Normal, - AmLaunchType launch_type = AmLaunchType::UserInitiated); + bool LoadROM(const QString& filename, Service::AM::FrontendAppletParameters params); + void BootGame(const QString& filename, Service::AM::FrontendAppletParameters params, + StartGameType with_config = StartGameType::Normal); + void BootGameFromList(const QString& filename, StartGameType with_config); void ShutdownGame(); void ShowTelemetryCallout(); @@ -325,6 +324,10 @@ private: void SetGamemodeEnabled(bool state); #endif + Service::AM::FrontendAppletParameters ApplicationAppletParameters(); + Service::AM::FrontendAppletParameters LibraryAppletParameters(u64 program_id, + Service::AM::AppletId applet_id); + private slots: void OnStartGame(); void OnRestartGame(); |