fixed some structures

This commit is contained in:
aap 2015-12-22 12:11:10 +01:00
parent 39ff5b6288
commit aed3fefd01
2 changed files with 128 additions and 129 deletions

View File

@ -169,13 +169,13 @@ struct RslMaterialList {
struct RslGeometry { struct RslGeometry {
RslObject object; RslObject object;
uint16 locked; // ? int16 refCount;
int16 refCount; // ? int16 pad1;
RslMaterialList matList; RslMaterialList matList;
RslSkin *skin; RslSkin *skin;
uint32 pad; // 0xAAAAAAAA uint32 pad2; // 0xAAAAAAAA
}; };
struct RslMatFXEnv { struct RslMatFXEnv {
@ -194,8 +194,7 @@ struct RslMatFX {
struct RslMaterial { struct RslMaterial {
char *texname; char *texname;
uint32 color; uint32 color;
uint16 refCount; uint32 refCount;
uint16 pad;
RslMatFX *matfx; RslMatFX *matfx;
}; };

View File

@ -64,14 +64,14 @@ RslGeometryForAllMaterials(RslGeometry *geometry, RslMaterialCallBack fpCallBack
RslFrame *dumpFrameCB(RslFrame *frame, void *data) RslFrame *dumpFrameCB(RslFrame *frame, void *data)
{ {
printf(" frm: %x %s %x\n", frame->nodeId, frame->name, frame->unk3); printf(" frm: %x %s %x\n", frame->nodeId, frame->name, frame->hierId);
RslFrameForAllChildren(frame, dumpFrameCB, data); RslFrameForAllChildren(frame, dumpFrameCB, data);
return frame; return frame;
} }
RslMaterial *dumpMaterialCB(RslMaterial *material, void*) RslMaterial *dumpMaterialCB(RslMaterial *material, void*)
{ {
printf(" mat: %s %x %x\n", material->texname, material->pad, material->refCount); printf(" mat: %s %x\n", material->texname, material->refCount);
if(material->matfx){ if(material->matfx){
RslMatFX *fx = material->matfx; RslMatFX *fx = material->matfx;
printf(" matfx: ", fx->effectType); printf(" matfx: ", fx->effectType);