mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-05 11:17:43 -04:00
Fakematch J3DZModeInfo to fix ninja diff error
This commit is contained in:
+2
-3
@@ -1399,11 +1399,10 @@ u8 dShop_BoughtErrorStatus(ShopItems_c* shopItems, int param_2, int param_3) {
|
||||
|
||||
/* 800606A8-80060830 .text __ct__12ShopCursor_cFP12J3DModelDataP15J3DAnmTevRegKeyf */
|
||||
ShopCursor_c::ShopCursor_c(J3DModelData* modelData, J3DAnmTevRegKey* brkData, f32 param_2) {
|
||||
// TODO: this should be a J3DZModeInfo, but that's 3 bytes when inside arrays, while this is supposed to be 4 bytes, with 1-byte alignment.
|
||||
static u8 ZModeInfo[4] = {GX_TRUE, GX_ALWAYS, GX_TRUE};
|
||||
static J3DZModeInfo_4bytes ZModeInfo = {GX_TRUE, GX_ALWAYS, GX_TRUE};
|
||||
for (u16 i = 0; i < modelData->getMaterialNum(); i++) {
|
||||
J3DMaterial* mat = modelData->getMaterialNodePointer(i);
|
||||
mat->getZMode()->setZModeInfo(*(J3DZModeInfo*)&ZModeInfo);
|
||||
mat->getZMode()->setZModeInfo(ZModeInfo.parent);
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int)ARRAY_SIZE(mpModels); i++) {
|
||||
|
||||
Reference in New Issue
Block a user