-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.schema.json
137 lines (137 loc) · 3.69 KB
/
config.schema.json
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
"hookConfig": {
"type": "object",
"properties": {
"handler": {
"type": "string",
"description": "Hook handler function to execute"
},
"when": {
"type": "string",
"description": "When to run the hook",
"enum": ["pre-launch", "post-launch", "always", "never"]
},
"exit_on_error": {
"type": "boolean",
"description": "Whether to exit if the hook returns an error",
"default": false
},
"args": {
"type": "object",
"description": "Arguments to pass to the handler",
"patternProperties": {
"^.*$": {
"type": "string"
}
}
}
},
"required": ["handler", "when"]
},
"gameConfig": {
"type": "object",
"properties": {
"executable_name": {
"type": "string",
"description": "Name of the game executable (usually statically defined per game)"
},
"executable_path": {
"type": "string",
"description": "Relative path from the game's install path to folder containing the game executable (usually statically defined per game)"
},
"install_path": {
"type": "string",
"description": "Path where the game is installed (usually determined via the Windows registry)"
},
"args": {
"type": "array",
"description": "Additional arguments to pass the game when launching",
"items": {
"type": "string"
}
},
"hooks": {
"type": "array",
"items": {
"$ref": "#/definitions/hookConfig"
}
}
}
}
},
"type": "object",
"properties": {
"quiet_launch": {
"type": "boolean",
"description": "Do not leave the window open any longer than required",
"default": false
},
"debug_logging": {
"type": "boolean",
"description": "Show lots of information relevant for debugging any issues with the launcher",
"default": false
},
"games": {
"type": "object",
"description": "Per-game configuration options (override defaults usually determined by launched)",
"properties": {
"bf1942": {
"$ref": "#/definitions/gameConfig"
},
"bf1942rtr": {
"$ref": "#/definitions/gameConfig"
},
"bf1942sw": {
"$ref": "#/definitions/gameConfig"
},
"bfvietnam": {
"$ref": "#/definitions/gameConfig"
},
"bf2": {
"$ref": "#/definitions/gameConfig"
},
"bf2sf": {
"$ref": "#/definitions/gameConfig"
},
"bf4": {
"$ref": "#/definitions/gameConfig"
},
"bf1": {
"$ref": "#/definitions/gameConfig"
},
"cod": {
"$ref": "#/definitions/gameConfig"
},
"coduo": {
"$ref": "#/definitions/gameConfig"
},
"cod2": {
"$ref": "#/definitions/gameConfig"
},
"cod4": {
"$ref": "#/definitions/gameConfig"
},
"codwaw": {
"$ref": "#/definitions/gameConfig"
},
"fearsec2": {
"$ref": "#/definitions/gameConfig"
},
"paraworld": {
"$ref": "#/definitions/gameConfig"
},
"swat4": {
"$ref": "#/definitions/gameConfig"
},
"swat4x": {
"$ref": "#/definitions/gameConfig"
},
"vietcong": {
"$ref": "#/definitions/gameConfig"
}
}
}
}
}