Skip to content

Instantly share code, notes, and snippets.

@moriczgergo moriczgergo/ii.h
Last active May 5, 2018

Embed
What would you like to do?
ii is a simple function that retreives an amiibo's AppID.
#ifndef II_H
#define II_H
/*
* ii - AppID retreiver
* made by skiilaa
* under MIT license!
*/
Result ii(u32 *appid)
{
Result ret = 0;
u32* cmdbuf = getThreadCommandBuffer();
cmdbuf[0] = IPC_MakeHeader(0x402, 0, 0);
if (R_FAILED(ret = svcSendSyncRequest(nfcHandle)))
return ret;
ret = cmdbuf[1];
*appid = cmdbuf[4];
return ret; // 0x00000000 if it worked
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.