MCPcopy Create free account
hub / github.com/Neop/mudmap2 / getHome

Method getHome

src/main/java/mudmap2/Environment.java:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 public static final String SOURCEFORGE_URL = "http://sf.net/p/mudmap";
39
40 public static String getHome(){
41 String ret;
42 if(System.getProperty("os.name").toLowerCase().contains("win")){
43 // operating system Windows
44 ret = System.getenv().get("APPDATA");
45 } else {
46 // other operating systems
47 ret = System.getProperty("user.home");
48 }
49 return ret;
50 }
51
52 /**
53 * Gets the user data path

Callers

nothing calls this directly

Calls 2

containsMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected