Skip to content

Commit bbf13e5

Browse files
committed
XstartOnFirstThread vmarg only on mac.
1 parent 9815c5e commit bbf13e5

File tree

1 file changed

+7
-1
lines changed
  • adventure-editor/src/main/resources/projectTmpl/desktop

1 file changed

+7
-1
lines changed

adventure-editor/src/main/resources/projectTmpl/desktop/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ targetCompatibility = 1.8
66

77
sourceSets.main.resources.srcDirs += [rootProject.file('assets').absolutePath]
88
mainClassName = "com.bladecoder.engine.DesktopLauncher"
9-
applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
9+
//applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
1010

1111
dependencies {
1212
implementation project(":core")
@@ -17,13 +17,19 @@ dependencies {
1717
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
1818
}
1919

20+
def os = System.properties['os.name'].toLowerCase()
21+
2022
run {
2123
standardInput = System.in
2224
ignoreExitValue = true
2325

2426
if (project.hasProperty("appArgs")) {
2527
args Eval.me(appArgs)
2628
}
29+
30+
if (os.contains('mac')) {
31+
jvmArgs = ["-XstartOnFirstThread"]
32+
}
2733
}
2834

2935

0 commit comments

Comments
 (0)