Changeset 776 for java/ProgramSettings


Ignore:
Timestamp:
Apr 2, 2013, 2:16:52 AM (12 years ago)
Author:
alloc
Message:

AEI2.00:

  • Added "-usewd" param to use working directory instead of jar path
File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/ProgramSettings/src/net/oni2/SettingsManager.java

    r726 r776  
    99import java.util.HashMap;
    1010
    11 
    1211import com.thoughtworks.xstream.XStream;
    1312import com.thoughtworks.xstream.io.xml.StaxDriver;
     
    2524
    2625        private static boolean debugRun = false;
     26        private static boolean useWorkingDir = false;
    2727
    2828        private HashMap<String, Object> prefs = new HashMap<String, Object>();
     
    5555        public static boolean isDebug() {
    5656                return debugRun;
     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;
    5772        }
    5873
Note: See TracChangeset for help on using the changeset viewer.