Game now saves to OS-specific data directory. Fixed issue where logs folder did not save to correct location. Fixed issue with authentication code. Continuing work on Java validation code.

This commit is contained in:
Daniel Scalzi
2018-03-31 13:05:05 -04:00
parent f8131d9322
commit 13cc555afd
5 changed files with 115 additions and 13 deletions

View File

@@ -267,6 +267,18 @@ class JavaGuard extends EventEmitter {
})
}
_headOracleJREDlSize(url){
return new Promise((resolve, reject) => {
request.head(url, (err, resp, body) => {
if(err){
reject(err)
} else {
resolve(resp.headers['content-length'])
}
})
})
}
async _downloadOracleJRE(acceptLicense, dir){
if(!acceptLicense){