This commit is contained in:
BernardoGiordano 2019-07-26 23:20:09 +02:00
parent 3f3021f76e
commit 6fa8d0cedc
3 changed files with 11 additions and 7 deletions

View file

@ -161,8 +161,9 @@ std::tuple<bool, Result, std::string> io::backup(size_t index, u128 uid, size_t
}
}
else {
Logger::getInstance().log(Logger::ERROR, "Failed to mount filesystem during backup with result 0x%08lX. Title id: 0x%016lX; User id: 0x%lX%lX.",
res, title.id(), (u64)(title.userId() >> 8), (u64)(title.userId()));
Logger::getInstance().log(Logger::ERROR,
"Failed to mount filesystem during backup with result 0x%08lX. Title id: 0x%016lX; User id: 0x%lX%lX.", res, title.id(),
(u64)(title.userId() >> 8), (u64)(title.userId()));
return std::make_tuple(false, res, "Failed to mount save.");
}
@ -259,8 +260,9 @@ std::tuple<bool, Result, std::string> io::restore(size_t index, u128 uid, size_t
}
}
else {
Logger::getInstance().log(Logger::ERROR, "Failed to mount filesystem during restore with result 0x%08lX. Title id: 0x%016lX; User id: 0x%lX%lX.",
res, title.id(), (u64)(title.userId() >> 8), (u64)(title.userId()));
Logger::getInstance().log(Logger::ERROR,
"Failed to mount filesystem during restore with result 0x%08lX. Title id: 0x%016lX; User id: 0x%lX%lX.", res, title.id(),
(u64)(title.userId() >> 8), (u64)(title.userId()));
return std::make_tuple(false, res, "Failed to mount save.");
}

View file

@ -255,9 +255,10 @@ void loadTitles(void)
PdmPlayStatistics stats;
res = pdmqryQueryPlayStatisticsByApplicationIdAndUserAccountId(tid, uid, &stats);
if (R_SUCCEEDED(res)) {
title.playTime(StringUtils::format("%d", stats.playtimeMinutes / 60) + ":" + StringUtils::format("%02d", stats.playtimeMinutes % 60) + " hours");
title.playTime(StringUtils::format("%d", stats.playtimeMinutes / 60) + ":" +
StringUtils::format("%02d", stats.playtimeMinutes % 60) + " hours");
}
loadIcon(tid, nsacd, outsize - sizeof(nsacd->nacp));
// check if the vector is already created

View file

@ -109,7 +109,8 @@ Result servicesInit(void)
if (R_SUCCEEDED(res = pdmqryInitialize())) {
ATEXIT(pdmqryExit);
} else {
}
else {
Logger::getInstance().log(Logger::WARN, "pdmqryInitialize failed with result 0x%08lX.", res);
}