🚸 修正hint

This commit is contained in:
BTMuli
2026-01-18 17:44:02 +08:00
parent c1ce2def26
commit f5372b8e05
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ pub fn call_yae_dll(
is_msix: bool,
) -> Result<(), String> {
let mut dll_path = app_handle.path().app_config_dir().unwrap().join("YaeAchievementLib.dll");
if (is_msix) {
if is_msix {
dll_path = app_handle.path().document_dir().unwrap().join("TeyvatGuide\\YaeAchievementLib.dll");
}
dbg!(&dll_path);

View File

@@ -146,7 +146,7 @@ async function confirmCGD(): Promise<void> {
const oriEmpty = gameDir.value === "未设置";
const editCheck = await showDialog.check(
oriEmpty ? "确认设置游戏目录?" : "确认修改游戏目录?",
oriEmpty ? "请选择启动器所在目录" : `当前:${gameDir.value}`,
oriEmpty ? "请选择 Yuanshen.exe 所在目录" : `当前:${gameDir.value}`,
);
if (!editCheck) {
showSnackbar.cancel(oriEmpty ? "已取消设置" : "已取消修改");