mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Shared isGameRunning
This commit is contained in:
+1
-1
@@ -3413,7 +3413,7 @@ speechSynthesis.getVoices();
|
|||||||
AppApi.CheckGameRunning().then(([isGameRunning, isGameNoVR]) => {
|
AppApi.CheckGameRunning().then(([isGameRunning, isGameNoVR]) => {
|
||||||
if (isGameRunning !== this.isGameRunning) {
|
if (isGameRunning !== this.isGameRunning) {
|
||||||
this.isGameRunning = isGameRunning;
|
this.isGameRunning = isGameRunning;
|
||||||
sharedRepository.setBool('isGameRunning', isGameRunning);
|
sharedRepository.setBool('is_game_running', isGameRunning);
|
||||||
Discord.SetTimestamps(Date.now(), 0);
|
Discord.SetTimestamps(Date.now(), 0);
|
||||||
}
|
}
|
||||||
this.isGameNoVR = isGameNoVR;
|
this.isGameNoVR = isGameNoVR;
|
||||||
|
|||||||
+2
-1
@@ -616,6 +616,7 @@ speechSynthesis.getVoices();
|
|||||||
try {
|
try {
|
||||||
this.currentTime = new Date().toJSON();
|
this.currentTime = new Date().toJSON();
|
||||||
this.currentUserStatus = sharedRepository.getString('current_user_status');
|
this.currentUserStatus = sharedRepository.getString('current_user_status');
|
||||||
|
this.isGameRunning = sharedRepository.getBool('is_game_running');
|
||||||
if (configRepository.getBool('VRCX_hideDevicesFromFeed') === false) {
|
if (configRepository.getBool('VRCX_hideDevicesFromFeed') === false) {
|
||||||
AppApi.GetVRDevices().then((devices) => {
|
AppApi.GetVRDevices().then((devices) => {
|
||||||
devices.forEach((device) => {
|
devices.forEach((device) => {
|
||||||
@@ -664,7 +665,7 @@ speechSynthesis.getVoices();
|
|||||||
var _feeds = this.feeds;
|
var _feeds = this.feeds;
|
||||||
this.feeds = feeds;
|
this.feeds = feeds;
|
||||||
|
|
||||||
if ((this.appType === '2') && sharedRepository.getBool('isGameRunning')) {
|
if ((this.appType === '2') && this.isGameRunning) {
|
||||||
var map = {};
|
var map = {};
|
||||||
_feeds.forEach((feed) => {
|
_feeds.forEach((feed) => {
|
||||||
if (feed.type === 'OnPlayerJoined' ||
|
if (feed.type === 'OnPlayerJoined' ||
|
||||||
|
|||||||
Reference in New Issue
Block a user