[Index] Overlay experimenting

This commit is contained in:
Ducko 2021-12-12 22:22:43 +00:00
parent bfe3fb0fb5
commit ed88339cb8

View file

@ -15,7 +15,20 @@ if (appMode === 'overlay-host') {
const buildInfo = require('./utils/buildInfo');
if (buildInfo.newUpdater) {
require('./utils/u2LoadModulePath')('discord_overlay2');
const updater = require('./updater/updater');
const {
NEW_UPDATE_ENDPOINT
} = require('./Constants');
if (!updater.tryInitUpdater(buildInfo, NEW_UPDATE_ENDPOINT)) {
throw new Error('Failed to initialize modules in overlay host.');
}
updater.getUpdater().startCurrentVersionSync({
allowObsoleteHost: true
});
// require('./utils/u2LoadModulePath')('discord_overlay2');
} else {
require('./updater/moduleUpdater').initPathsOnly(buildInfo);
}