diff --git a/src-tauri/src/yae/mod.rs b/src-tauri/src/yae/mod.rs index 2c1b4122..1e269e89 100644 --- a/src-tauri/src/yae/mod.rs +++ b/src-tauri/src/yae/mod.rs @@ -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); diff --git a/src/components/pageConfig/tc-dataDir.vue b/src/components/pageConfig/tc-dataDir.vue index 3037cf72..c07d0529 100644 --- a/src/components/pageConfig/tc-dataDir.vue +++ b/src/components/pageConfig/tc-dataDir.vue @@ -146,7 +146,7 @@ async function confirmCGD(): Promise { const oriEmpty = gameDir.value === "未设置"; const editCheck = await showDialog.check( oriEmpty ? "确认设置游戏目录?" : "确认修改游戏目录?", - oriEmpty ? "请选择启动器所在目录" : `当前:${gameDir.value}`, + oriEmpty ? "请选择 Yuanshen.exe 所在目录" : `当前:${gameDir.value}`, ); if (!editCheck) { showSnackbar.cancel(oriEmpty ? "已取消设置" : "已取消修改");