[GameDB] Fix XSD shema for missing spinner and trackball, and fix gamesdb.xml according the schema

This commit is contained in:
Fabrice CARUSO
2025-03-29 18:17:49 +01:00
parent 711de1eec0
commit 4af47d09df
2 changed files with 22 additions and 9 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<systems xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gamesdb.xsd">
<system id="arcade">
<game id="18wheelr">
@@ -1917,7 +1917,7 @@
<wheel rotation="270"/>
</game>
<game id="harddrivg">
<whee rotation="270"/>
<wheel rotation="270"/>
</game>
<game id="harddrivg4">
<wheel rotation="270"/>
@@ -5389,8 +5389,8 @@
<spinner/>
</game>
<game id="nightdriver">
<spinner/>
<wheel/>
<spinner/>
</game>
<game id="arkanoidiii">
<spinner/>
@@ -8508,8 +8508,8 @@
<wheel wheel="joystick1left" accelerate="lt" brake="rt"/>
</game>
<game id="starskyandhutch">
<wheel wheel="joystick1left" accelerate="lt" brake="rt"/>
<gun />
<wheel wheel="joystick1left" accelerate="lt" brake="rt"/>
</game>
<game id="rracingevolution">
<wheel wheel="joystick1left" accelerate="lt" brake="rt"/>
+18 -5
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="systems">
<xs:complexType>
@@ -12,7 +12,7 @@
<xs:sequence>
<xs:element ref="game" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="game">
@@ -22,8 +22,11 @@
<xs:element ref="video" minOccurs="0"/>
<xs:element ref="controller" minOccurs="0"/>
<xs:element ref="wheel" minOccurs="0"/>
<xs:element ref="spinner" minOccurs="0"/>
<xs:element ref="trackball" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="gun">
@@ -56,8 +59,8 @@
<xs:attribute name="wheel" type="xs:string"/>
<xs:attribute name="deadzone" type="xs:string"/>
<xs:attribute name="midzone" type="xs:string"/>
<xs:attribute name="upshift" type="xs:string"/>
<xs:attribute name="downshift" type="xs:string"/>
<xs:attribute name="upshift" type="xs:string"/>
<xs:attribute name="downshift" type="xs:string"/>
<xs:attribute name="a" type="xs:string"/>
<xs:attribute name="b" type="xs:string"/>
<xs:attribute name="x" type="xs:string"/>
@@ -74,4 +77,14 @@
<xs:attribute name="widescreen" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="spinner">
<xs:complexType>
<xs:attribute name="type" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="trackball">
<xs:complexType>
<xs:attribute name="type" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>