Commit ca9481d
authored
d_cloth_packet matching (#928)
* Match dCloth_packet_c::setMtx
* Match dCloth_packet_c::setGlobalWind
* Match dCloth_packet_c::dCloth_packet_c constructor implementation
* Match dCloth_packet_c::getFactor and get_cloth_anim_sub_factor implementation
* Match dCloth_packet_c::cloth_move implementation
* Match dCloth_packet_c::setNrm implementation
* Match dCloth_packet_c::init and default_factor_checkCB implementation
* Match dCloth_packet_c::draw implementation
* Match dCloth_packet_c::cloth_draw implementation
* Match dCloth_packet_c::plot implementation
* Match dCloth_packet_c::TexObjLoad implementation
* Match dCloth_packet_c::TexObjInit implementation
* Match dCloth_packet_c::TevSetting implementation
* Match dCloth_packet_c::dCloth_packet_create implementation
* Match dCloth_packet_c::TevSetting implementation
* Match dCloth_packetXlu_c::TevSetting implementation and make dCloth_packet_c members protected
* Match dCloth_packetXlu_c::cloth_draw implementation
* Match dClothVobj03_c::cloth_copy implementation and update member definitions
* Match dClothVobj04_c, dClothVobj05_c, and dClothVobj07_0_c::cloth_copy implementations and update member definitions
* Match dClothVobj03_c::init implementation, update cloth_counter definitions, and add new member variables
* Match `dClothVobj04_c::init`, `dClothVobj05_c::init`, and `dClothVobj07_0_c::init` implementations, and add new member variables.
* Match `dClothVobj03_c::dClothVobj03_create` and constructor implementations, update member definitions, and add new logic checks.
* Match `dClothVobj03_c::cloth_move` implementation
* Match `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c::cloth_move` implementations
* Match `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c::TexObjInit` implementations, update member definitions, and initialize `mTlutObj`.
* Match `TexObjLoad` implementations for `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c`.
* Fix `dClothVobj04_c::cloth_move`
* Match `dClothVobj04_create`, `dClothVobj05_create`, and `dClothVobj07_0_create` implementations, update parameter definitions, and add new constructor logic.
* Update parameter names in `dClothVobj05_VtxFactorCB` and `dClothVobj07_0_VtxFactorCB` for consistency.
* Adjust parameter values in `dClothVobj05_create` and `dClothVobj07_0_create` for consistency with expected behavior.
* Match `dClothVobj05_VtxFactorCB` and `dClothVobj07_0_VtxFactorCB` implementations and update return logic.
* Fix constructors
* Refactor repetitive parameter assignments in `dCloth_packet_c` with `setParam` and `setWindPower` for cleaner and more maintainable code.
* Add `setFactorCheckCB` call in `dCloth_packet_c` initialization
* Refactor `dCloth_packet_c` and related classes to eliminate redundant success checks with `chkCreateBuff` helper method.
* Refactor `dCloth_packet_c` and related classes to use getter methods for cleaner access and rename methods for improved clarity.
* Simplify constructors for `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c` by removing redundant parameters.
* Replace `field_0x109` with `mIsIndoors` for improved clarity and consistency across `dCloth_packet_c` and related classes.
* Replace `VECDotProduct` with `inprod` method in `dCloth_packet_c` for improved readability and modern syntax usage.
* Make `top_pointer` and `cloth_counter` members private in multiple `dClothVobjXX_c` classes for encapsulation.
* Match cloth creation functions
* Add `l_alpha_matDL` assets and update `GXCallDisplayList` usage in `dCloth_packetXlu_c`
* Match dCloth_packet_c::init
* Match dCloth_packet_c::setNrm
* Refactor dCloth_packet_c to use mDoMtx_stack_c methods
* Match `get_cloth_anim_sub_factor` implementation in `dCloth_packet_c`.
* Refactor `getFactor` in `dCloth_packet_c` to use a bitmask for neighbor checks, enhancing code clarity and efficiency.
* Match dCloth_packet_c::cloth_move
* Match dCloth_packet_c::setGlobalWind
* Match dCloth_packet_c::plot implementation
* Remove unused virtual function declarations
* Update `d/d_cloth_packet.cpp` to Matching in configure.py
* Refactor field_0x108 and mIsIndoors to boolean types, rename, and add explanatory comments.
* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLE01")` in configure.py
* Add new material and alpha material configurations for `d_cloth_packet` across GZLP01, GZLJ01, and D44J01
* Update `d/d_cloth_packet.cpp` to `Matching` in configure.py
* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLE01", "GZLP01")` in configure.py
* Add conditional GXSetNumIndStages and resetVcdVatCache for non-JPN versions in `dCloth_packet_c::draw`
* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLJ01", "GZLE01", "GZLP01")` in configure.py
* Matched dCloth_packet_c::dCloth_packet_c for `VERSION_DEMO` in `d/d_cloth_packet.cpp`
* Matched dCloth_packet_c::cloth_move for `VERSION_DEMO` in `d/d_cloth_packet.cpp`
* Matched dCloth_packet_c::draw for `VERSION_DEMO` in `d/d_cloth_packet.cpp`
* Matched dCloth_packet_c::TexObjInit for `VERSION_DEMO` in `d/d_cloth_packet.cpp`
* Matched dClothVobjXX_c::TexObjInit for `VERSION_DEMO` in `d/d_cloth_packet.cpp`
* Update `d/d_cloth_packet.cpp` to `Matching` in configure.py
* Replaced direct member access with getter methods in `d/d_cloth_packet.cpp`
* Added `f` suffix to floating-point literals in `d/d_cloth_packet.cpp` for consistency.1 parent 579931b commit ca9481d
File tree
7 files changed
+1022
-108
lines changed- config
- D44J01
- GZLE01
- GZLJ01
- GZLP01
- include/d
- src/d
7 files changed
+1022
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3246 | 3246 | | |
3247 | 3247 | | |
3248 | 3248 | | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2795 | 2795 | | |
2796 | 2796 | | |
2797 | 2797 | | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2379 | 2379 | | |
2380 | 2380 | | |
2381 | 2381 | | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2391 | 2391 | | |
2392 | 2392 | | |
2393 | 2393 | | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
52 | 72 | | |
53 | 73 | | |
54 | 74 | | |
| |||
80 | 100 | | |
81 | 101 | | |
82 | 102 | | |
83 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
84 | 106 | | |
85 | 107 | | |
86 | | - | |
87 | | - | |
88 | 108 | | |
89 | | - | |
90 | | - | |
91 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
92 | 119 | | |
93 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
94 | 124 | | |
95 | 125 | | |
96 | 126 | | |
97 | 127 | | |
98 | | - | |
99 | 128 | | |
100 | 129 | | |
101 | | - | |
102 | 130 | | |
103 | 131 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
107 | 152 | | |
108 | | - | |
| 153 | + | |
109 | 154 | | |
110 | 155 | | |
111 | 156 | | |
112 | 157 | | |
113 | | - | |
114 | 158 | | |
115 | 159 | | |
116 | | - | |
117 | 160 | | |
118 | 161 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
122 | 182 | | |
123 | | - | |
| 183 | + | |
124 | 184 | | |
125 | 185 | | |
126 | 186 | | |
127 | 187 | | |
128 | | - | |
129 | 188 | | |
130 | 189 | | |
131 | | - | |
132 | 190 | | |
133 | 191 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
137 | 212 | | |
138 | | - | |
| 213 | + | |
139 | 214 | | |
140 | 215 | | |
141 | 216 | | |
142 | 217 | | |
143 | | - | |
144 | 218 | | |
145 | 219 | | |
146 | | - | |
147 | 220 | | |
148 | 221 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
152 | 242 | | |
153 | | - | |
| 243 | + | |
154 | 244 | | |
155 | 245 | | |
0 commit comments