1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 04:09:16 +00:00

Fix Endian functions names in hsTypes and hsStream.

Function and macro names for endianness were previously vague,
and on big-endian systems entirely misleading.  The names are
now properly descriptive of what they actually do.
This commit is contained in:
2011-10-23 14:01:54 -07:00
committed by Darryl Pogue
parent ab37a4a486
commit e462ef04b3
255 changed files with 2676 additions and 2676 deletions

View File

@ -301,15 +301,15 @@ void plMorphDelta::SetDeltas(int iSpan, const hsTArray<plVertDelta>& deltas, int
void plMorphDelta::Read(hsStream* s, hsResMgr* mgr)
{
fWeight = s->ReadSwapScalar();
fWeight = s->ReadLEScalar();
int n = s->ReadSwap32();
int n = s->ReadLE32();
SetNumSpans(n);
int iSpan;
for( iSpan = 0; iSpan < n; iSpan++ )
{
int nDel = s->ReadSwap32();
int nUVW = s->ReadSwap32();
int nDel = s->ReadLE32();
int nUVW = s->ReadLE32();
AllocDeltas(iSpan, nDel, nUVW);
if( nDel )
{
@ -323,17 +323,17 @@ void plMorphDelta::Read(hsStream* s, hsResMgr* mgr)
void plMorphDelta::Write(hsStream* s, hsResMgr* mgr)
{
s->WriteSwapScalar(fWeight);
s->WriteLEScalar(fWeight);
s->WriteSwap32(fSpans.GetCount());
s->WriteLE32(fSpans.GetCount());
int iSpan;
for( iSpan = 0; iSpan < fSpans.GetCount(); iSpan++ )
{
int nDel = fSpans[iSpan].fDeltas.GetCount();
int nUVW = fSpans[iSpan].fNumUVWChans;
s->WriteSwap32(nDel);
s->WriteSwap32(nUVW);
s->WriteLE32(nDel);
s->WriteLE32(nUVW);
if( nDel )
{