Beispiel #1
0
Result APT_CheckNew3DS(Handle* handle, u8 *out)
{
	Result ret=0;

	if(__apt_new3dsflag_initialized)
	{
		*out = __apt_new3dsflag;
		return 0;
	}

	aptOpenSession();
	if(currentAppId==APPID_APPLICATION)
	{
		ret = APT_CheckNew3DS_Application(NULL, out);
	}
	else
	{
		ret = APT_CheckNew3DS_System(NULL, out);
	}
	aptCloseSession();

	__apt_new3dsflag_initialized = 1;
	__apt_new3dsflag = *out;

	return ret;
}
Beispiel #2
0
Result APT_CheckNew3DS(u8 *out)
{
	Result ret=0;

	if(out==NULL)return -1;

	*out = 0;

	if(__apt_new3dsflag_initialized)
	{
		*out = __apt_new3dsflag;
		return 0;
	}

	aptOpenSession();
	ret = APT_CheckNew3DS_System(out);
	aptCloseSession();

	__apt_new3dsflag_initialized = 1;
	__apt_new3dsflag = *out;

	return ret;
}