private static void initGameFolder(){
  String defaultFolder=System.getProperty("user.home") + STENDHAL_FOLDER;
  String unixLikes="AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris";
  String system=System.getProperty("os.name");
  if (system.matches(unixLikes)) {
    File f=new File(defaultFolder + "user.dat");
    if (!f.exists()) {
      gameFolder=System.getProperty("user.home") + separator + ".config"+ separator+ STENDHAL_FOLDER;
      return;
    }
  }
  gameFolder=defaultFolder;
}

private static void initGameFolder ( ) { String defaultFolder = System . getProperty ( "user.home" ) + STENDHAL_FOLDER ; String unixLikes = "AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris" ; String system = System . getProperty ( "os.name" ) ; if ( system . matches ( unixLikes ) ) { File f = new File ( defaultFolder + "user.dat" ) ; if ( ! f . exists ( ) ) { gameFolder = System . getProperty ( "user.home" ) + separator + ".config" + separator + STENDHAL_FOLDER ; return ; } } gameFolder = defaultFolder ; }
initialize the client game directory . < p > note : if you change this , change also corresponding code in bootstrap . java
