Skip to content

Commit

Permalink
Merge branch 'develop' into feature-java-21
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew authored Nov 19, 2023
2 parents d4b10e4 + ef715a6 commit 044e8a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ java {
def javaArgs = [
"-Xss8M", "-Dsun.java2d.d3d=false", "-Dsentry.environment=Production", "-Dfile.encoding=UTF-8",
"-Dpolyglot.engine.WarnInterpreterOnly=false",
"-Djava.util.Arrays.useLegacyMergeSort=true",
"-DMAPTOOL_DATADIR=.maptool-" + vendor.toLowerCase(), "-XX:+ShowCodeDetailsInExceptionMessages",
"--add-opens=java.desktop/java.awt=ALL-UNNAMED", "--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED",
"--add-opens=java.desktop/sun.awt.geom=ALL-UNNAMED", "--add-opens=java.base/java.util=ALL-UNNAMED",
Expand Down Expand Up @@ -137,7 +138,7 @@ spotless {

// org.openjfx.javafxplugin
javafx {
version = '20'
version = '21'
// modules = ['javafx.fxml', 'javafx.graphics']
modules = ['javafx.base', 'javafx.controls', 'javafx.media', 'javafx.swing', 'javafx.web', 'javafx.fxml', 'javafx.graphics']
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/rptools/maptool/client/AppUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ public static Path getInstallDirectory() {
path = path.getParent().getParent().getParent();
} else { // First try to find MapTool* directory in path
while (path != null) {
if (path.getFileName() == null) {
// We have gone too far!
path = null;
break;
}
if (path.getFileName().toString().matches("(?i).*maptool.*")) {
break;
}
Expand Down

0 comments on commit 044e8a5

Please sign in to comment.