ci: use the json schema to validate the GameDB

This commit is contained in:
Tyler Wilding 2022-11-04 17:23:50 -04:00 committed by lightningterror
parent 28c2c8d179
commit fba0e5932f
3 changed files with 26 additions and 29 deletions

View File

@ -21,12 +21,9 @@ jobs:
uses: actions/checkout@v3
- name: Validate Contents
env:
GAMEDB_PATH: ./bin/resources/GameIndex.yaml
SCRIPT_DIR: .github/workflows/scripts/lint/gamedb
run: |
pip install -r "${SCRIPT_DIR}/requirements.txt"
python "${SCRIPT_DIR}/lint.py"
npm install -g ajv-cli
ajv validate -s ./pcsx2/Docs/gamedb-schema.json --spec=draft2020 -d ./bin/resources/GameIndex.yaml
- name: Check Formatting
run: |

View File

@ -3247,7 +3247,7 @@ SCES-51593:
name: "Hardware Online Arena [Beta, Promo & Full Release]"
region: "PAL-M4"
patches:
81797E77:
"81797E77":
content: |-
comment=Reduces chance of game hanging going in-game
comment=caused by VU0 integer register being set twice causing bad COP2 timing
@ -12079,7 +12079,7 @@ SLES-51292:
region: "PAL-M5"
compat: 4
patches:
9fccacb5:
9FCCACB5:
content: |-
author=PSI
// The game allocates a VIF DMA buffer on the stack and sends it, returns from the function, then calls another function to wait for the transfer to end.
@ -15051,7 +15051,7 @@ SLES-52711:
gameFixes:
- GIFFIFOHack # Fixes corrupted textures.
patches:
958e5086:
"958E5086":
content: |-
comment=Patch by refraction
// Game has a bug in it, where it's supposed to wait for the GS transfers/drawing to finish
@ -17436,7 +17436,7 @@ SLES-53686:
name: "NHL 2K6"
region: "PAL-M3"
patches:
98ec4d86:
98EC4D86:
content: |-
author=Prafull
comment=Patched by Prafull
@ -18290,7 +18290,7 @@ SLES-54021:
gameFixes:
- EETimingHack # Fixes game engine errors when going ingame.
patches:
b02c81e5:
B02C81E5:
content: |-
// Fixes random hangs when going ingame.
patch=1,EE,001128e0,word,00000000
@ -18727,7 +18727,7 @@ SLES-54211:
name: "NHL 2K7"
region: "PAL-M5"
patches:
1ad6efd1:
1AD6EFD1:
content: |-
author=Prafull
comment=Patched by Prafull
@ -19556,7 +19556,7 @@ SLES-54559:
autoFlush: 1 # Reduces post-processing misalignment.
halfPixelOffset: 1 # Reduces lighting misalignment but doesn't fully fix it.
patches:
d6a0a3ef:
D6A0A3EF:
content: |-
author=Prafull
// Fix character falling through floor.
@ -21334,7 +21334,7 @@ SLES-55252:
name: "NHL 2K9"
region: "PAL-M5"
patches:
5d981df2:
5D981DF2:
content: |-
author=Prafull
comment=Patched by Prafull
@ -26793,7 +26793,7 @@ SLPM-65071:
name: "Zero 4 Champ Series - Drift Champ"
region: "NTSC-J"
patches:
8449ffe1:
8449FFE1:
content: |-
comment=Patch by Prafull
// Fixes the hang at start of chapter 2.
@ -32458,7 +32458,7 @@ SLPM-66687:
name: "Hiiro no Kakera - Ano Sora no Shita de"
region: "NTSC-J"
patches:
8365E603:
"8365E603":
content: |-
author=PSI, Jelta
// Game does weird stack manipulation, causing data sent to the IOP to be corrupted unless EE data cache is enabled.
@ -34756,7 +34756,7 @@ SLPS-20273:
name: "Netsu Chu! Pro Yakyuu 2003"
region: "NTSC-J"
patches:
34fb1fb7:
34FB1FB7:
content: |-
author=Prafull
// Fixes game hanging before going ingame.
@ -40483,7 +40483,7 @@ SLUS-20284:
roundModes:
vuRoundMode: 1 # Fixes some bad effects.
patches:
9d1ba44d:
9D1BA44D:
content: |-
author=Prafull
// Fix hanging problem & SPS.
@ -40877,7 +40877,7 @@ SLUS-20378:
name: "Salt Lake 2002"
region: "NTSC-U"
patches:
466d1c13:
466D1C13:
content: |-
author=Prafull
// Fix ingame texture problems.
@ -41128,7 +41128,7 @@ SLUS-20430:
region: "NTSC-U"
compat: 5
patches:
d195b670:
D195B670:
content: |-
author=PSI
// The game allocates a VIF DMA buffer on the stack and sends it, returns from the function, then calls another function to wait for the transfer to end.
@ -41229,7 +41229,7 @@ SLUS-20452:
region: "NTSC-U"
compat: 5
patches:
Ba056DDD:
BA056DDD:
content: |-
author=kr_ps2
//SFX/Background Music Fix.
@ -41303,7 +41303,7 @@ SLUS-20467:
region: "NTSC-U"
compat: 5
patches:
3baebcc3:
3BAEBCC3:
content: |-
author=Prafull
// Fix ingame SPS by interchanging vclipw.xyz vf5, vf5w with cfc2.
@ -43465,7 +43465,7 @@ SLUS-20922:
region: "NTSC-U"
compat: 2
patches:
2b54d3e5:
2B54D3E5:
content: |-
comment=Patch by Prafull
// Avoids hang at loading.
@ -44072,7 +44072,7 @@ SLUS-21035:
clampModes:
eeClampMode: 2 # Fixes hang when the baseball hits the ground.
patches:
2243ce1d:
2243CE1D:
content: |-
author=Prafull
comment=Patched by Prafull
@ -44720,7 +44720,7 @@ SLUS-21171:
region: "NTSC-U"
compat: 5
patches:
304c115c:
304C115C:
content: |-
comment=Patch by Prafull
// Fix hang at shipping shed.
@ -45525,7 +45525,7 @@ SLUS-21314:
gameFixes:
- EETimingHack # Needed to go ingame.
patches:
f73488d5:
F73488D5:
content: |-
comment=Patch by Prafull
// Fixes random hangs when going ingame.
@ -47504,7 +47504,7 @@ SLUS-21729:
name: "Major League Baseball 2K8"
region: "NTSC-U"
patches:
0be24520:
0BE24520:
content: |-
author=Prafull
// Fixes hanging at start.
@ -47679,7 +47679,7 @@ SLUS-21763:
region: "NTSC-U"
compat: 2
patches:
29fdcbf7:
29FDCBF7:
content: |-
author=Prafull
// Avoid hang at start.

View File

@ -254,11 +254,11 @@ Patches should be defined as multi-line string blocks, where each line would cor
For more information on how to write a patch, see the following [forum post](https://forums.pcsx2.net/Thread-How-PNACH-files-work-2-0)
# Editor Tooling
## Editor Tooling
We provide a [JSON Schema](https://json-schema.org/) for the GameDB's format. You can use this to validate the file, and assist in writing it properly.
## VSCode Integration
### VSCode Integration
If you use VSCode and you want it to properly lint the GameIndex.yaml file you should: