♻️ msix环境下将dll移动到文档目录

#206
This commit is contained in:
BTMuli
2026-01-18 17:28:44 +08:00
parent 1bd2fa34d3
commit c1ce2def26
7 changed files with 56 additions and 14 deletions

View File

@@ -740,13 +740,17 @@ async function tryLaunchGame(): Promise<void> {
}
return;
}
const tryCopy = await tryCopyYae();
if (!tryCopy) return;
const isMsix = await invoke<boolean>("is_msix");
if (isMsix) {
const copy = await tryCopyYae();
if (!copy) return;
}
try {
await invoke("call_yae_dll", {
gamePath: gamePath,
uid: account.value.gameUid,
ticket: resp,
is_msix: isMsix,
});
} catch (err) {
showSnackbar.error(`调用Yae DLL失败: ${err}`);