mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-14 04:06:09 +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:
@@ -3,11 +3,11 @@
|
||||
|
||||
namespace metaforce {
|
||||
CTextureCache::CTextureCache(CInputStream& in) {
|
||||
u32 textureCount = in.readUint32Big();
|
||||
u32 textureCount = in.ReadLong();
|
||||
for (u32 i = 0; i < textureCount; ++i) {
|
||||
CAssetId uid(in);
|
||||
if (m_textureInfo.find(uid) == m_textureInfo.end())
|
||||
m_textureInfo.emplace(uid, CTextureInfo(in));
|
||||
m_textureInfo.emplace(uid, in.Get<CTextureInfo>());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user