summaryrefslogtreecommitdiff
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-06-02 22:24:29 -0400
committerGitHub <noreply@github.com>2017-06-02 22:24:29 -0400
commit81449f025a190cd9f931d73cf959ddbfebff497a (patch)
tree24a15888dd6ebc515a09eaf00623fa23e2d4665d /src/core/loader/loader.h
parent4857eb441bbe7ba1637838c9e5158f0801f40730 (diff)
parentf008b22e3b2baa7720ea65c320fe49929a53bad7 (diff)
Merge pull request #2611 from TheKoopaKingdom/missing-file-dialogs
Display QMessageBox Dialogs For Errors
Diffstat (limited to 'src/core/loader/loader.h')
-rw-r--r--src/core/loader/loader.h7
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);
}
/**