From 14953e30c9fcc9c80b70cca004da9d60437a8311 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Mon, 11 Dec 2017 15:52:17 -0600 Subject: [PATCH] Use CFGI instead of PS Now we can get rid of initalzing the PS service. --- source/fs.c | 4 +++- source/main.c | 4 +--- source/system.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/fs.c b/source/fs.c index 77549b9..dc541a5 100644 --- a/source/fs.c +++ b/source/fs.c @@ -1,5 +1,7 @@ #include "fs.h" +//test from gedit. + Result openArchive(FS_Archive * archive, FS_ArchiveID id) { return FSUSER_OpenArchive(archive, id, fsMakePath(PATH_EMPTY, "")); @@ -48,4 +50,4 @@ bool dirExists(FS_Archive archive, const char * path) return false; return true; -} \ No newline at end of file +} diff --git a/source/main.c b/source/main.c index 0faffbe..d901fb0 100644 --- a/source/main.c +++ b/source/main.c @@ -28,7 +28,6 @@ void initServices() mcuInit(); amInit(); amAppInit(); - psInit(); aptInit(); hidInit(); acGetServiceHandle(); @@ -56,7 +55,6 @@ void termServices() actExit(); hidExit(); aptExit(); - psExit(); acExit(); acCloseServiceHandle(); amExit(); @@ -287,4 +285,4 @@ int main(int argc, char *argv[]) termServices(); return 0; -} \ No newline at end of file +} diff --git a/source/system.c b/source/system.c index 49cfbc3..c3cb646 100644 --- a/source/system.c +++ b/source/system.c @@ -209,7 +209,7 @@ u64 getLocalFriendCodeSeed(void) { u64 seed = 0; - if (R_SUCCEEDED(PS_GetLocalFriendCodeSeed(&seed))) + if (R_SUCCEEDED(CFGI_GetLocalFriendCodeSeed(&seed))) return seed; return 0; @@ -233,4 +233,4 @@ u64 getSoapId(void) return (id | (((u64) 4) << 32)); return 0; -} \ No newline at end of file +}