Subversion Repositories spk

Rev

Rev 143 | Rev 156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 143 Rev 155
Line 1266... Line 1266...
1266
	}
1266
	}
1267
 
1267
 
1268
	return Utils::String::Null();
1268
	return Utils::String::Null();
1269
}
1269
}
1270
 
1270
 
1271
FileType GetFileTypeFromString ( CyString type )
1271
FileType GetFileTypeFromString(const Utils::String &type)
1272
{
1272
{
1273
	CyString ltype = type.ToLower();
1273
	Utils::String ltype = type.lower();
1274
	if ( ltype == "script" )
1274
	if ( ltype == "script" || ltype == "scriptpck")
1275
		return FILETYPE_SCRIPT;
1275
		return FILETYPE_SCRIPT;
1276
	else if ( ltype == "text" )
1276
	else if ( ltype == "text" )
1277
		return FILETYPE_TEXT;
1277
		return FILETYPE_TEXT;
1278
	else if ( ltype == "readme" )
1278
	else if ( ltype == "readme" )
1279
		return FILETYPE_README;
1279
		return FILETYPE_README;