Added option to change the Java exec to the settings UI.

This commit is contained in:
Daniel Scalzi
2018-06-14 03:49:55 -04:00
parent 7cf0e1f049
commit 109c24bc79
7 changed files with 141 additions and 5 deletions

View File

@@ -313,12 +313,16 @@ function asyncSystemScan(launchAfter = true){
})
toggleOverlay(true, true)
// TODO Add option to not install Java x64.
} else {
// Java installation found, use this to launch the game.
ConfigManager.setJavaExecutable(m.result)
ConfigManager.save()
// We need to make sure that the updated value is on the settings UI.
// Just incase the settings UI is already open.
settingsJavaExecVal.value = m.result
populateJavaExecDetails(settingsJavaExecVal.value)
if(launchAfter){
dlAsync()
}