From 82556805c757f3de3005c61731b7bbaeda89029f Mon Sep 17 00:00:00 2001 From: Joel16 Date: Wed, 14 Mar 2018 21:55:26 -0500 Subject: [PATCH] Fix quick launcher failing to load when running menu from a game The game could be a dump, cart or PSN, but using sceClibPrintf fails to write properly to the uri buffer. This may potienally fix loading in some games since sceClibSnprintf was used in RecursiveMakeDir (which creates the VSH directory so that config files can be stored. Hence without the dir some games may have failed to bring up the menu.) --- source/fs.c | 2 +- source/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fs.c b/source/fs.c index ec78675..dd1bbb9 100644 --- a/source/fs.c +++ b/source/fs.c @@ -65,7 +65,7 @@ SceVoid FS_RecursiveMakeDir(const char *path) char *p = NULL; size_t len; - sceClibSnprintf(tmp, sizeof(tmp), "%s", path); + snprintf(tmp, sizeof(tmp), "%s", path); len = strlen(tmp); if (tmp[len - 1] == '/') diff --git a/source/utils.c b/source/utils.c index d94f8c4..4da796c 100644 --- a/source/utils.c +++ b/source/utils.c @@ -20,7 +20,7 @@ SceInt Utils_LaunchAppByUriExit(char *titleid) if (strlen(titleid) == 9) // Game or App titleID { - sceClibPrintf(uri, "psgm:play?titleid=%s", titleid); + sprintf(uri, "psgm:play?titleid=%s", titleid); if (R_FAILED(ret = sceAppMgrLaunchAppByUri(0xFFFFF, uri))) return ret;