Massive progress on implementing the new forge modlist format. I have been able to rewrite much of the launch process code to use this new method, and was able to successfully log into the game. Several bugs need to be worked on, however everything is in a good state so far.

This commit is contained in:
Daniel Scalzi
2017-11-19 03:48:21 -05:00
parent abbfb52c1b
commit dd7ae6bf56
6 changed files with 391 additions and 109 deletions

View File

@@ -705,6 +705,13 @@ function validateLogConfig(versionData, basePath){
})
}
/**
* Validate the distribution.
*
* @param {String} serverpackid - The id of the server to validate.
* @param {String} basePath - the absolute file path which will be prepended to the given relative paths.
* @returns {Promise.<Object>} - A promise which resolves to the server distribution object.
*/
function validateDistribution(serverpackid, basePath){
return new Promise(function(fulfill, reject){
_chainValidateDistributionIndex(basePath).then((value) => {
@@ -729,7 +736,7 @@ function validateDistribution(serverpackid, basePath){
}
}
instance.totaldlsize += instance.forge.dlsize*1
fulfill()
fulfill(serv)
})
})
}