mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 11:43:48 +02:00
Merge overlays, move overlay to separate process (#44)
* refactor: merge two overlay offScreenBrowser into one * Electron support for shared overlay * Separate overlay into its own process * fix: invalid overlay texture size * Handle duplicate processes * Remove logging --------- Co-authored-by: pa <maplenagisa@gmail.com> Co-authored-by: rs189 <35667100+rs189@users.noreply.github.com>
This commit is contained in:
@@ -146,11 +146,7 @@ export const useGameStore = defineStore('Game', () => {
|
||||
}
|
||||
|
||||
// use in C#
|
||||
async function updateIsGameRunning(
|
||||
isGameRunningArg,
|
||||
isSteamVRRunningArg,
|
||||
isHmdAfkArg
|
||||
) {
|
||||
async function updateIsGameRunning(isGameRunningArg, isSteamVRRunningArg) {
|
||||
const avatarStore = useAvatarStore();
|
||||
if (advancedSettingsStore.gameLogDisabled) {
|
||||
return;
|
||||
@@ -186,11 +182,15 @@ export const useGameStore = defineStore('Game', () => {
|
||||
isSteamVRRunning.value = isSteamVRRunningArg;
|
||||
console.log('isSteamVRRunning:', isSteamVRRunningArg);
|
||||
}
|
||||
vrStore.updateOpenVR();
|
||||
}
|
||||
|
||||
// use in C#
|
||||
function updateIsHmdAfk(isHmdAfkArg) {
|
||||
if (isHmdAfkArg !== isHmdAfk.value) {
|
||||
isHmdAfk.value = isHmdAfkArg;
|
||||
console.log('isHmdAfk:', isHmdAfkArg);
|
||||
console.log('isHmdAfk', isHmdAfkArg);
|
||||
}
|
||||
vrStore.updateOpenVR();
|
||||
}
|
||||
|
||||
async function checkVRChatDebugLogging() {
|
||||
@@ -258,6 +258,7 @@ export const useGameStore = defineStore('Game', () => {
|
||||
getVRChatCacheSize,
|
||||
updateIsGameRunning,
|
||||
getVRChatRegistryKey,
|
||||
checkVRChatDebugLogging
|
||||
checkVRChatDebugLogging,
|
||||
updateIsHmdAfk
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user