This commit is contained in:
Natsumi
2025-09-26 05:27:18 +12:00
parent 001a79b83c
commit b0517237ed
8 changed files with 46 additions and 95 deletions
+1 -1
View File
@@ -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') {
+7 -12
View File
@@ -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
View File
@@ -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;
+1 -1
View File
@@ -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;
}