2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 18:45:22 +00:00

RE COutput/InputStream and friends and migrate over

This branch is probably still horribly broken, but it's a good first step to migrating away from having hecl embedded in the runtime
This commit is contained in:
2022-02-17 23:37:54 -08:00
parent c679c2e0f8
commit dad7249927
172 changed files with 3629 additions and 2780 deletions

View File

@@ -7,11 +7,11 @@ namespace metaforce {
CPVSVisOctree CPVSVisOctree::MakePVSVisOctree(const u8* data) {
CMemoryInStream r(data, 68);
const zeus::CAABox aabb = zeus::CAABox::ReadBoundingBoxBig(r);
const u32 numObjects = r.readUint32Big();
const u32 numLights = r.readUint32Big();
r.readUint32Big();
return CPVSVisOctree(aabb, numObjects, numLights, data + r.position());
const zeus::CAABox aabb = r.Get<zeus::CAABox>();
const u32 numObjects = r.ReadLong();
const u32 numLights = r.ReadLong();
r.ReadLong();
return CPVSVisOctree(aabb, numObjects, numLights, data + r.GetReadPosition());
}
CPVSVisOctree::CPVSVisOctree(const zeus::CAABox& aabb, u32 numObjects, u32 numLights, const u8* c)