Skip to content

Instantly share code, notes, and snippets.

@kgsws
Created June 6, 2018 20:08
Show Gist options
  • Save kgsws/8acdf5f511d7246fd408a51c7a90f547 to your computer and use it in GitHub Desktop.
Save kgsws/8acdf5f511d7246fd408a51c7a90f547 to your computer and use it in GitHub Desktop.
sc.killAutoHandle();
sc.getService("ns:am2", (hndle) => {
utils.log("got handle 0x" + hndle.toString(16));
// GetApplicationManagerInterface
var res = sc.ipcMsg(7996).data(0).sendTo(hndle).assertOk();
sc.withHandle(res.movedHandles[0], (amih) => {
utils.log("got handle 0x" + amih.toString(16));
// launch
// var tid = utils.parseAddr('01006bd001e06000'); // Minecraft
var tid = utils.parseAddr('01008BB00013C000'); // Flog
// var tid = utils.parseAddr('0100AE0003424000'); // Shantae
sc.ipcMsg(19).data(tid).sendTo(amih).assertOk().show();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment