Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge branch 'link-components' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
BSoDium committed May 30, 2021
2 parents a98f8dc + e154db1 commit 3e1811b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file modified livrables/source3.jar
Binary file not shown.
13 changes: 13 additions & 0 deletions src/main/java/com/sevenmap/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

import com.sevenmap.core.Props;
import com.sevenmap.core.Runtime;
Expand Down Expand Up @@ -31,6 +34,16 @@ public static void main(String[] args) {
}

private static void createStyleJson(Props props) {

Path mainPath = Paths.get(props.getAppDataPath());

if (!Files.exists(mainPath)) {
try {
Files.createDirectories(mainPath);
} catch (Exception e) {
e.printStackTrace();
}
}
File f = new File(props.getAppDataPath() + props.getSettingFile());
if (!f.exists()) {
InputStream stream = null;
Expand Down

0 comments on commit 3e1811b

Please sign in to comment.