Skip to content

Commit 7d65486

Browse files
Bug fix
1 parent 1290adf commit 7d65486

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/io/github/explodingbottle/explodingau/ExplodingAULib.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,13 @@ public static void fileCfgRoutine(String programName, Properties props, File ove
198198
});
199199
if (programName != null) {
200200
try {
201-
File location = new File(
202-
ExplodingAULib.class.getProtectionDomain().getCodeSource().getLocation().toURI());
201+
File location = null;
202+
if (overridePath != null) {
203+
location = overridePath;
204+
} else {
205+
location = new File(
206+
ExplodingAULib.class.getProtectionDomain().getCodeSource().getLocation().toURI());
207+
}
203208
if (location != null && !location.isDirectory()) {
204209
String fHash = hashFile(location);
205210
loaded.put(location.getAbsolutePath(), programName + ";" + fHash);

0 commit comments

Comments
 (0)