优化本地游戏列表存储结构并兼容老结构

This commit is contained in:
heixiansen
2025-02-17 16:01:48 +08:00
parent 7751c25e15
commit 6defb9e0ac
3 changed files with 66 additions and 38 deletions
-1
View File
@@ -21,7 +21,6 @@ export const getIcon = async function (sourcePath: string, icoDirPath: string) {
if (res.code == 0) {
let icoPath = icoDirPath + "\\" + (await basename(sourcePath));
icoPath = icoPath.replace(`.${await extname(sourcePath)}`, "_1.ico");
console.log(icoPath)
if (await exists(icoPath)) {
return icoPath;
} else {