Skip to content

Commit

Permalink
Merge pull request #16 from KuromeSan/master
Browse files Browse the repository at this point in the history
Adds Unity PSM Support. -Silica's alt
  • Loading branch information
frangarcj authored Nov 11, 2018
2 parents c00bb9b + 12f4c09 commit 8361b87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file added 6488b73b912a753a492e2714e9b38bc7.rif
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ The fake licenses for the applications will then be stored at
`ux0:psm/NPOA00013/RO/License/FAKE.rif`.
- If you wish to use the application on a different device, transfer the content of `ux0:psm/TITLE_ID` to your PC and copy the fake license `ux0:data/EM0041-NPOA00013_00-0000000000000000.rif` file as `ux0:psm/TITLE_ID/RO/License/FAKE.rif` **You need to update / rebuild database**

If the game is "Powered by Unity" then you must ALSO create a folder in `ux0:/license/app/PSM_TITLE_ID` and place the `6488b73b912a753a492e2714e9b38bc7.rif` included in this repo into that folder.

## Installing shared games
- PSM games must be stored at the following location: `ux0:psm/TITLE_ID`
- You must update / rebuild database
Expand Down
6 changes: 4 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ static SceUID _ksceKernelLaunchAppPatched(void *args)
uint32_t flags = (uint32_t)((uintptr_t *)args)[1];
char *path = (char *)((uintptr_t *)args)[2];
void *unk = (void *)((uintptr_t *)args)[3];

if (flags == 0x1000000 && strstr(path, "PCSI00011"))

//runtime = PSM UNITY RUNTIME
//PCSI00011 = PSM RUNTIME
if ((flags == 0x1000000 && strstr(path, "PCSI00011")) || (flags == 0x1000000 && strstr(path, "runtime")))
{
char license_path[256];

Expand Down

0 comments on commit 8361b87

Please sign in to comment.