citra-emu
/
citra-web
Archived
1
0
Fork 0

Modified the JSON listing to provide compatibility ratings.

This commit is contained in:
chris062689 2017-06-23 21:34:41 -04:00
parent 7de0935ac7
commit c7423cc391
1 changed files with 8 additions and 9 deletions

View File

@ -1,12 +1,11 @@
{
{{- $lenGames := sub (len .Data.Pages) 1 }}
{{- range $index, $element := .Data.Pages }}
{{- $lenGames := sub (len .Data.Pages) 1 }}
{{- range $index, $element := .Data.Pages }}
{{- $game := . }}
{{- $gameIndex := $index }}
{{- $lenRegions := sub (len .Params.releases) 1 }}
{{- range $regionIndex, $element := .Params.releases }}
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}",
"gameName": "{{ $game.Title | plainify }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
{{- end }}
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}", "compatibility": "{{ $game.Params.compatibility }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
{{- end }}
{{- end }}
}