summaryrefslogtreecommitdiff
path: root/src/core/hle/applets/applet.cpp
diff options
context:
space:
mode:
authorGravatar Subv2015-12-04 16:05:23 -0500
committerGravatar Subv2016-03-12 10:59:37 -0500
commit0f8be2d2cc54feda0a52ec8f9633fd022879816a (patch)
tree18a0fa35a23a773be265cb8ff2f6c8df1e8ce9b1 /src/core/hle/applets/applet.cpp
parentMerge pull request #1261 from yuriks/tev-buffer-delay (diff)
downloadyuzu-0f8be2d2cc54feda0a52ec8f9633fd022879816a.tar.gz
yuzu-0f8be2d2cc54feda0a52ec8f9633fd022879816a.tar.xz
yuzu-0f8be2d2cc54feda0a52ec8f9633fd022879816a.zip
HLE/Applets: Implemented a dummy Mii Selector applet.
This prevents some games (like Super Mario 3D Land) from freezing when trying to launch it, however, it's not complete and won't let you go past Mii selection as the parameter structure hasn't been reverse engineered yet.
Diffstat (limited to 'src/core/hle/applets/applet.cpp')
-rw-r--r--src/core/hle/applets/applet.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/applets/applet.cpp b/src/core/hle/applets/applet.cpp
index bc2a1829e..90e134437 100644
--- a/src/core/hle/applets/applet.cpp
+++ b/src/core/hle/applets/applet.cpp
@@ -12,6 +12,7 @@
12 12
13#include "core/core_timing.h" 13#include "core/core_timing.h"
14#include "core/hle/applets/applet.h" 14#include "core/hle/applets/applet.h"
15#include "core/hle/applets/mii_selector.h"
15#include "core/hle/applets/swkbd.h" 16#include "core/hle/applets/swkbd.h"
16#include "core/hle/result.h" 17#include "core/hle/result.h"
17#include "core/hle/service/apt/apt.h" 18#include "core/hle/service/apt/apt.h"
@@ -47,7 +48,12 @@ ResultCode Applet::Create(Service::APT::AppletId id) {
47 case Service::APT::AppletId::SoftwareKeyboard2: 48 case Service::APT::AppletId::SoftwareKeyboard2:
48 applets[id] = std::make_shared<SoftwareKeyboard>(id); 49 applets[id] = std::make_shared<SoftwareKeyboard>(id);
49 break; 50 break;
51 case Service::APT::AppletId::Ed1:
52 case Service::APT::AppletId::Ed2:
53 applets[id] = std::make_shared<MiiSelector>(id);
54 break;
50 default: 55 default:
56 LOG_ERROR(Service_APT, "Could not create applet %u", id);
51 // TODO(Subv): Find the right error code 57 // TODO(Subv): Find the right error code
52 return ResultCode(ErrorDescription::NotFound, ErrorModule::Applet, ErrorSummary::NotSupported, ErrorLevel::Permanent); 58 return ResultCode(ErrorDescription::NotFound, ErrorModule::Applet, ErrorSummary::NotSupported, ErrorLevel::Permanent);
53 } 59 }