-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSiFu.ts
46 lines (42 loc) · 1.32 KB
/
SiFu.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
/**
* @description 师父 支持
*/
import { basename, join, extname } from "node:path"
function handlePack(mod: IModInfo, installPath: string, install: boolean) {
const manager = useManager()
const modStorage = join(manager.modStorage ?? "", mod.id.toString())
mod.modFiles.forEach(item => {
if (extname(item) === ".pack") {
let source = join(modStorage, item)
let target = join(manager.gameStorage, installPath ?? "", basename(item))
if (install) FileHandler.copyFile(source, target)
else FileHandler.deleteFile(target)
}
})
return true
}
export const supportedGames: ISupportedGames = {
GlossGameId: 64,
steamAppID: 2138710,
NexusMods: {
game_domain_name: "sifu",
game_id: 4309
},
installdir: join("Sifu"),
gameName: "SiFu",
gameExe: "Sifu.exe",
startExe: [
{
name: "Steam 启动",
cmd: "steam://rungameid/2138710"
},
{
name: "直接启动",
exePath: join("Sifu.exe")
}
],
archivePath: join(FileHandler.GetAppData(), "Local", "Sifu", "Saved"),
gameCoverImg: "https://mod.3dmgame.com/static/upload/game/62207195e18a2.png",
modType: UnrealEngine.modType("Sifu", false),
checkModType: UnrealEngine.checkModType
}