Began working on launching minecraft process. Implementing hash validation for asset downloads. Full integration for the latter will be complete soon.

This commit is contained in:
Daniel Scalzi
2017-04-28 03:59:28 -04:00
parent ef420d4ba6
commit cf0afeb957
4 changed files with 108 additions and 17 deletions

View File

@@ -18,15 +18,16 @@ function createWindow() {
win.setMenu(null)
//Code for testing, marked for removal one it's properly implemented.
/*const assetdl = require('./app/assets/js/assetdownload.js')
const assetdl = require('./app/assets/js/assetdownload.js')
const basePath = path.join(__dirname, 'mcfiles')
const dataPromise = assetdl.parseVersionData('1.11.2', basePath)
dataPromise.then(function(data){
assetdl.downloadAssets(data, basePath)
assetdl.downloadClient(data, basePath)
assetdl.downloadLogConfig(data, basePath)
assetdl.downloadLibraries(data, basePath)
})*/
//assetdl.downloadClient(data, basePath)
//assetdl.downloadLogConfig(data, basePath)
//assetdl.downloadLibraries(data, basePath)
//require('./app/assets/js/launchprocess.js').launchMinecraft(data, basePath)
})
win.on('closed', () => {
win = null