Added initial support of liteloader + optional submodules.

Liteloader is loaded as a library, with special launch conditions being executed when it is enabled. Litemods are constructed into a mod list and passed to liteloader via the --modRepo argument.

The launcher now supports optional submodules. These are parsed recursively, there is no depth limit. Typically the depth will be only 2 as litemods are optional submoduless of liteloader.
This commit is contained in:
Daniel Scalzi
2018-06-23 21:03:49 -04:00
parent 145a2fe77b
commit aa0e1a20ca
4 changed files with 205 additions and 39 deletions

View File

@@ -1500,12 +1500,11 @@ class AssetGuard extends EventEmitter {
switch(obType){
case 'forge-hosted':
case 'forge':
case 'liteloader':
case 'library':
obPath = path.join(this.commonPath, 'libraries', obPath)
break
case 'forgemod':
obPath = path.join(this.commonPath, 'modstore', obPath)
break
case 'litemod':
obPath = path.join(this.commonPath, 'modstore', obPath)
break