diff options
author | bunnei <bunneidev@gmail.com> | 2017-06-03 04:24:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-03 04:24:29 +0200 |
commit | 81449f025a190cd9f931d73cf959ddbfebff497a (patch) | |
tree | 24a15888dd6ebc515a09eaf00623fa23e2d4665d /src/core/loader/loader.h | |
parent | Merge pull request #2722 from wwylele/cam-ipc-helper (diff) | |
parent | Addressed Bunnei's review comments, and made some other tweaks: (diff) | |
download | yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.tar yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.tar.gz yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.tar.bz2 yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.tar.lz yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.tar.xz yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.tar.zst yuzu-81449f025a190cd9f931d73cf959ddbfebff497a.zip |
Diffstat (limited to 'src/core/loader/loader.h')
-rw-r--r-- | src/core/loader/loader.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 1d80766ae..48bbf687d 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h @@ -8,6 +8,7 @@ #include <initializer_list> #include <memory> #include <string> +#include <utility> #include <vector> #include <boost/optional.hpp> #include "common/common_types.h" @@ -100,11 +101,11 @@ public: * Loads the system mode that this application needs. * This function defaults to 2 (96MB allocated to the application) if it can't read the * information. - * @returns Optional with the kernel system mode + * @returns A pair with the optional system mode, and and the status. */ - virtual boost::optional<u32> LoadKernelSystemMode() { + virtual std::pair<boost::optional<u32>, ResultStatus> LoadKernelSystemMode() { // 96MB allocated to the application. - return 2; + return std::make_pair(2, ResultStatus::Success); } /** |