mirror of
https://github.com/PrimeDecomp/PrimeRemasterStructs.git
synced 2026-07-12 18:18:58 -07:00
Minor fixes
This commit is contained in:
+8
-10
@@ -6,7 +6,7 @@
|
||||
#include "Common.bt"
|
||||
|
||||
typedef struct STimelineEvent {
|
||||
uint unk1;
|
||||
float unk1;
|
||||
float unk2;
|
||||
} STimelineEvent;
|
||||
|
||||
@@ -52,8 +52,8 @@ typedef struct CAudioMetaSample {
|
||||
float unk8;
|
||||
float unk9;
|
||||
float unk10;
|
||||
float unk11;
|
||||
float unk12;
|
||||
int unk11;
|
||||
int unk12;
|
||||
int unk13;
|
||||
float unk14;
|
||||
int unk15;
|
||||
@@ -102,18 +102,16 @@ typedef struct CAudioSoundEffect {
|
||||
// Loaded by CAudioSoundEffect::FinishConstructing
|
||||
float unk2;
|
||||
uint unk3 <format = binary>;
|
||||
local uint useUnk3 <format = hex> = (unk3 & 0xffffff80) | (unk3 & 7) | ((unk3 >> 1) & 8) | (((unk3 >> 3) & 1)) << 4 | ((unk3 >> 5) & 1) << 6 | ((unk3 >> 1) & 32);
|
||||
|
||||
if (((unk3 << 1) >> 6) & 1) {
|
||||
if (unk3 & (1 << 1)) {
|
||||
uchar unk4;
|
||||
if ((useUnk3 >> 2) & 1) {
|
||||
float unk5;
|
||||
}
|
||||
} else if (unk3 & 4) {
|
||||
}
|
||||
|
||||
if (unk3 & (1 << 2)) {
|
||||
float unk5;
|
||||
}
|
||||
|
||||
if ((useUnk3 >> 3) & 1) {
|
||||
if (unk3 & (1 << 4)) {
|
||||
float unk6;
|
||||
}
|
||||
|
||||
|
||||
+23
-23
@@ -133,7 +133,7 @@ struct SSkinnedModelHeader {
|
||||
uint uintsCount;
|
||||
uint uints[uintsCount];
|
||||
uint dataCount;
|
||||
uint data[dataCount];
|
||||
char data[dataCount];
|
||||
}
|
||||
};
|
||||
|
||||
@@ -250,40 +250,40 @@ struct CLayeredTextureData
|
||||
|
||||
typedef struct {
|
||||
FourCC id <read=ReadMaterialDataId>;
|
||||
if (ReadByte() == 0) //Fix DKCTF WiiU models
|
||||
{
|
||||
uint32 tmpFormatI32; //Do this so we can get the fancy struct names
|
||||
switch (tmpFormatI32)
|
||||
{
|
||||
case 0:
|
||||
if (ReadByte() == 0) //Fix DKCTF WiiU models
|
||||
{
|
||||
uint32 tmpFormatI32; //Do this so we can get the fancy struct names
|
||||
switch (tmpFormatI32)
|
||||
{
|
||||
case 0:
|
||||
local FourCC type = "TXTR";
|
||||
CMaterialTextureTokenData texture;
|
||||
break;
|
||||
case 1:
|
||||
CMaterialTextureTokenData texture;
|
||||
break;
|
||||
case 1:
|
||||
local FourCC type = "COLR";
|
||||
float color[4];
|
||||
break;
|
||||
case 2:
|
||||
float color[4];
|
||||
break;
|
||||
case 2:
|
||||
local FourCC type = "SCLR";
|
||||
float scalar;
|
||||
break;
|
||||
case 3:
|
||||
case 3:
|
||||
local FourCC type = "INT1"; //Not sure if in DKCTF but need to dcheck
|
||||
int int1;
|
||||
break;
|
||||
case 4:
|
||||
int int1;
|
||||
break;
|
||||
case 4:
|
||||
local FourCC type = "CPLX";
|
||||
byte unk[141];
|
||||
break;
|
||||
case 5:
|
||||
byte unk[141];
|
||||
break;
|
||||
case 5:
|
||||
local FourCC type = "INT4";
|
||||
int int4[4];
|
||||
break;
|
||||
case 6:
|
||||
case 6:
|
||||
local FourCC type = "MAT4"; //Not sure if in DKCTF but need to dcheck
|
||||
float mtx[16];
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user