From 25d9880c3b6c30ca2970f46f1b2124b1a3bdfa7f Mon Sep 17 00:00:00 2001 From: yellows8 Date: Mon, 18 Nov 2019 10:56:41 -0500 Subject: [PATCH] Updated examples to pass ServiceType to the relevant *Initialize() funcs, as required by latest libnx. --- account/source/main.c | 2 +- applet/app-playstats/source/main.c | 2 +- fs/save/source/main.c | 2 +- nfc/source/main.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/account/source/main.c b/account/source/main.c index 73d264d..e2db68b 100644 --- a/account/source/main.c +++ b/account/source/main.c @@ -21,7 +21,7 @@ int main(int argc, char **argv) memset(&userdata, 0, sizeof(userdata)); memset(&profilebase, 0, sizeof(profilebase)); - rc = accountInitialize(); + rc = accountInitialize(AccountServiceType_Application); if (R_FAILED(rc)) { printf("accountInitialize() failed: 0x%x\n", rc); } diff --git a/applet/app-playstats/source/main.c b/applet/app-playstats/source/main.c index 02e9881..d387acf 100644 --- a/applet/app-playstats/source/main.c +++ b/applet/app-playstats/source/main.c @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) // Only needed when using the cmds which require the Uid. AccountUid preselected_uid={0}; - rc = accountInitialize(); + rc = accountInitialize(AccountServiceType_Application); if (R_SUCCEEDED(rc)) { rc = accountGetPreselectedUser(&preselected_uid); accountExit(); diff --git a/fs/save/source/main.c b/fs/save/source/main.c index 95c2a22..d817a15 100644 --- a/fs/save/source/main.c +++ b/fs/save/source/main.c @@ -55,7 +55,7 @@ int main(int argc, char **argv) //See the account example for getting account info for an userID. //See also the app_controldata example for getting info for an application_id. if (R_FAILED(get_save(&application_id, &uid))) { - rc = accountInitialize(); + rc = accountInitialize(AccountServiceType_Application); if (R_FAILED(rc)) { printf("accountInitialize() failed: 0x%x\n", rc); } diff --git a/nfc/source/main.c b/nfc/source/main.c index abcb68b..2a78245 100644 --- a/nfc/source/main.c +++ b/nfc/source/main.c @@ -187,11 +187,11 @@ int main(int argc, char* argv[]) consoleUpdate(NULL); // Initialize the nfp:* service. - rc = nfpInitialize(); + rc = nfpInitialize(NfpServiceType_User); // Check if NFC is enabled. If not, wait until it is. // Note that various official games don't use nfc*(). - if (R_SUCCEEDED(rc)) rc = nfcInitialize(); + if (R_SUCCEEDED(rc)) rc = nfcInitialize(NfcServiceType_User); if (R_SUCCEEDED(rc)) { bool nfc_enabled = false; rc = nfcIsNfcEnabled(&nfc_enabled);