-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
59 lines (51 loc) · 1.46 KB
/
index.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
/**
* @description AI Shoujo 支持
*/
import { ISupportedGames } from 'gmm-api'
import { join, basename } from 'path'
import { Manager } from './Manager'
export const supportedGames: ISupportedGames = {
GlossGameId: 209,
steamAppID: 1250650,
installdir: "AI-Syoujyo",
gameName: "AI Shoujo",
gameExe: "AI-Syoujyo.exe",
startExe: "AI-Syoujyo.exe",
gameCoverImg: "https://mod.3dmgame.com/static/upload/game/209.png",
modType: [
{
id: 1,
name: "mods",
installPath: join("mods"),
async install(mod) {
return Manager.installByFolderParent(mod, this.installPath ?? "", "data", true)
},
async uninstall(mod) {
return Manager.installByFolderParent(mod, this.installPath ?? "", "data", false)
}
},
{
id: 99,
name: "未知",
installPath: "",
async install(mod) {
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('data')) mods = true
})
// if (loader) return 1
if (mods) return 1
return 99
}
}