disable osu integrated rpc when launcher has active rpc

This commit is contained in:
HorizonCode 2024-01-22 16:25:29 +01:00
parent 779ff0c009
commit 75d444b1d5
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");