diff options
author | Liam <byteslice@airmail.cc> | 2024-01-03 00:26:53 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-30 02:17:09 +0100 |
commit | 3155f4e96d10904f4a207e465f20fb4b25043f5c (patch) | |
tree | 849388480f5b7bb17f07a259b3f3661eeca99f61 /src/yuzu/main.h | |
parent | am: re-namespace frontend applets to frontend directory (diff) | |
download | yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.tar yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.tar.gz yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.tar.bz2 yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.tar.lz yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.tar.xz yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.tar.zst yuzu-3155f4e96d10904f4a207e465f20fb4b25043f5c.zip |
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(); |