mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user