ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/ProgramSettings/src/net/oni2/SettingsManager.java
(Generate patch)

Comparing java/ProgramSettings/src/net/oni2/SettingsManager.java (file contents):
Revision 726 by alloc, Thu Mar 21 11:45:28 2013 UTC vs.
Revision 776 by alloc, Tue Apr 2 00:16:52 2013 UTC

# Line 8 | Line 8 | import java.io.IOException;
8   import java.io.Serializable;
9   import java.util.HashMap;
10  
11
11   import com.thoughtworks.xstream.XStream;
12   import com.thoughtworks.xstream.io.xml.StaxDriver;
13  
# Line 24 | Line 23 | public class SettingsManager implements
23          private static SettingsManager instance = new SettingsManager();
24  
25          private static boolean debugRun = false;
26 +        private static boolean useWorkingDir = false;
27  
28          private HashMap<String, Object> prefs = new HashMap<String, Object>();
29  
# Line 57 | Line 57 | public class SettingsManager implements
57          }
58  
59          /**
60 +         * @param useWd
61 +         *            Use working directory instead of jar path
62 +         */
63 +        public static void setUseWorkingDir(boolean useWd) {
64 +                useWorkingDir = useWd;
65 +        }
66 +
67 +        /**
68 +         * @return Do we want to use working directory
69 +         */
70 +        public static boolean getUseWorkingDir() {
71 +                return useWorkingDir;
72 +        }
73 +
74 +        /**
75           * @return Is offline?
76           */
77          public boolean isOfflineMode() {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)