diff options
| author | 2021-10-02 01:06:48 -0700 | |
|---|---|---|
| committer | 2021-10-02 01:06:48 -0700 | |
| commit | ae3e51c795ea72dd1eaea64d44b94afab7d74007 (patch) | |
| tree | 89860f4f5df991336bab7332a77e76bb58e1047f /src/core/core.h | |
| parent | Merge pull request #7102 from Morph1984/remove-boxcat (diff) | |
| parent | service: am: Make use of Exit to exit the currently running application (diff) | |
| download | yuzu-ae3e51c795ea72dd1eaea64d44b94afab7d74007.tar.gz yuzu-ae3e51c795ea72dd1eaea64d44b94afab7d74007.tar.xz yuzu-ae3e51c795ea72dd1eaea64d44b94afab7d74007.zip | |
Merge pull request #7093 from Morph1984/exit
core: Properly shutdown and exit the running application when ISelfController::Exit is called
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 715ab88e7..a796472b2 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -387,6 +387,18 @@ public: | |||
| 387 | */ | 387 | */ |
| 388 | void ExecuteProgram(std::size_t program_index); | 388 | void ExecuteProgram(std::size_t program_index); |
| 389 | 389 | ||
| 390 | /// Type used for the frontend to designate a callback for System to exit the application. | ||
| 391 | using ExitCallback = std::function<void()>; | ||
| 392 | |||
| 393 | /** | ||
| 394 | * Registers a callback from the frontend for System to exit the application. | ||
| 395 | * @param callback Callback from the frontend to exit the application. | ||
| 396 | */ | ||
| 397 | void RegisterExitCallback(ExitCallback&& callback); | ||
| 398 | |||
| 399 | /// Instructs the frontend to exit the application. | ||
| 400 | void Exit(); | ||
| 401 | |||
| 390 | /// Applies any changes to settings to this core instance. | 402 | /// Applies any changes to settings to this core instance. |
| 391 | void ApplySettings(); | 403 | void ApplySettings(); |
| 392 | 404 | ||