mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +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:
@ -108,7 +108,7 @@ void plSharedMesh::Read(hsStream* s, hsResMgr* mgr)
|
||||
hsKeyedObject::Read(s, mgr);
|
||||
|
||||
int i;
|
||||
fSpans.SetCount(s->ReadSwap32());
|
||||
fSpans.SetCount(s->ReadLE32());
|
||||
for (i = 0; i < fSpans.GetCount(); i++)
|
||||
{
|
||||
fSpans[i] = TRACKED_NEW plGeometrySpan;
|
||||
@ -124,7 +124,7 @@ void plSharedMesh::Write(hsStream* s, hsResMgr* mgr)
|
||||
hsKeyedObject::Write(s, mgr);
|
||||
|
||||
int i;
|
||||
s->WriteSwap32(fSpans.GetCount());
|
||||
s->WriteLE32(fSpans.GetCount());
|
||||
for (i = 0; i < fSpans.GetCount(); i++)
|
||||
fSpans[i]->Write(s);
|
||||
|
||||
|
Reference in New Issue
Block a user