summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-10-01 19:59:50 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-10-02 19:29:12 +0200
commit2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726 (patch)
tree9aa78ae7069ccef4edd56d16130bb5dd8c18c65c /src/core
parentexternals: Add stb_image and stb_image_resize (diff)
downloadyuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.tar
yuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.tar.gz
yuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.tar.bz2
yuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.tar.lz
yuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.tar.xz
yuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.tar.zst
yuzu-2fa53ec1d90ab6b2c126fbe42ac73b4ea74cc726.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/am/am.cpp20
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 21 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 819dea6a7..a92243fc7 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1493,6 +1493,9 @@ ILibraryAppletSelfAccessor::ILibraryAppletSelfAccessor(Core::System& system_)
case Applets::AppletId::MiiEdit:
PushInShowMiiEditData();
break;
+ case Applets::AppletId::PhotoViewer:
+ PushInShowAlbum();
+ break;
default:
break;
}
@@ -1569,6 +1572,23 @@ void ILibraryAppletSelfAccessor::GetCallerAppletIdentityInfo(HLERequestContext&
rb.PushRaw(applet_info);
}
+void ILibraryAppletSelfAccessor::PushInShowAlbum() {
+ const Applets::CommonArguments arguments{
+ .arguments_version = Applets::CommonArgumentVersion::Version3,
+ .size = Applets::CommonArgumentSize::Version3,
+ .library_version = 1,
+ .theme_color = Applets::ThemeColor::BasicBlack,
+ .play_startup_sound = true,
+ .system_tick = system.CoreTiming().GetClockTicks(),
+ };
+
+ std::vector<u8> argument_data(sizeof(arguments));
+ std::vector<u8> settings_data{2};
+ std::memcpy(argument_data.data(), &arguments, sizeof(arguments));
+ queue_data.emplace_back(std::move(argument_data));
+ queue_data.emplace_back(std::move(settings_data));
+}
+
void ILibraryAppletSelfAccessor::PushInShowCabinetData() {
const Applets::CommonArguments arguments{
.arguments_version = Applets::CommonArgumentVersion::Version3,
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 349482dcc..62994a13f 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -327,6 +327,7 @@ private:
void ExitProcessAndReturn(HLERequestContext& ctx);
void GetCallerAppletIdentityInfo(HLERequestContext& ctx);
+ void PushInShowAlbum();
void PushInShowCabinetData();
void PushInShowMiiEditData();