Bug fixes

This commit is contained in:
Natsumi
2025-04-18 22:29:54 +10:00
parent ef7f33e131
commit c17b6f2f3a
7 changed files with 26 additions and 12 deletions

View File

@@ -13572,7 +13572,7 @@ console.log(`isLinux: ${LINUX}`);
$app.methods.getVRChatCacheSize = async function () {
this.VRChatCacheSizeLoading = true;
var totalCacheSize = 20;
var totalCacheSize = 30;
this.VRChatTotalCacheSize = totalCacheSize;
var usedCacheSize = await AssetBundleManager.GetCacheSize();
this.VRChatUsedCacheSize = (usedCacheSize / 1073741824).toFixed(2);

View File

@@ -1175,7 +1175,7 @@
"delete_cache": "删除缓存",
"delete_old_cache": "从缓存中删除无效数据",
"sweep_cache": "清理缓存",
"max_cache_size": "最大缓存大小 [GB](至少 20GB",
"max_cache_size": "最大缓存大小 [GB](至少 30GB",
"cache_expiry_delay": "缓存保存时长 [天](至少 30 天)",
"cache_directory": "缓存文件夹位置",
"picture_directory": "截图文件夹位置",

View File

@@ -1191,7 +1191,7 @@
"delete_cache": "刪除快取",
"delete_old_cache": "從快取中刪除舊版本",
"sweep_cache": "清理快取",
"max_cache_size": "最大快取大小 [GB] (最小 20GB",
"max_cache_size": "最大快取大小 [GB] (最小 30GB",
"cache_expiry_delay": "快取保存時長 [日] (最小 30",
"cache_directory": "覆蓋快取資料夾位置",
"picture_directory": "覆蓋圖片資料夾位置",

View File

@@ -10,7 +10,10 @@
@close="closeDialog">
<div style="font-size: 12px">
{{ t('dialog.launch_options.description') }} <br />
{{ t('dialog.launch_options.example') }} <el-tag size="mini">--fps=144</el-tag>
{{ t('dialog.launch_options.example') }}
<el-tag size="mini"
>--fps=144 --enable-debug-gui --enable-sdk-log-levels --enable-udon-debug-logging
</el-tag>
</div>
<el-input
@@ -30,7 +33,7 @@
<el-input
v-model="launchOptionsDialog.vrcLaunchPathOverride"
type="textarea"
placeholder="C:\\Program Files (x86)\\Steam\\steamapps\\common\\VRChat"
placeholder="C:\Program Files (x86)\Steam\steamapps\common\VRChat"
:rows="1"
style="display: block; margin-top: 10px">
</el-input>
@@ -71,6 +74,7 @@
defineProps({
isLaunchOptionsDialogVisible: {
type: Boolean,
default: false,
required: true
}
});

View File

@@ -10,7 +10,7 @@
@mouseup.native="dialogMouseUp">
<div v-once style="height: 350px; overflow: hidden scroll; word-break: break-all">
<div>
<span>{{ t('dialog.open_source.description') }} }}</span>
<span>{{ t('dialog.open_source.description') }}</span>
</div>
<div v-for="lib in openSourceSoftwareLicenses" :key="lib.name" style="margin-top: 15px">

View File

@@ -98,7 +98,6 @@
v-if="screenshotMetadataDialog.metadata.world"
:location="screenshotMetadataDialog.metadata.world.instanceId"
:hint="screenshotMetadataDialog.metadata.world.name" />
<br />
<display-name
v-if="screenshotMetadataDialog.metadata.author"
:userid="screenshotMetadataDialog.metadata.author.id"
@@ -160,7 +159,6 @@
style="margin-left: 5px; color: #909399; font-family: monospace"
v-text="'(' + user.pos.x + ', ' + user.pos.y + ', ' + user.pos.z + ')'"></span>
<br />
<br />
</span>
</div>
</el-dialog>

View File

@@ -157,10 +157,14 @@
<el-checkbox
v-model="VRChatConfigFile.picture_output_split_by_date"
@change="refreshDialogValues"
style="margin-top: 5px; display: block">
{{ t('dialog.config_json.picture_sort_by_date') }}
</el-checkbox>
<el-checkbox v-model="VRChatConfigFile.disableRichPresence" style="margin-top: 5px; display: block">
<el-checkbox
v-model="VRChatConfigFile.disableRichPresence"
@change="refreshDialogValues"
style="margin-top: 5px; display: block">
{{ t('dialog.config_json.disable_discord_presence') }}
</el-checkbox>
</div>
@@ -330,19 +334,27 @@
}
}
function refreshDialogValues() {
loading.value = true;
loading.value = false;
}
function setVRChatSpoutResolution(res) {
VRChatConfigFile.value.camera_spout_res_height = res.height;
VRChatConfigFile.value.camera_spout_res_width = res.width;
refreshDialogValues();
}
function setVRChatCameraResolution(res) {
VRChatConfigFile.value.camera_res_height = res.height;
VRChatConfigFile.value.camera_res_width = res.width;
refreshDialogValues();
}
function setVRChatScreenshotResolution(res) {
VRChatConfigFile.value.screenshot_res_height = res.height;
VRChatConfigFile.value.screenshot_res_width = res.width;
refreshDialogValues();
}
function getVRChatCameraResolution() {
@@ -398,9 +410,6 @@
if (config) {
try {
const parsedConfig = JSON.parse(config);
if (parsedConfig.picture_output_split_by_date === undefined) {
parsedConfig.picture_output_split_by_date = true;
}
VRChatConfigFile.value = { ...VRChatConfigFile.value, ...parsedConfig };
} catch {
$message({
@@ -410,6 +419,9 @@
throw new Error('Invalid JSON in config.json');
}
}
if (typeof VRChatConfigFile.value.picture_output_split_by_date === 'undefined') {
VRChatConfigFile.value.picture_output_split_by_date = true;
}
}
function closeDialog() {