Linux: Make Discord Rich Presence work (#998)

* Linux: Make Discord Rich Presence work

* Fix file already exists

* Fix chmod file name
This commit is contained in:
rs189
2024-12-01 11:00:30 +00:00
committed by GitHub
parent cd42a9a207
commit 5e6c611264
6 changed files with 69 additions and 21 deletions

View File

@@ -22,7 +22,8 @@ export default class extends baseClass {
ipcTimeout: 0,
nextClearVRCXCacheCheck: 0,
nextDiscordUpdate: 0,
nextAutoStateChange: 0
nextAutoStateChange: 0,
nextGameRunningCheck: 0,
};
_methods = {
@@ -75,6 +76,10 @@ export default class extends baseClass {
this.nextAutoStateChange = 3;
this.updateAutoStateChange();
}
if (--this.nextGameRunningCheck <= 0) {
this.nextGameRunningCheck = 3;
AppApi.CheckGameRunning();
}
}
} catch (err) {
API.isRefreshFriendsLoading = false;