summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/applets/general_frontend.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-07 00:40:59 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-25 02:05:11 +0200
commit01ff38cca80c5cf7e64494b129dde8d7c8ebbee5 (patch)
tree1bcb28a01c067abe641fe167e99416217fba0f5c /src/core/frontend/applets/general_frontend.cpp
parentweb_browser: Only delete temporary directory if it was created (diff)
downloadyuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.tar
yuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.tar.gz
yuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.tar.bz2
yuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.tar.lz
yuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.tar.xz
yuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.tar.zst
yuzu-01ff38cca80c5cf7e64494b129dde8d7c8ebbee5.zip
Diffstat (limited to 'src/core/frontend/applets/general_frontend.cpp')
-rw-r--r--src/core/frontend/applets/general_frontend.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/frontend/applets/general_frontend.cpp b/src/core/frontend/applets/general_frontend.cpp
index e6cb59b64..c30b36de7 100644
--- a/src/core/frontend/applets/general_frontend.cpp
+++ b/src/core/frontend/applets/general_frontend.cpp
@@ -60,10 +60,11 @@ DefaultECommerceApplet::~DefaultECommerceApplet() = default;
void DefaultECommerceApplet::ShowApplicationInformation(
std::function<void()> finished, u64 title_id, std::optional<u128> user_id,
std::optional<bool> full_display, std::optional<std::string> extra_parameter) {
+ const auto value = user_id.value_or(u128{});
LOG_INFO(Service_AM,
"Application requested frontend show application information for EShop, "
"title_id={:016X}, user_id={:016X}{:016X}, full_display={}, extra_parameter={}",
- title_id, user_id.value_or(u128{})[1], user_id.value_or(u128{})[0],
+ title_id, value[1], value[0],
full_display.has_value() ? fmt::format("{}", *full_display) : "null",
extra_parameter.value_or("null"));
finished();
@@ -72,30 +73,33 @@ void DefaultECommerceApplet::ShowApplicationInformation(
void DefaultECommerceApplet::ShowAddOnContentList(std::function<void()> finished, u64 title_id,
std::optional<u128> user_id,
std::optional<bool> full_display) {
+ const auto value = user_id.value_or(u128{});
LOG_INFO(Service_AM,
"Application requested frontend show add on content list for EShop, "
"title_id={:016X}, user_id={:016X}{:016X}, full_display={}",
- title_id, user_id.value_or(u128{})[1], user_id.value_or(u128{})[0],
+ title_id, value[1], value[0],
full_display.has_value() ? fmt::format("{}", *full_display) : "null");
finished();
}
void DefaultECommerceApplet::ShowSubscriptionList(std::function<void()> finished, u64 title_id,
std::optional<u128> user_id) {
+ const auto value = user_id.value_or(u128{});
LOG_INFO(Service_AM,
"Application requested frontend show subscription list for EShop, title_id={:016X}, "
"user_id={:016X}{:016X}",
- title_id, user_id.value_or(u128{})[1], user_id.value_or(u128{})[0]);
+ title_id, value[1], value[0]);
finished();
}
void DefaultECommerceApplet::ShowConsumableItemList(std::function<void()> finished, u64 title_id,
std::optional<u128> user_id) {
+ const auto value = user_id.value_or(u128{});
LOG_INFO(
Service_AM,
"Application requested frontend show consumable item list for EShop, title_id={:016X}, "
"user_id={:016X}{:016X}",
- title_id, user_id.value_or(u128{})[1], user_id.value_or(u128{})[0]);
+ title_id, value[1], value[0]);
finished();
}