-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTheHunterCotW.ts
63 lines (58 loc) · 1.77 KB
/
TheHunterCotW.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
/**
* @description 猎人 荒野的召唤 支持
*/
import { basename, join, extname } from "node:path"
import { ElMessage } from "element-plus";
export const supportedGames: ISupportedGames = {
GlossGameId: 322,
steamAppID: 518790,
installdir: join("theHunterCotW"),
gameName: "The Hunter CotW",
gameExe: "theHunterCotW_F.exe",
startExe: [
{
name: "Steam 启动",
cmd: "steam://rungameid/518790"
},
{
name: "直接启动",
exePath: join("theHunterCotW_F.exe")
}
],
archivePath: join(FileHandler.getMyDocuments(), "Avalanche Studios", "theHunter Call of the Wild", "Saves"),
gameCoverImg: "https://mod.3dmgame.com/static/upload/game/64e2df9a8310c.webp",
modType: [
{
id: 1,
name: "dropzone",
installPath: join("dropzone"),
async install(mod) {
return Manager.installByFolder(mod, this.installPath ?? "", "dropzone", true, false, true)
},
async uninstall(mod) {
return Manager.installByFolder(mod, this.installPath ?? "", "dropzone", false, false, true)
}
},
{
id: 99,
name: "未知",
installPath: "",
async install(mod) {
ElMessage.warning("未知类型, 请手动安装")
return false
},
async uninstall(mod) {
return true
}
}
],
checkModType(mod) {
let dropzone = false
mod.modFiles.forEach(item => {
let list = FileHandler.pathToArray(item)
if (list.includes('dropzone')) dropzone = true
})
if (dropzone) return 1
return 99
}
}