imgtools/romtools/rofsbuild/r_obey.cpp
changeset 707 ccd52fece6ff
parent 675 02e65118a746
--- a/imgtools/romtools/rofsbuild/r_obey.cpp	Wed Nov 17 13:47:08 2010 +0800
+++ b/imgtools/romtools/rofsbuild/r_obey.cpp	Mon Nov 29 15:29:25 2010 +0800
@@ -1484,33 +1484,9 @@
 		return EFalse;
 	}
 
-	if (aKeyword!=EKeywordHideV2) {
-
-		// check the PC file exists
-		char* nname = NormaliseFileName(iReader.Word(1)); 
-		if(gIsOBYUTF8 && !UniConv::IsPureASCIITextStream(nname))
-		{
-			char* tempnname = strdup(nname);
-			unsigned int namelen = 0;
-			if(UniConv::UTF82DefaultCodePage(tempnname, strlen(tempnname), &nname, &namelen) < 0)
-			{
-				Print(EError, "Invalid filename encoding: %s\n", tempnname);
-				free(tempnname);
-				delete[] nname;
-				return EFalse;
-			}
-			free(tempnname);
-		}
-		ifstream test(nname);
-		if (!test) {
-			Print(EError,"Cannot open file %s for input.\n",iReader.Word(1));
-			iMissingFiles++;
-		}
-		test.close();
-		delete []nname;
+	if (aKeyword==EKeywordHideV2) {
+		epocPathStart=1;
 	}
-	else
-		epocPathStart=1;
 
 	iNumberOfFiles++;