Add fallback value for customizable codes

This commit is contained in:
sup39 2022-04-08 23:02:51 +09:00
parent 013052f82c
commit 62301ad9b1
2 changed files with 416 additions and 6 deletions

419
Codes.xml
View file

@ -1253,10 +1253,408 @@
The timer pauses during loading times and FMVs. The timer pauses during loading times and FMVs.
::: :::
</description> </description>
<source version="GMSJ01"></source> <source version="GMSJ01">
<source version="GMSE01"></source> C20ECE44 00000005
<source version="GMSP01"></source> 981A0260 3CE0817F
<source version="GMSJ0A"></source> 880700B3 2C000000
38000000 900700BC
4182000C B00700B2
900700B4 00000000
C2206738 0000001F
3C60817F 6064011C
38630094 3D808020
398C1EA8 7D8803A6
4E800021 3C60817F
888300B2 810300B4
2C040000 40820030
808300BC 2C040000
40820010 810D97E8
8108005C 48000010
3884FFFF 908300BC
810300B8 800300B4
7D080214 3CE0000A
60E7F9B0 7C074000
40800010 7CE83B78
98E300B2 90E300B4
3C60817F 1D0803E9
38000078 7D080396
9421FFF0 380003E8
7CE80396 7C0701D6
7D004050 91010008
3800003C 7D270396
7C0901D6 7D403850
80E30118 390300A4
80C30114 3D80817F
80A30110 618C0238
808300A0 7D8803A6
80630094 4E800021
38210010 38610E90
3D808003 398C5228
7D8803A6 4E800021
881F0046 00000000
C20EFA30 00000005
3CA0817F A00500B2
2C000000 40820014
800500B4 80C3005C
7C003214 900500B4
7C0802A6 00000000
C20EDB30 00000005
3CA0817F 80C500B4
8003005C 7CC60214
38C60004 54C6003A
90C500B4 38C0FFFF
B0C500B2 00000000
C21D1F38 00000005
3D00817F 80C800B4
8003005C 7CC60214
38C60004 54C6003A
90C800B4 38C0FFFF
B0C800B2 00000000
C22257CC 00000002
2C030001 3C60817F
98A300B3 00000000
C20EBD78 00000002
389C0001 3CA0817F
988500B3 00000000
C20EC72C 00000005
3CA0817F 38600001
986500B3 807F005C
38630003 5463003A
906500B8 3860FFFF
906500BC 00000000
C20ED8F0 00000005
3CA0817F 980500B3
801E005C 30000004
5400003A 900500B8
3800FFFF 900500BC
60000000 00000000
C2196314 00000004
80AD97E8 8005005C
3CA0817F 900500B8
3800001E 900500BC
38A00000 00000000
C2196128 00000005
7C030378 80A3005C
38A50003 54A0003A
3CA0817F 900500B8
3800001E 900500BC
60000000 00000000
C21971F8 00000004
806D97E8 8083005C
3C60817F 908300B8
3880001E 908300BC
8001001C 00000000
C20EB6E4 00000004
807F005C 3C80817F
906400B8 3860001E
906400BC 60000000
807F00B0 00000000
C20EB74C 00000004
807F005C 3C80817F
906400B8 3860001E
906400BC 60000000
806DA8B0 00000000
C217A3C0 00000004
806D97E8 8083005C
3C60817F 908300B8
3880001E 908300BC
80010044 00000000
C21D3C78 00000004
806D97E8 8083005C
3C60817F 908300B8
3880001E 908300BC
2C1D0003 00000000
077F0094 0000001D
00000010 000001B2
00000080 000001C8
25753A25 3032752E
25303375 00000000
077F0110 00000010
00000014 FFFFFFFF
FFFFFFFF 00000080
</source>
<source version="GMSE01">
C22998C0 0000000B
981A0260 3CE0817F
880700B3 2C000000
38000000 900700BC
4182000C B00700B2
900700B4 60E30110
38800000 60E50094
80CD9FC8 80C60048
60E700A4 39000002
39200000 3D80802D
618C0848 7D8803A6
4E800021 00000000
C2143F18 0000001B
3C60817F 888300B2
810300B4 2C040000
40A20030 808300BC
2C040000 40A20010
810D9FB8 8108005C
48000010 3884FFFF
908300BC 810300B8
800300B4 7D080214
3CE0000A 60E7F9B0
7C074000 40A00010
7CE83B78 98E300B2
90E300B4 1D0803E9
38000078 7D080396
380003E8 7CE80396
7C0701D6 7D004050
3800003C 7CC70396
7C0601D6 7CE03850
38A300A4 3880000F
80630210 4CC63182
3D808033 618C97A4
7D8803A6 4E800021
3C60817F 60630110
38800000 38A00000
38C10BD0 38E00081
3D80802C 618CFDA8
7D8803A6 4E800021
881F0046 00000000
C229C520 00000005
3CA0817F A00500B2
2C000000 40820014
800500B4 80C3005C
7C003214 900500B4
7C0802A6 00000000
C229A5AC 00000005
3CA0817F 80C500B4
8003005C 7CC60214
38C60004 54C6003A
90C500B4 38C0FFFF
B0C500B2 00000000
C21FA380 00000005
3D00817F 80C800B4
8003005C 7CC60214
38C60004 54C6003A
90C800B4 38C0FFFF
B0C800B2 00000000
C2164E24 00000002
2C030001 3C60817F
98A300B3 00000000
C229880C 00000002
389C0001 3CA0817F
988500B3 00000000
C22991A8 00000005
3CA0817F 38600001
986500B3 807F005C
38630003 5463003A
906500B8 3860FFFF
906500BC 00000000
C229A36C 00000005
3CA0817F 980500B3
801E005C 30000004
5400003A 900500B8
3800FFFF 900500BC
60000000 00000000
077F0094 0000001D
00000010 000001A0
00000280 000001E0
25753A25 3032752E
25303375 00000000
C21BE474 00000004
80AD9FB8 8005005C
3CA0817F 900500B8
3800001E 900500BC
38A00000 00000000
C21BE288 00000005
7C030378 80A3005C
38A50003 54A0003A
3CA0817F 900500B8
3800001E 900500BC
60000000 00000000
</source>
<source version="GMSP01">
C2291758 0000000B
981A0260 3CE0817F
880700B3 2C000000
38000000 900700BC
4182000C B00700B2
900700B4 60E30110
38800000 60E50094
80CD9EF0 80C60048
60E700A4 39000002
39200000 3D80802C
618C89F0 7D8803A6
4E800021 00000000
C2138B54 0000001B
3C60817F 888300B2
810300B4 2C040000
40A20030 808300BC
2C040000 40A20010
810D9EE0 8108005C
48000010 3884FFFF
908300BC 810300B8
800300B4 7D080214
3CE0000A 60E7F9B0
7C074000 40A00010
7CE83B78 98E300B2
90E300B4 1D0803E9
38000078 7D080396
380003E8 7CE80396
7C0701D6 7D004050
3800003C 7CC70396
7C0601D6 7CE03850
38A300A4 3880000F
80630210 4CC63182
3D808033 618C1924
7D8803A6 4E800021
3C60817F 60630110
38800000 38A00000
38C10BE4 38E00081
3D80802C 618C7F50
7D8803A6 4E800021
881F0046 00000000
C22943FC 00000005
3CA0817F A00500B2
2C000000 40820014
800500B4 80C3005C
7C003214 900500B4
7C0802A6 00000000
C2292480 00000005
3CA0817F 80C500B4
8003005C 7CC60214
38C60004 54C6003A
90C500B4 38C0FFFF
B0C500B2 00000000
C21F2258 00000005
3D00817F 80C800B4
8003005C 7CC60214
38C60004 54C6003A
90C800B4 38C0FFFF
B0C800B2 00000000
C2159E9C 00000002
2C030001 3C60817F
98A300B3 00000000
C22906A4 00000002
389C0001 3CA0817F
988500B3 00000000
C2291040 00000005
3CA0817F 38600001
986500B3 807F005C
38630003 5463003A
906500B8 3860FFFF
906500BC 00000000
C2292204 00000005
3CA0817F 980500B3
801E005C 30000004
5400003A 900500B8
3800FFFF 900500BC
60000000 00000000
077F0094 0000001D
00000010 000001A0
00000280 000001E0
25753A25 3032752E
25303375 00000000
C21B632C 00000004
80AD9EE0 8005005C
3CA0817F 900500B8
3800001E 900500BC
38A00000 00000000
C21B6140 00000005
7C030378 80A3005C
38A50003 54A0003A
3CA0817F 900500B8
3800001E 900500BC
60000000 00000000
</source>
<source version="GMSJ0A">
C2279570 0000000B
981A0260 3CE0817F
880700B3 2C000000
38000000 900700BC
4182000C B00700B2
900700B4 60E30110
38800000 60E50094
80CD9E88 80C60048
60E700A4 39000002
39200000 3D80802B
618C0058 7D8803A6
4E800021 00000000
C21252A4 0000001B
3C60817F 888300B2
810300B4 2C040000
40A20030 808300BC
2C040000 40A20010
810D9E78 8108005C
48000010 3884FFFF
908300BC 810300B8
800300B4 7D080214
3CE0000A 60E7F9B0
7C074000 40A00010
7CE83B78 98E300B2
90E300B4 1D0803E9
38000078 7D080396
380003E8 7CE80396
7C0701D6 7D004050
3800003C 7CC70396
7C0601D6 7CE03850
38A300A4 3880000F
80630210 4CC63182
3D808031 618C90A4
7D8803A6 4E800021
3C60817F 60630110
38800000 38A00000
38C10BEC 38E00081
3D80802A 618CF5B8
7D8803A6 4E800021
881F0046 00000000
C227C214 00000005
3CA0817F A00500B2
2C000000 40820014
800500B4 80C3005C
7C003214 900500B4
7C0802A6 00000000
C227A298 00000005
3CA0817F 80C500B4
8003005C 7CC60214
38C60004 54C6003A
90C500B4 38C0FFFF
B0C500B2 00000000
C21DA0FC 00000005
3D00817F 80C800B4
8003005C 7CC60214
38C60004 54C6003A
90C800B4 38C0FFFF
B0C800B2 00000000
C2145EBC 00000002
2C030001 3C60817F
98A300B3 00000000
C22784B4 00000002
389C0001 3CA0817F
988500B3 00000000
C2278E58 00000005
3CA0817F 38600001
986500B3 807F005C
38630003 5463003A
906500B8 3860FFFF
906500BC 00000000
C227A01C 00000005
3CA0817F 980500B3
801E005C 30000004
5400003A 900500B8
3800FFFF 900500BC
60000000 00000000
077F0094 0000001D
00000010 000001A0
00000280 000001E0
25753A25 3032752E
25303375 00000000
C219E1FC 00000004
80AD9E78 8005005C
3CA0817F 900500B8
3800001E 900500BC
38A00000 00000000
C219E010 00000005
7C030378 80A3005C
38A50003 54A0003A
3CA0817F 900500B8
3800001E 900500BC
60000000 00000000
</source>
</code> </code>
<code> <code>
<category>loader</category> <category>loader</category>
@ -3699,6 +4097,17 @@
現時点ではクッパ戦で最後の足場を破壊するとやり直しできません。 現時点ではクッパ戦で最後の足場を破壊するとやり直しできません。
::: :::
</description> </description>
<source version="GMSJ01"></source> <source version="GMSJ01">
c20eafa0 00000009
3c608040 a0a30d50
28050801 40a20030
3c60817f 38a00001
98a300b3 98a30100
3c60803e 80a3600e
90a36012 3c60800e
6063b3f8 7c6803a6
4e800020 2c000002
60000000 00000000
</source>
</code> </code>
</codes> </codes>

View file

@ -107,7 +107,8 @@ const validateXML = (xmlString) => {
// Each source has a valid length // Each source has a valid length
for (let j = 0; j < codeSources.length; j++) { for (let j = 0; j < codeSources.length; j++) {
if ( if (
codeSources[j].textContent.replace(/[\s\n\r\t]+/gm, '').length % 16 != 0 codeSources[j].textContent.replace(/[\s\n\r\t]+/gm, '').length % 16 != 0 ||
codeSources[j].textContent.replace(/[\s\n\r\t]+/gm, '').length < 16
) )
throw new Error( throw new Error(
`Invalid source length for code '${codeTitle.textContent}' and version ${ `Invalid source length for code '${codeTitle.textContent}' and version ${