mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Inject common/instance dir.
This commit is contained in:
parent
d9291d82e5
commit
13f86339bb
@ -6,6 +6,8 @@ exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/d
|
|||||||
|
|
||||||
const api = new DistributionAPI(
|
const api = new DistributionAPI(
|
||||||
ConfigManager.getLauncherDirectory(),
|
ConfigManager.getLauncherDirectory(),
|
||||||
|
null, // Injected forcefully by the preloader.
|
||||||
|
null, // Injected forcefully by the preloader.
|
||||||
exports.REMOTE_DISTRO_URL,
|
exports.REMOTE_DISTRO_URL,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
@ -17,6 +17,11 @@ logger.info('Loading..')
|
|||||||
// Load ConfigManager
|
// Load ConfigManager
|
||||||
ConfigManager.load()
|
ConfigManager.load()
|
||||||
|
|
||||||
|
// Yuck!
|
||||||
|
// TODO Fix this
|
||||||
|
DistroAPI['commonDir'] = ConfigManager.getCommonDirectory()
|
||||||
|
DistroAPI['instanceDir'] = ConfigManager.getInstanceDirectory()
|
||||||
|
|
||||||
// Load Strings
|
// Load Strings
|
||||||
LangLoader.loadLanguage('en_US')
|
LangLoader.loadLanguage('en_US')
|
||||||
|
|
||||||
|
@ -515,6 +515,7 @@ async function dlAsync(login = true) {
|
|||||||
|
|
||||||
const fullRepairModule = new FullRepair(
|
const fullRepairModule = new FullRepair(
|
||||||
ConfigManager.getCommonDirectory(),
|
ConfigManager.getCommonDirectory(),
|
||||||
|
ConfigManager.getInstanceDirectory(),
|
||||||
ConfigManager.getLauncherDirectory(),
|
ConfigManager.getLauncherDirectory(),
|
||||||
ConfigManager.getSelectedServer(),
|
ConfigManager.getSelectedServer(),
|
||||||
DistroAPI.isDevMode()
|
DistroAPI.isDevMode()
|
||||||
|
Loading…
Reference in New Issue
Block a user