disable osu integrated rpc when launcher has active rpc #1

Merged
HorizonCode merged 1 commits from next into master 2024-01-22 15:26:19 +00:00
2 changed files with 4 additions and 0 deletions

View File

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

View File

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