Add basic state for the memory kernel objects.

Not the actual memory partitions quite yet.
This commit is contained in:
Unknown W. Brackets
2012-12-26 21:07:29 -08:00
parent 991243fffd
commit d9efdf548b
4 changed files with 65 additions and 6 deletions

View File

@@ -297,3 +297,13 @@ u32 BlockAllocator::GetTotalFreeBytes()
}
return sum;
}
void BlockAllocator::DoState(PointerWrap &p)
{
Block default_value(0, 0, false);
p.Do(blocks, default_value);
p.Do(rangeStart_);
p.Do(rangeSize_);
p.Do(grain_);
p.DoMarker("BlockAllocator");
}