bool DeviceHandler::IsInserted(int dev)
{
	if(dev == SD)
		return SD_Inserted() && sd->IsMounted(0);

	/*else if(dev == GCSDA)
		return GCA_Inserted() && gca->IsMounted(0);

	else if(dev == GCSDB)
		return GCB_Inserted() && gcb->IsMounted(0);*/

	else if(dev >= USB1 && dev <= USB8)
		return GetUSBFromDev(dev) && GetUSBFromDev(dev)->IsMounted(PartToPortPart(dev-USB1));

	/*else if(dev >= SMB1 && dev <= SMB10)
		return IsSMB_Mounted(dev-SMB1);

	else if(dev >= FTP1 && dev <= FTP10)
		return IsFTPConnected(dev-FTP1); //later

	else if(dev >= NFS1 && dev <= NFS10)
		return IsNFS_Mounted(dev-NFS1);

	else if(dev == NAND)
		return true;

	else if(dev == DVD)
		return DVD_Inserted();*/

	return false;
}
bool DeviceHandler::IsInserted(int dev)
{
	if(dev == SD)
		return SD_Inserted() && sd.IsMounted(0);
	else if(dev >= USB1 && dev <= USB8)
		return usb.IsMounted(dev-USB1);

	return false;
}