Random fixes

This commit is contained in:
Natsumi
2025-10-20 13:22:22 +11:00
parent b4cafe2f3d
commit 97ef396ec9
16 changed files with 79 additions and 22 deletions
+14 -5
View File
@@ -397,6 +397,10 @@ export const useVrcxStore = defineStore('Vrcx', () => {
location.worldId,
advancedSettingsStore.screenshotHelperModifyFilename
);
if (!newPath) {
console.error('Failed to add screenshot metadata', path);
return;
}
console.log('Screenshot metadata added', newPath);
}
if (advancedSettingsStore.screenshotHelperCopyToClipboard) {
@@ -618,11 +622,16 @@ export const useVrcxStore = defineStore('Vrcx', () => {
async function backupVrcRegistry(name) {
let regJson;
if (WINDOWS) {
regJson = await AppApi.GetVRChatRegistry();
} else {
regJson = await AppApi.GetVRChatRegistryJson();
regJson = JSON.parse(regJson);
try {
if (WINDOWS) {
regJson = await AppApi.GetVRChatRegistry();
} else {
regJson = await AppApi.GetVRChatRegistryJson();
regJson = JSON.parse(regJson);
}
} catch (e) {
console.error('Failed to get VRChat registry for backup:', e);
return;
}
const newBackup = {
name,