public static File getMcDir()
{
String home = System.getProperty("user.home", "");
String path = Settings.pathconst.replaceAll("%SERVERNAME%", getClientName());
switch(getPlatform())
{
case 1: return new File(System.getProperty("user.home", ""), path);
case 2:
String appData = System.getenv(Settings.basedir);
if(appData != null) return new File(appData, path);
else return new File(home, path);
case 3: return new File(home, "Library/Application Support/" + path);
default: return new File(home, path);
}
}