ci: format the GameDB and make sure it stays that way

This commit is contained in:
Tyler Wilding 2022-05-22 21:10:47 -04:00 committed by refractionpcsx2
parent b54facdbd8
commit 9ba42ec950
4 changed files with 48 additions and 39 deletions

View File

@ -14,6 +14,7 @@ on:
jobs: jobs:
lint: lint:
name: Lint and Validate GameDB
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repository - name: Checkout Repository
@ -30,4 +31,4 @@ jobs:
- name: Check Formatting - name: Check Formatting
run: | run: |
npm install -g prettier npm install -g prettier
prettier --check ./bin/Resources/GameIndex.yaml prettier --check ./bin/resources/GameIndex.yaml

View File

@ -213,7 +213,7 @@ option_validation_handlers = {
class UniqueKeyLoader(yaml.FullLoader): class UniqueKeyLoader(yaml.FullLoader):
def construct_mapping(self, node, deep=False): def construct_mapping(self, node, deep=False):
mapping = set() mapping = set()
for key_node, value_node in node.value: for key_node, _ in node.value:
key = self.construct_object(key_node, deep=deep) key = self.construct_object(key_node, deep=deep)
if key in mapping: if key in mapping:
raise ValueError(f"Duplicate {key!r} key found in YAML.") raise ValueError(f"Duplicate {key!r} key found in YAML.")

8
.prettierrc.yaml Normal file
View File

@ -0,0 +1,8 @@
overrides:
- files: "**/GameIndex.yaml"
options:
tabWidth: 2
useTabs: false
quoteProps: consistent
endOfLine: auto
proseWrap: preserve

View File

@ -1437,7 +1437,7 @@ SCCS-40019:
SCCS-40022: SCCS-40022:
name: "World Soccer Winning Eleven 8 - Asia Championship" name: "World Soccer Winning Eleven 8 - Asia Championship"
region: "NTSC-C" region: "NTSC-C"
compat: 5 compat: 5
SCCS-60002: SCCS-60002:
name: "Gran Turismo 4 [Review Copy]" name: "Gran Turismo 4 [Review Copy]"
region: "NTSC-C" region: "NTSC-C"
@ -4637,7 +4637,7 @@ SCKA-20090:
SCKA-20092: SCKA-20092:
name: "K-1 World Grand Prix 2006" name: "K-1 World Grand Prix 2006"
region: "NTSC-K" region: "NTSC-K"
speedHacks: speedHacks:
InstantVU1SpeedHack: 0 # Fixes random black frames from happening when in a fight session. InstantVU1SpeedHack: 0 # Fixes random black frames from happening when in a fight session.
MTVUSpeedHack: 0 MTVUSpeedHack: 0
gameFixes: gameFixes:
@ -5642,7 +5642,7 @@ SCPS-19304:
region: "NTSC-J" region: "NTSC-J"
gsHWFixes: gsHWFixes:
halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well. halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
memcardFilters: memcardFilters:
- "SCAJ-20066" - "SCAJ-20066"
- "SCAJ-30006" - "SCAJ-30006"
- "SCAJ-30007" - "SCAJ-30007"
@ -8326,7 +8326,7 @@ SLED-53732:
name: "Spartan - Total Warrior [Demo]" name: "Spartan - Total Warrior [Demo]"
region: "PAL" region: "PAL"
gameFixes: gameFixes:
- EETimingHack # Fixes garbage textures flashing on the character model - EETimingHack # Fixes garbage textures flashing on the character model
SLED-53745: SLED-53745:
name: "Total Overdose [Demo]" name: "Total Overdose [Demo]"
region: "PAL-M5" region: "PAL-M5"
@ -9503,7 +9503,7 @@ SLES-50539:
name: "James Bond 007 - Agent Under Fire" name: "James Bond 007 - Agent Under Fire"
region: "PAL-M6" region: "PAL-M6"
clampModes: clampModes:
vuClampMode: 2 # Fixes corrupt textures. vuClampMode: 2 # Fixes corrupt textures.
SLES-50540: SLES-50540:
name: "Simpsons Road Rage" name: "Simpsons Road Rage"
region: "PAL-E" region: "PAL-E"
@ -10314,7 +10314,7 @@ SLES-50921:
name: "Way of the Samurai" name: "Way of the Samurai"
region: "PAL-M3" region: "PAL-M3"
gameFixes: gameFixes:
- EETimingHack # Stops crash after intro movie - EETimingHack # Stops crash after intro movie
SLES-50922: SLES-50922:
name: "Terminator, The - Dawn of Fate" name: "Terminator, The - Dawn of Fate"
region: "PAL-M5" region: "PAL-M5"
@ -10687,7 +10687,7 @@ SLES-51125:
name: "Sega Soccer Slam" name: "Sega Soccer Slam"
region: "PAL-E" region: "PAL-E"
gameFixes: gameFixes:
- EETimingHack # Fixes hang - EETimingHack # Fixes hang
SLES-51126: SLES-51126:
name: "Whirl Tour" name: "Whirl Tour"
region: "PAL-M5" region: "PAL-M5"
@ -14674,7 +14674,7 @@ SLES-53022:
content: |- content: |-
author=Prafull author=Prafull
comment=fixes hang at start comment=fixes hang at start
patch=1,EE,0034DA98,word,00000000 patch=1,EE,0034DA98,word,00000000
SLES-53023: SLES-53023:
name: "RTL Ski Jump 2005" name: "RTL Ski Jump 2005"
region: "PAL-E-G" region: "PAL-E-G"
@ -14928,7 +14928,7 @@ SLES-53125:
region: "PAL-M5" region: "PAL-M5"
clampModes: clampModes:
eeClampMode: 3 eeClampMode: 3
vuClampMode: 3 vuClampMode: 3
gsHWFixes: gsHWFixes:
alignSprite: 1 # Fixes vertical lines. alignSprite: 1 # Fixes vertical lines.
SLES-53127: SLES-53127:
@ -22254,7 +22254,7 @@ SLPM-61039:
alignSprite: 1 # Fixes vertical lines. alignSprite: 1 # Fixes vertical lines.
roundSprite: 2 # Fixes font artifacts. roundSprite: 2 # Fixes font artifacts.
mergeSprite: 1 # Fixes flame-like bleeding. mergeSprite: 1 # Fixes flame-like bleeding.
SLPM-61046: SLPM-61046:
name: "Dennou Senki - Virtual-On Marz [Trial]" name: "Dennou Senki - Virtual-On Marz [Trial]"
region: "NTSC-J" region: "NTSC-J"
SLPM-61051: SLPM-61051:
@ -23492,8 +23492,8 @@ SLPM-62483:
name: "Simple 2000 Series Vol. 48 - The Taxi - Untenshu ha Kimi da" name: "Simple 2000 Series Vol. 48 - The Taxi - Untenshu ha Kimi da"
region: "NTSC-J" region: "NTSC-J"
roundModes: roundModes:
eeRoundMode: 2 eeRoundMode: 2
vuRoundMode: 2 vuRoundMode: 2
SLPM-62484: SLPM-62484:
name: "Simple 2000 Series Vol. 50 - The Daibijin" name: "Simple 2000 Series Vol. 50 - The Daibijin"
region: "NTSC-J" region: "NTSC-J"
@ -24358,13 +24358,13 @@ SLPM-64509:
region: "NTSC-K" region: "NTSC-K"
gsHWFixes: gsHWFixes:
preloadFrameData: 1 # Fixes random texture corruptions such as horizontal lines. preloadFrameData: 1 # Fixes random texture corruptions such as horizontal lines.
cpuFramebufferConversion: 1 # Fixes fog wall. cpuFramebufferConversion: 1 # Fixes fog wall.
SLPM-64513: SLPM-64513:
name: "Crash Bandicoot - Return of the Demon King" # Wrath of Cortex name: "Crash Bandicoot - Return of the Demon King" # Wrath of Cortex
region: "NTSC-K" region: "NTSC-K"
gsHWFixes: gsHWFixes:
preloadFrameData: 1 # Fixes random texture corruptions such as horizontal lines. preloadFrameData: 1 # Fixes random texture corruptions such as horizontal lines.
cpuFramebufferConversion: 1 # Fixes fog wall. cpuFramebufferConversion: 1 # Fixes fog wall.
SLPM-64522: SLPM-64522:
name: "La Pucelle" name: "La Pucelle"
region: "NTSC-K" region: "NTSC-K"
@ -24584,7 +24584,7 @@ SLPM-65053:
SLPM-65054: SLPM-65054:
name: "Abarenbou Princess" name: "Abarenbou Princess"
region: "NTSC-J" region: "NTSC-J"
compat: 5 compat: 5
SLPM-65056: SLPM-65056:
name: "Orega Kantoku da Vol.2 - Getitou Pennant Race" name: "Orega Kantoku da Vol.2 - Getitou Pennant Race"
region: "NTSC-J" region: "NTSC-J"
@ -25051,7 +25051,7 @@ SLPM-65209:
patch=1,IOP,000251E4,word,08009480 //j 0x25200 patch=1,IOP,000251E4,word,08009480 //j 0x25200
patch=1,IOP,000251E8,word,AC8200BC //nop patch=1,IOP,000251E8,word,AC8200BC //nop
//Force jump to execute iReferEventFlagStatus //Force jump to execute iReferEventFlagStatus
patch=1,IOP,00025198,word,0800946D patch=1,IOP,00025198,word,0800946D
SLPM-65210: SLPM-65210:
name: "Chou Battle Houshin [Premium Pack]" name: "Chou Battle Houshin [Premium Pack]"
region: "NTSC-J" region: "NTSC-J"
@ -29140,7 +29140,7 @@ SLPM-66444:
name: "Spartan - Total Warrior" name: "Spartan - Total Warrior"
region: "NTSC-J" region: "NTSC-J"
gameFixes: gameFixes:
- EETimingHack # Fixes garbage textures flashing on the character model - EETimingHack # Fixes garbage textures flashing on the character model
SLPM-66445: SLPM-66445:
name: "Persona 3" name: "Persona 3"
region: "NTSC-J" region: "NTSC-J"
@ -31185,7 +31185,7 @@ SLPM-68018:
region: "NTSC-J" region: "NTSC-J"
SLPM-68019: SLPM-68019:
name: "Naruto Shippuuden - Narutimate Accel 2" name: "Naruto Shippuuden - Narutimate Accel 2"
region: "NTSC-J" region: "NTSC-J"
gameFixes: gameFixes:
- SoftwareRendererFMVHack # Fixes vertical lines in FMVs. - SoftwareRendererFMVHack # Fixes vertical lines in FMVs.
SLPM-68503: SLPM-68503:
@ -37136,7 +37136,7 @@ SLUS-20197:
region: "NTSC-U" region: "NTSC-U"
compat: 5 compat: 5
roundModes: roundModes:
eeRoundMode: 2 # Fixes Gauntlet Golf eeRoundMode: 2 # Fixes Gauntlet Golf
vuRoundMode: 2 # Fixes game board jittering vuRoundMode: 2 # Fixes game board jittering
SLUS-20198: SLUS-20198:
name: "FireBlade" name: "FireBlade"
@ -38045,7 +38045,7 @@ SLUS-20407:
region: "NTSC-U" region: "NTSC-U"
compat: 5 compat: 5
gameFixes: gameFixes:
- EETimingHack # Stops crash after intro movie - EETimingHack # Stops crash after intro movie
SLUS-20408: SLUS-20408:
name: "Pitfall - The Lost Expedition" name: "Pitfall - The Lost Expedition"
region: "NTSC-U" region: "NTSC-U"
@ -38530,7 +38530,7 @@ SLUS-20509:
region: "NTSC-U" region: "NTSC-U"
compat: 5 compat: 5
gameFixes: gameFixes:
- EETimingHack # Fixes hang - EETimingHack # Fixes hang
SLUS-20510: SLUS-20510:
name: "Star Wars - Clone Wars" name: "Star Wars - Clone Wars"
region: "NTSC-U" region: "NTSC-U"
@ -41620,21 +41620,21 @@ SLUS-21180:
patches: patches:
FE44479E: FE44479E:
content: |- content: |-
author=kozarovv author=kozarovv
// Set IPU_DATA IVF to Intra // Set IPU_DATA IVF to Intra
patch=1,EE,003BFDD8,word,3C040020 patch=1,EE,003BFDD8,word,3C040020
// Set IPU_CMD to IDEC, and set QSC to 2 // Set IPU_CMD to IDEC, and set QSC to 2
// Why 2? Because it seems to work best. // Why 2? Because it seems to work best.
patch=1,EE,003BFDEC,word,3C021002 patch=1,EE,003BFDEC,word,3C021002
// Old patch by shadow lady (still needed) // Old patch by shadow lady (still needed)
patch=1,EE,00104170,word,00000000 patch=1,EE,00104170,word,00000000
// Disable print - we need that loop! // Disable print - we need that loop!
// Without loop ipu break itself. // Without loop ipu break itself.
patch=1,EE,0010FDC8,word,34190180 patch=1,EE,0010FDC8,word,34190180
patch=1,EE,0010FDCC,word,1720FFFF patch=1,EE,0010FDCC,word,1720FFFF
patch=1,EE,0010FDD0,word,2739FFFF patch=1,EE,0010FDD0,word,2739FFFF
patch=1,EE,0010FDD4,word,03E00008 patch=1,EE,0010FDD4,word,03E00008
patch=1,EE,0010FDD8,word,00000000 patch=1,EE,0010FDD8,word,00000000
SLUS-21181: SLUS-21181:
name: "D.I.C.E. - DNA Integrated Cybernetic Enterprises" name: "D.I.C.E. - DNA Integrated Cybernetic Enterprises"
region: "NTSC-U" region: "NTSC-U"
@ -45689,7 +45689,7 @@ SLUS-29126:
region: "NTSC-U" region: "NTSC-U"
compat: 4 compat: 4
SLUS-29127: SLUS-29127:
name: "FIFA Soccer 2005 [Demo]" name: "FIFA Soccer 2005 [Demo]"
region: "NTSC-U" region: "NTSC-U"
SLUS-29129: SLUS-29129:
name: "25 to Life [Public Beta Vol.1.0]" name: "25 to Life [Public Beta Vol.1.0]"