From 25b2382a6cc6bbca42665e70aaf0941913363915 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 12 Apr 2021 15:48:25 -0700 Subject: [PATCH] fix for compilation with libnx v3.0.0 --- switch/source/title.cpp | 2 +- switch/source/util.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/switch/source/title.cpp b/switch/source/title.cpp index 01ed641..70bca2c 100644 --- a/switch/source/title.cpp +++ b/switch/source/title.cpp @@ -263,7 +263,7 @@ void loadTitles(void) // load play statistics PdmPlayStatistics stats; - res = pdmqryQueryPlayStatisticsByApplicationIdAndUserAccountId(tid, uid, false, &stats); + res = pdmqryQueryPlayStatisticsByApplicationIdAndUserAccountId(tid, uid, &stats); if (R_SUCCEEDED(res)) { title.playTimeMinutes(stats.playtimeMinutes); title.lastPlayedTimestamp(stats.last_timestampUser); diff --git a/switch/source/util.cpp b/switch/source/util.cpp index 2f24dfb..d544bed 100644 --- a/switch/source/util.cpp +++ b/switch/source/util.cpp @@ -70,7 +70,7 @@ Result servicesInit(void) romfsInit(); - if (R_FAILED(res = plInitialize(PlServiceType_User))) { + if (R_FAILED(res = plInitialize())) { Logger::getInstance().log(Logger::ERROR, "plInitialize failed. Result code 0x%08lX.", res); return res; }