Changeset 852 for java/ProgramSettings/src
- Timestamp:
- May 3, 2013, 2:25:21 PM (12 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
java/ProgramSettings/src/net/oni2/SettingsManager.java
r776 r852 23 23 private static SettingsManager instance = new SettingsManager(); 24 24 25 private static boolean debugRun = false;26 private static boolean useWorkingDir = false;27 28 25 private HashMap<String, Object> prefs = new HashMap<String, Object>(); 29 26 30 27 private boolean printNamesNotInMap = false; 31 28 32 private boolean offlineMode = false; 33 private boolean noCacheUpdate = false; 29 @SuppressWarnings("unused") 30 private transient boolean offlineMode = false; 31 @SuppressWarnings("unused") 32 private transient boolean noCacheUpdate = false; 34 33 35 34 /** … … 40 39 public static SettingsManager getInstance() { 41 40 return instance; 42 }43 44 /**45 * @param debug46 * Debug mode47 */48 public static void setDebug(boolean debug) {49 debugRun = debug;50 }51 52 /**53 * @return Is debug run54 */55 public static boolean isDebug() {56 return debugRun;57 }58 59 /**60 * @param useWd61 * Use working directory instead of jar path62 */63 public static void setUseWorkingDir(boolean useWd) {64 useWorkingDir = useWd;65 }66 67 /**68 * @return Do we want to use working directory69 */70 public static boolean getUseWorkingDir() {71 return useWorkingDir;72 }73 74 /**75 * @return Is offline?76 */77 public boolean isOfflineMode() {78 return offlineMode;79 }80 81 /**82 * @param offline83 * Is offline?84 */85 public void setOfflineMode(boolean offline) {86 this.offlineMode = offline;87 }88 89 /**90 * @return Is in noCacheUpdate mode?91 */92 public boolean isNoCacheUpdateMode() {93 return noCacheUpdate;94 }95 96 /**97 * @param noCacheUpdate98 * Is in noCacheUpdate mode?99 */100 public void setNoCacheUpdateMode(boolean noCacheUpdate) {101 this.noCacheUpdate = noCacheUpdate;102 41 } 103 42
Note:
See TracChangeset
for help on using the changeset viewer.