summaryrefslogtreecommitdiff
path: root/docs/game-mod-descriptor.json
blob: 6406effea01d73a7e262bbec05e2248018e9f4be (plain)
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
{
	"$schema": "https://raw.githubusercontent.com/dolphin-emu/dolphin/master/docs/game-mod-descriptor.json",
	"title": "Dolphin Game Mod Descriptor",
	"type": "object",
	"required": ["type", "version", "base-file"],
	"properties": {
		"type": {
			"type": "string",
			"pattern": "^dolphin-game-mod-descriptor$"
		},
		"version": {
			"type": "integer"
		},
		"base-file": {
			"type": "string"
		},
		"display-name": {
			"type": "string"
		},
		"maker": {
			"type": "string"
		},
		"banner": {
			"type": "string"
		},
		"riivolution": {
			"type": "object",
			"required": ["patches"],
			"properties": {
				"patches": {
					"type": "array",
					"items": {
						"type": "object",
						"required": ["xml", "root", "options"],
						"properties": {
							"xml": {
								"type": "string"
							},
							"root": {
								"type": "string"
							},
							"options": {
								"type": "array",
								"items": {
									"type": "object",
									"required": ["choice"],
									"properties": {
										"section-name": {
											"type": "string"
										},
										"option-id": {
											"type": "string"
										},
										"option-name": {
											"type": "string"
										},
										"choice": {
											"type": "integer"
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}