summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-23 20:35:13 +0100
committerGitHub <noreply@github.com>2018-12-23 20:35:13 +0100
commitf95f6c7d86af9857cb737a741fc847bf2c5d8413 (patch)
treeb5c02a35cdb18b78c648bc3a6f98b87e68d2e651 /src/core/hle/service/am/am.cpp
parentMerge pull request #1780 from DarkLordZach/controller-profiles (diff)
parentapplets: Correct event ResetTypes from OneShot to Sticky (diff)
downloadyuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.gz
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.bz2
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.lz
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.xz
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.zst
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 27c31aad2..5fc02a521 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -19,6 +19,7 @@
#include "core/hle/service/am/applet_ae.h"
#include "core/hle/service/am/applet_oe.h"
#include "core/hle/service/am/applets/applets.h"
+#include "core/hle/service/am/applets/profile_select.h"
#include "core/hle/service/am/applets/software_keyboard.h"
#include "core/hle/service/am/applets/stub_applet.h"
#include "core/hle/service/am/idle.h"
@@ -39,6 +40,7 @@ constexpr ResultCode ERR_NO_DATA_IN_CHANNEL{ErrorModule::AM, 0x2};
constexpr ResultCode ERR_SIZE_OUT_OF_BOUNDS{ErrorModule::AM, 0x1F7};
enum class AppletId : u32 {
+ ProfileSelect = 0x10,
SoftwareKeyboard = 0x11,
};
@@ -775,6 +777,8 @@ ILibraryAppletCreator::~ILibraryAppletCreator() = default;
static std::shared_ptr<Applets::Applet> GetAppletFromId(AppletId id) {
switch (id) {
+ case AppletId::ProfileSelect:
+ return std::make_shared<Applets::ProfileSelect>();
case AppletId::SoftwareKeyboard:
return std::make_shared<Applets::SoftwareKeyboard>();
default: