mirror of https://github.com/PCSX2/pcsx2.git
ci: format the GameDB and make sure it stays that way
This commit is contained in:
parent
b54facdbd8
commit
9ba42ec950
|
@ -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
|
||||||
|
|
|
@ -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.")
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
overrides:
|
||||||
|
- files: "**/GameIndex.yaml"
|
||||||
|
options:
|
||||||
|
tabWidth: 2
|
||||||
|
useTabs: false
|
||||||
|
quoteProps: consistent
|
||||||
|
endOfLine: auto
|
||||||
|
proseWrap: preserve
|
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue