Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Fix quick launcher failing to load when running menu from a game
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
joel16 committed Mar 15, 2018
1 parent 6c6c181 commit 8255680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '/')
Expand Down
2 changes: 1 addition & 1 deletion source/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8255680

Please sign in to comment.