Merge pull request #209 from Abextm/fix-lib-creation

Properly create .Bytecode-Viewer/libs if it doesn't exist
This commit is contained in:
Kalen (Konloch) Kinloch 2018-07-13 22:19:07 -06:00 committed by GitHub
commit 242466de17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,11 +285,11 @@ public class Boot {
}
public static File libsDir() {
File dir = new File(System.getProperty("user.home"), ".Bytecode-Viewer");
File dir = new File(System.getProperty("user.home"), ".Bytecode-Viewer/libs");
while (!dir.exists())
dir.mkdirs();
return new File(dir, "libs");
return dir;
}
public static void setState(String s) {