|
@@ -23,7 +23,7 @@
|
23
|
23
|
package dmdirc;
|
24
|
24
|
|
25
|
25
|
/**
|
26
|
|
- *
|
|
26
|
+ * Reads/writes the application's config file
|
27
|
27
|
* @author chris
|
28
|
28
|
*/
|
29
|
29
|
public class Config {
|
|
@@ -32,12 +32,21 @@ public class Config {
|
32
|
32
|
public Config() {
|
33
|
33
|
}
|
34
|
34
|
|
|
35
|
+ /**
|
|
36
|
+ * Returns the full path to the application's config file
|
|
37
|
+ * @return config file
|
|
38
|
+ */
|
35
|
39
|
private static String getConfigFile () {
|
36
|
40
|
return getConfigDir()+"dmdirc.xml";
|
37
|
41
|
}
|
38
|
42
|
|
|
43
|
+ /**
|
|
44
|
+ * Returns the application's config directory
|
|
45
|
+ * @return configuration directory
|
|
46
|
+ */
|
39
|
47
|
private static String getConfigDir () {
|
40
|
|
- return System.getProperty("user.home")+System.getProperty("file.seperator");
|
|
48
|
+ String fs = System.getProperty("file.seperator");
|
|
49
|
+ return System.getProperty("user.home")+fs+".DMDirc"+fs;
|
41
|
50
|
}
|
42
|
51
|
|
43
|
52
|
}
|