Guest User

Untitled

a guest
Apr 28th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. sc.getServices(["lr"], function (lr) {
  2. var path = utils.str2ab("@User:/.nsp"); /* path used by switchbrew's hbl installer */
  3. /* OR put your own hbl nsp on your SD card, for example:
  4. var path = utils.str2ab("@Sdcard:/my_nsp.nsp");
  5. */
  6. var tid = [0x100D, 0x01000000]; /* TID of the Album applet */
  7. var storageId = 3; /* NAND (location of the Album applet) */
  8.  
  9. var msg = sc.ipcMsg(0).data(storageId).sendTo(lr).assertOk(); /* nn::lr::ILocationResolverManager(StorageId storageId) => nn::lr::ILocationResolver */
  10. sc.withHandle(msg.movedHandles[0], (h) => { /* nn::lr::ILocationResolver::SetProgramNcaPath(u64 TID, const char *path) */
  11. msg = sc.ipcMsg(1).data(tid).xDescriptor(path, path.byteLength, 0).sendTo(h).assertOk();
  12. });
  13. });
Add Comment
Please, Sign In to add comment