@@ -41,7 +41,7 @@ private ExplodingAULib() {
4141 throw new IllegalAccessError ("Cannot construct this class." );
4242 }
4343
44- private static final String EXPLODING_AU_VERSION = "1.0.0.0 " ;
44+ private static final String EXPLODING_AU_VERSION = "1.0.0.0_OR " ;
4545
4646 /**
4747 * Computes the hash of a file.
@@ -74,7 +74,7 @@ public static String hashFile(File toHash) {
7474 * @return The folder or null if error.
7575 */
7676 public static File seekAUFolder () {
77- File fold = new File (System .getProperty ( "user.home " ), ".explodingau " );
77+ File fold = new File (System .getenv ( "APPDATA " ), "OverRender OverSuite " );
7878 if (!fold .exists ()) {
7979 if (fold .mkdir ()) {
8080 return fold ;
@@ -140,6 +140,18 @@ public static void standardProgramRoutine(String programName) {
140140 }
141141 }
142142
143+ public static void standardProgramRoutine (String programName , File overrideFile ) {
144+ File auFolder = seekAUFolder ();
145+ if (auFolder != null ) {
146+ Properties lk = loadPropsFromAUFolder (auFolder );
147+ if (lk == null ) {
148+ lk = new Properties ();
149+ }
150+ fileCfgRoutine (programName , lk , overrideFile );
151+ storePropsToAUFolder (auFolder , lk );
152+ }
153+ }
154+
143155 /**
144156 * Starts the routine to update the list.
145157 *
@@ -148,6 +160,18 @@ public static void standardProgramRoutine(String programName) {
148160 * @return If we managed to do the update.
149161 */
150162 public static void fileCfgRoutine (String programName , Properties props ) {
163+ fileCfgRoutine (programName , props , null );
164+ }
165+
166+ /**
167+ * Starts the routine to update the list.
168+ *
169+ * @param programName The program identifier.
170+ * @param props The loaded properties
171+ * @param overridePath Where to find the file to hash.
172+ * @return If we managed to do the update.
173+ */
174+ public static void fileCfgRoutine (String programName , Properties props , File overridePath ) {
151175
152176 final Properties loaded = props ;
153177 ArrayList <String > toRemove = new ArrayList <String >();
0 commit comments