Native files are now stored in the OS temp directory.

Temp folder is deleted when minecraft is closed. If the Node.js process ends abruptly, the folder will not delete. As a dirty way to counter this, the directory we extract native files to is cleaned in the preloader. Maybe we'll come up with a more elegant solution in the future.
This commit is contained in:
Daniel Scalzi
2018-04-15 00:00:08 -04:00
parent 5475ac0c69
commit be39d60705
7 changed files with 53 additions and 29 deletions

View File

@@ -234,7 +234,7 @@ function asyncSystemScan(launchAfter = true){
sysAEx.on('message', (m) => {
if(m.content === 'validateJava'){
m.result = null
if(m.result == null){
// If the result is null, no valid Java installation was found.
// Show this information to the user.