Skip to content

Commit

Permalink
fix: add / to path if needed and new jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Draym committed Jul 31, 2022
1 parent abb3907 commit 438df7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified out/artifacts/DragonBallArena_jar/DragonBallArena.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion src/main/java/com/andres_k/utils/configs/GameInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ private GameInfo() {
JSONObject gameInfo = new JSONObject(FilesTools.readFile(ConfigPath.game_info));
this.name = gameInfo.getString("name");
this.version = gameInfo.getString("version");
this.gamePathTMP = System.getProperty("java.io.tmpdir") + "TMP_DLL_" + this.name;
String path = System.getProperty("java.io.tmpdir");
this.gamePathTMP = (path.endsWith("/") ? path : path + "/") + "TMP_DLL_" + this.name;
} catch (JSONException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 438df7f

Please sign in to comment.