Merge pull request 'disable osu integrated rpc when launcher has active rpc' (#1) from next into master

Reviewed-on: #1
This commit is contained in:
HorizonCode 2024-01-22 15:26:19 +00:00
commit 0f5eab873f
2 changed files with 4 additions and 0 deletions

View File

@ -60,4 +60,5 @@ module.exports = {
richPresence.setActivity(currentStatus); richPresence.setActivity(currentStatus);
} }
}, },
hasPresence: () => richPresence != undefined,
}; };

View File

@ -486,6 +486,9 @@ function registerIPCPipes() {
const userConfig = getUserConfig(osuPath); const userConfig = getUserConfig(osuPath);
richPresence.updateVersion(await userConfig.get("LastVersion")); richPresence.updateVersion(await userConfig.get("LastVersion"));
richPresence.update(); richPresence.update();
if (richPresence.hasPresence) {
await userConfig.set("DiscordRichPresence", "0");
}
await userConfig.set("ShowInterfaceDuringRelax", "1"); await userConfig.set("ShowInterfaceDuringRelax", "1");
if (currentUser) { if (currentUser) {
await userConfig.set("CredentialEndpoint", "ez-pp.farm"); await userConfig.set("CredentialEndpoint", "ez-pp.farm");