-
Notifications
You must be signed in to change notification settings - Fork 2
/
DarkestDungeon2.ts
53 lines (48 loc) · 1.48 KB
/
DarkestDungeon2.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
/**
* @description 暗黑地牢2 支持
*/
import { join } from "node:path"
export const supportedGames: ISupportedGames = {
GlossGameId: 353,
steamAppID: 1940340,
installdir: join("Darkest Dungeon® II"),
gameName: "Darkest Dungeon 2",
gameExe: "Darkest Dungeon II.exe",
startExe: [
{
name: "Steam 启动",
cmd: "steam://rungameid/1940340"
},
{
name: "直接启动",
exePath: join("Darkest Dungeon II.exe")
}
],
archivePath: join(FileHandler.getMyDocuments(), "Darkest"),
gameCoverImg: "https://mod.3dmgame.com/static/upload/game/664ef0d003b8a.webp",
modType: [
...UnityGame.modType,
{
id: 4,
name: "StreamingAssets",
installPath: join("Darkest Dungeon II_Data", "StreamingAssets"),
async install(mod) {
return Manager.installByFolder(mod, this.installPath ?? "", "StreamingAssets", true, false, true)
},
async uninstall(mod) {
return Manager.installByFolder(mod, this.installPath ?? "", "StreamingAssets", false, false, true)
}
}
],
checkModType(mod) {
let id = UnityGame.checkModType(mod)
if (id == 99) {
mod.modFiles.forEach(item => {
if (FileHandler.getFolderFromPath(item, "StreamingAssets")) {
id = 4
}
})
}
return id
}
}