mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Convert SDL (mostly) to plStrings
This commit is contained in:
@ -821,21 +821,20 @@ void plClothingOutfit::ReadFromVault()
|
||||
ram.Write(sdl.sdlDataLen, sdl.sdlData);
|
||||
ram.Rewind();
|
||||
|
||||
char * sdlRecName = nil;
|
||||
int sdlRecVersion;
|
||||
plString sdlRecName;
|
||||
int sdlRecVersion;
|
||||
plStateDataRecord::ReadStreamHeader(&ram, &sdlRecName, &sdlRecVersion);
|
||||
plStateDescriptor * desc = plSDLMgr::GetInstance()->FindDescriptor(sdlRecName, sdlRecVersion);
|
||||
if (desc) {
|
||||
plStateDataRecord * sdlDataRec = new plStateDataRecord(desc);
|
||||
if (sdlDataRec->Read(&ram, 0)) {
|
||||
if (!strcmp(sdlRecName, kSDLMorphSequence))
|
||||
if (sdlRecName == kSDLMorphSequence)
|
||||
IHandleMorphSDR(sdlDataRec);
|
||||
else
|
||||
plClothingSDLModifier::HandleSingleSDR(sdlDataRec, this);
|
||||
}
|
||||
delete sdlDataRec;
|
||||
}
|
||||
delete [] sdlRecName;
|
||||
}
|
||||
nodes[i]->DecRef();
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ void plClothingSDLModifier::HandleSingleSDR(const plStateDataRecord *sdr, plClot
|
||||
int i;
|
||||
uint8_t tint[3];
|
||||
float tintScalar[3];
|
||||
if (!strcmp(sdr->GetDescriptor()->GetName(), kStrClothingDescName))
|
||||
if (sdr->GetDescriptor()->GetName() == kStrClothingDescName)
|
||||
{
|
||||
// get item from clothesItem
|
||||
plSimpleStateVariable* itemVar = sdr->FindVar(kStrItem);
|
||||
@ -284,7 +284,7 @@ void plClothingSDLModifier::HandleSingleSDR(const plStateDataRecord *sdr, plClot
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!strcmp(sdr->GetDescriptor()->GetName(), kStrAppearanceDescName))
|
||||
else if (sdr->GetDescriptor()->GetName() == kStrAppearanceDescName)
|
||||
{
|
||||
// skin tints
|
||||
plSimpleStateVariable* skinVar = sdr->FindVar(kStrSkinTint);
|
||||
|
Reference in New Issue
Block a user