This commit is contained in:
DevLarge 2021-01-06 10:46:39 +01:00
parent 1f1e8a7c40
commit bb44541ec6
3 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ exports.initRPC = function(genSettings, servSettings, initialDetails = 'Waiting
client.on('ready', () => {
logger.log('Discord RPC Connected')
client.setActivity(activity)
logger.log('Large comment: Discord connected with ' + servSettings.shortId)
})
client.login({clientId: genSettings.clientId}).catch(error => {

View File

@ -81,6 +81,12 @@ function setDownloadPercentage(value, max, percent = ((value/max)*100)){
*/
function setLaunchEnabled(val){
document.getElementById('launch_button').disabled = !val
if (clientInformation.shutdownRPC) {
loggerLanding.log('Large comment: ShutdownRPC')
}
if (clientInformation.onGameClose == true) {
loggerLanding.log('Large comment: Game Closed')
}
}
// Bind launch button

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 178 KiB