-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHumankind.ts
72 lines (66 loc) · 2.27 KB
/
Humankind.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// /**
// * @description 人类 支持
// */
// import { join, extname, basename } from "node:path"
// import { ElMessage } from "element-plus";
// export const supportedGames: ISupportedGames = {
// GlossGameId: 330,
// steamAppID: 1124300,
// installdir: join("Humankind"),
// gameName: "Humankind",
// gameExe: "Humankind.exe",
// mod_io: 2599,
// startExe: [
// {
// name: "Steam 启动",
// cmd: "steam://rungameid/1124300"
// },
// {
// name: "直接启动",
// exePath: join("Humankind.exe")
// }
// ],
// archivePath: join(FileHandler.getMyDocuments(), "Humankind"),
// gameCoverImg: "https://mod.3dmgame.com/static/upload/game/65a7365985d61.webp",
// modType: [
// {
// id: 1,
// name: "mods",
// installPath: join(FileHandler.getMyDocuments(), "Humankind", "Community", "Scenarios"),
// async install(mod) {
// const manager = useManager()
// let folderPath = join(manager.modStorage, mod.id.toString())
// let destPath = join(this.installPath || "", mod.id.toString())
// return FileHandler.createLink(folderPath, destPath, true)
// },
// async uninstall(mod) {
// let target = join(this.installPath || "", mod.id.toString())
// return FileHandler.removeLink(target, true)
// }
// },
// {
// id: 99,
// name: "未知",
// installPath: "",
// async install(mod) {
// ElMessage.warning("未知类型, 请手动安装")
// return false
// },
// async uninstall(mod) {
// return true
// }
// }
// ],
// checkModType(mod) {
// // // let loader = false
// // let mods = false
// // mod.modFiles.forEach(item => {
// // // if (basename(item) == 'python35.dll') loader = true
// // // 判断路径是否包含 data
// // if (item.includes('ws64')) mods = true
// // })
// // // if (loader) return 1
// // if (mods) return 1
// return 1
// }
// }