mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Slop
This commit is contained in:
@@ -646,7 +646,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
||||
L.shortName = instance.shortName;
|
||||
}
|
||||
instance.$location = L;
|
||||
L.user = null;
|
||||
L.user = {};
|
||||
if (L.userId) {
|
||||
ref = userStore.cachedUsers.get(L.userId);
|
||||
if (typeof ref === 'undefined') {
|
||||
|
||||
@@ -122,18 +122,13 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
|
||||
}
|
||||
}
|
||||
if (LINUX && --state.nextGameRunningCheck <= 0) {
|
||||
if (WINDOWS) {
|
||||
state.nextGameRunningCheck = 3;
|
||||
AppApi.CheckGameRunning();
|
||||
} else {
|
||||
state.nextGameRunningCheck = 1;
|
||||
gameStore.updateIsGameRunning(
|
||||
await AppApi.IsGameRunning(),
|
||||
await AppApi.IsSteamVRRunning(),
|
||||
false
|
||||
);
|
||||
vrStore.vrInit(); // TODO: make this event based
|
||||
}
|
||||
state.nextGameRunningCheck = 1;
|
||||
gameStore.updateIsGameRunning(
|
||||
await AppApi.IsGameRunning(),
|
||||
await AppApi.IsSteamVRRunning(),
|
||||
false
|
||||
);
|
||||
vrStore.vrInit(); // TODO: make this event based
|
||||
}
|
||||
if (--state.nextDatabaseOptimize <= 0) {
|
||||
state.nextDatabaseOptimize = 86400; // 1 day
|
||||
|
||||
+5
-15
@@ -1020,7 +1020,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
});
|
||||
}
|
||||
D.$location = L;
|
||||
L.user = null;
|
||||
L.user = {};
|
||||
if (L.userId) {
|
||||
ref = cachedUsers.get(L.userId);
|
||||
if (typeof ref === 'undefined') {
|
||||
@@ -1103,9 +1103,10 @@ export const useUserStore = defineStore('User', () => {
|
||||
}
|
||||
D.users = users;
|
||||
if (
|
||||
L.worldId &&
|
||||
currentLocation === L.tag &&
|
||||
playersInInstance.size > 0
|
||||
(L.worldId &&
|
||||
currentLocation === L.tag &&
|
||||
playersInInstance.size > 0) ||
|
||||
!L.isRealInstance
|
||||
) {
|
||||
D.instance = {
|
||||
id: L.instanceId,
|
||||
@@ -1117,17 +1118,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
ref: {}
|
||||
};
|
||||
}
|
||||
if (!L.isRealInstance) {
|
||||
D.instance = {
|
||||
id: L.instanceId,
|
||||
tag: L.tag,
|
||||
$location: L,
|
||||
friendCount: 0,
|
||||
users: [],
|
||||
shortName: '',
|
||||
ref: {}
|
||||
};
|
||||
}
|
||||
const instanceRef = instanceStore.cachedInstances.get(L.tag);
|
||||
if (typeof instanceRef !== 'undefined') {
|
||||
D.instance.ref = instanceRef;
|
||||
|
||||
@@ -174,7 +174,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
'VRCX_lastVRCXVersion',
|
||||
currentVersion.value
|
||||
);
|
||||
return state.branch === 'Stable' && !!lastVersion;
|
||||
return state.branch === 'Stable' && lastVersion;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user