2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 11:26: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:
2022-02-17 23:37:54 -08:00
parent c679c2e0f8
commit dad7249927
172 changed files with 3629 additions and 2780 deletions

View File

@@ -90,10 +90,10 @@ private:
u32 x0_version = 0;
std::array<bool, 3> x4_savePresent{};
void DoPut(CMemoryOutStream& out) const {
out.writeUint32Big(x0_version);
void DoPut(CMemoryStreamOut& out) const {
out.WriteLong(x0_version);
for (const bool savePresent : x4_savePresent) {
out.writeBool(savePresent);
out.Put(savePresent);
}
}
};
@@ -106,7 +106,7 @@ private:
explicit SGameFileSlot(CMemoryInStream& in);
void InitializeFromGameState();
void LoadGameState(u32 idx);
void DoPut(CMemoryOutStream& w) const { w.writeBytes(x0_saveBuffer.data(), x0_saveBuffer.size()); }
void DoPut(CMemoryStreamOut& w) const { w.Put(x0_saveBuffer.data(), x0_saveBuffer.size()); }
};
enum class EFileState { Unknown, NoFile, File, BadFile };