Reduce code size of Pattern Selector

This commit is contained in:
sup39 2022-04-21 15:43:36 +09:00
parent 0e2e595188
commit d0cf826395
2 changed files with 93 additions and 120 deletions

210
Codes.xml
View file

@ -3760,8 +3760,8 @@
<title lang="en-US">Pattern Selector</title>
<title lang="ja-JP">パターン選択</title>
<author>sup39(サポミク)</author>
<version>0.2.0</version>
<date>Mar 04, 2022</date>
<version>0.2.1</version>
<date>Apr 21, 2022</date>
<dependencies>drawText</dependencies>
<description lang="en-US">
![Preview](/img/PatternSelector/preview.jpg)
@ -3842,130 +3842,100 @@
%object[]{data="/img/PatternSelector/PV1-3.svg"}
</description>
<source version="GMSJ01">
0420675C 495F2A79
0424F32C 495A9CED
077F9018 000003BA
0420675C 495F2A59
0424F32C 495A9D6D
077F9000 000002CA
3D208040 A1290D50
7C091800 4CA20020
3D008180 394892CC
A10892CC 7D294079
4D820020 892A0002
7C892214 548407BE
988A0002 4E800020
3D208040 A1490D50
7C0A1800 4CA20020
3D008180 392892CC
A10892CC 7D4A4079
4D820020 89490002
2C0A0003 40A2000C
39400000 99490002
89490002 7D295214
89490004 7D4A2214
38800005 7C8A23D6
1C840005 7C845050
98890004 4E800020
81460000 3D20803E
392987C0 7C0A4800
40A20124 81260004
40A2008C 81260004
89290013 28090031
418200C4 28090032
4182003C 28090030
40A2007C 2C040021
3D208180 89299001
41820094 2C040026
4182006C 2C04001D
40A2005C 28090003
41820144 28090004
48000048 2C04001D
3D208180 89299000
4182002C 2C040021
40820034 28090001
41820114 3929FFFE
5529063E 28090001
4181001C 38600020
4E800020 28090002
418200FC 28090003
418200FC 38C0FFFF
4AA6715C 28090001
418200D4 3929FFFE
5529063E 28090002
41A1FFE4 38600025
4E800020 28090002
418200BC 3929FFFD
4BFFFFA8 2C040002
3D208180 89299002
4182002C 2C040008
40A2FFB4 28090001
418200AC 3929FFFE
5529063E 28090001
41A1FF9C 38600007
4E800020 28090002
41820094 28090003
40A2FF84 38600001
4E800020 3D20803E
4182005C 28090032
41820034 28090030
40A20044 2C040021
3D208180 890992D1
418200C4 2C040026
418200C4 2C04001D
40A20024 39200004
48000068 2C04001D
3D208180 890992D0
4182008C 2C040021
4182008C 38C0FFFF
4AA67114 2C040002
3D208180 890992D2
4182008C 2C040008
40A2FFE4 39200005
48000028 3D20803E
3929A9C0 7C0A4800
4082FF6C 2C05FFFF
40A2FF64 3D208180
89499000 2C0A0000
41A2FF54 39200003
3860001E 7D2A4B96
1D290003 7D295050
28090001 4D820020
28090002 38600020
4C820020 3860006E
4E800020 38600050
4E800020 38600045
4E800020 38600062
4E800020 3860001C
4E800020 38600051
4E800020 38600036
4E800020 9421FFE0
7C0802A6 BFC10018
7C7E1B78 90010024
4A83C041 3D208040
A3E90D50 3D208180
281F0041 40A2007C
3D408180 A14A9010
714A0041 2C0A0041
41820014 8949900C
394A0003 554A07BE
9949900C 281F0044
8909900C 408200D0
3D408180 A14A9010
714A0044 2C0A0044
418200BC 28080003
40A2000C 39400000
9949900C 88E9900C
3D408180 394A9000
38C00004 7D0A38AE
2C080000 41820068
3908FFFF 4800005C
281F0042 8949900C
4182005C 281F0048
40A2FF9C 3D008180
A1089010 71080048
2C080048 41820060
280A0003 40A2000C
39400000 9949900C
88E9900C 3D408180
394A9000 38C00000
7D0A38AE 28080003
4181000C 39080001
5506063E 7CCA39AE
48000024 3D008180
A1089010 71080042
2C080042 41820010
394A0001 554A07BE
9949900C 88E9900C
39200023 2C070000
41820008 39200020
28070001 3D008180
89489000 38C00023
41820008 38C00020
28070002 39089000
88880001 38A00023
41820008 38A00020
89080002 38600010
90A10010 38E0FFFF
91010014 3D008180
9081000C 390893BC
90C10008 38A00014
38C0FFFF 38800140
4CC63182 4BFF6EC5
80010024 3D208180
7FC3F378 B3E99010
7C0803A6 83C10018
83E1001C 38210020
4A83BE90 838BFFF0
83ABFFF4 83CBFFF8
800B0004 83EBFFFC
7C0803A6 7D615B78
4E800020 50617474
4082FFCC 2C05FFFF
4082FFC4 3D208180
890992D0 39200007
2C080000 41A2FFB0
3D408180 5529103A
394A92A9 7D2A4A14
7D294214 8929FFFF
7D290774 2C09FFFF
41A2FF8C 7D234B78
4E800020 39200001
4BFFFFC8 39200000
4BFFFFC0 39200003
4BFFFFB8 39200002
4BFFFFB0 39200006
4BFFFFA8 9421FFE0
7C0802A6 90010024
BFC10018 7C7F1B78
4A83C061 38800001
38600042 3FC08180
4BFFFE29 38800003
38600041 4BFFFE1D
38800001 38600048
4BFFFE49 38800004
38600044 4BFFFE3D
395E92CC 892A0002
3D008180 88CA0006
3908928C 21290003
38600010 90C10014
7CE84A14 38A00014
38800140 88C70002
90C10010 88CA0005
90C1000C 38C0FFFF
88E70001 90E10008
38E0FFFF 7D2848AE
3D008180 894A0004
39089294 4CC63182
4BFF6FD9 3D208040
A1290D50 7FE3FB78
80010024 B13E92CC
83E1001C 7C0803A6
83C10018 38210020
4A83BFA0 20202023
20200000 50617474
65726E20 25632558
25632558 25632558
00000000 00000000
0424F324 7FE6FB78
00452020 FFFF621C
FF502525 25FF4520
20FFFF62 1C510707
FFFF3601 FF1E6E20
FF000000 00000000
0424f324 7FE6FB78
</source>
</code>
<code>

View file

@ -1,5 +1,8 @@
# Changelog
## Apr 21, 2022
### Reduced code size of Pattern Selector
Reduce 240 bytes of PS by replacing switch case with lookup table.
### Reverted QFT to version 0.5
Codes are getting too big for Nintendont, reverting to a simpler version while we figure out ways to make everything fit.