Skip to content

Commit

Permalink
Merge pull request #4311 from thelsing/feature-devmode
Browse files Browse the repository at this point in the history
Feature devmode
  • Loading branch information
cwisniew authored Sep 30, 2023
2 parents 9625df5 + 3134280 commit 4f87ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ sourceSets {
run {
args = ['-v=' + appSemVer]
applicationDefaultJvmArgs = ["-Xss8M", "-Dsun.java2d.d3d=false", "-Dsentry.environment=Development", "-Dfile.encoding=UTF-8",
"-Dpolyglot.engine.WarnInterpreterOnly=false",
"-Dpolyglot.engine.WarnInterpreterOnly=false","-DRUN_FROM_IDE=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
5 changes: 1 addition & 4 deletions src/main/java/net/rptools/maptool/client/MapTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,7 @@ public static String getVersion() {
}

public static boolean isDevelopment() {
return "DEVELOPMENT".equals(version)
|| "@buildNumber@".equals(version)
|| "0.0.1".equals(version)
|| (version != null && version.startsWith("SNAPSHOT"));
return System.getProperty("RUN_FROM_IDE") != null;
}

public static ServerPolicy getServerPolicy() {
Expand Down

0 comments on commit 4f87ecc

Please sign in to comment.