From 77fecb0cd91896eff6fda9bdcfff7bc2118781f8 Mon Sep 17 00:00:00 2001 From: tantricity Date: Fri, 18 Jun 2010 23:40:44 +0000 Subject: [PATCH] check if devoptab exists. if yes, return false. --- source/libfat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/libfat.c b/source/libfat.c index 09aae70..cf60905 100644 --- a/source/libfat.c +++ b/source/libfat.c @@ -74,6 +74,11 @@ bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSec if(!name || !interface) return false; + char devname[10]; + sprintf(devname, "%s:", name); + if(FindDevice(devname)) + return false; + if(!interface->startup()) return false;