diff options
author | bunnei <bunneidev@gmail.com> | 2016-03-12 17:23:59 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-03-12 17:23:59 +0100 |
commit | 2f0a61debf8fd843fefd6fcca3ad9f425af57216 (patch) | |
tree | 893e6facd198962123ccefd0b2ab893c420e342e /src/core/hle/service/apt/apt.cpp | |
parent | Merge pull request #1500 from lioncash/nullptr (diff) | |
parent | HLE/Applets: Implemented a dummy Mii Selector applet. (diff) | |
download | yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.tar yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.tar.gz yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.tar.bz2 yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.tar.lz yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.tar.xz yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.tar.zst yuzu-2f0a61debf8fd843fefd6fcca3ad9f425af57216.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/apt/apt.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index 69255e2ef..98c72fc32 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp @@ -12,6 +12,7 @@ #include "core/hle/service/apt/apt_a.h" #include "core/hle/service/apt/apt_s.h" #include "core/hle/service/apt/apt_u.h" +#include "core/hle/service/fs/archive.h" #include "core/hle/kernel/event.h" #include "core/hle/kernel/mutex.h" @@ -378,6 +379,24 @@ void StartLibraryApplet(Service::Interface* self) { cmd_buff[1] = applet->Start(parameter).raw; } +void GetAppletInfo(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + auto app_id = static_cast<AppletId>(cmd_buff[1]); + + if (auto applet = HLE::Applets::Applet::Get(app_id)) { + // TODO(Subv): Get the title id for the current applet and write it in the response[2-3] + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[4] = static_cast<u32>(Service::FS::MediaType::NAND); + cmd_buff[5] = 1; // Registered + cmd_buff[6] = 1; // Loaded + cmd_buff[7] = 0; // Applet Attributes + } else { + cmd_buff[1] = ResultCode(ErrorDescription::NotFound, ErrorModule::Applet, + ErrorSummary::NotFound, ErrorLevel::Status).raw; + } + LOG_WARNING(Service_APT, "(stubbed) called appid=%u", app_id); +} + void Init() { AddService(new APT_A_Interface); AddService(new APT_S_Interface); |