Attempt to make save status

This commit is contained in:
sum2012 authored and Henrik Rydgård committed 2020-04-26 11:18:41 +02:00
1 parent e1ce6c061e
commit b12fbb9d3e
1 file changed
+20
+20
View File
@@ -2313,10 +2313,30 @@ struct HeapInformation : public KernelObject {
BlockAllocator alloc;
static int GetStaticIDType() { return SCE_KERNEL_TMID_Fpl; }// wrong
int GetIDType() const override { return SCE_KERNEL_TMID_Fpl; }// wrong
void DoState(PointerWrap &p) {
p.Do(uid);
p.Do(partitionId);
p.Do(size);
p.Do(flags);
p.Do(address);
p.Do(name);
p.Do(alloc);
}
};
std::map<u32, HeapInformation *> heapInformationList;
void __HeapInformationDoState(PointerWrap &p) {
auto s = p.Section("kernelHeap", 1);
if (!s)
return;
if (s >= 1) {
p.Do(heapInformationList);
}
}
static HeapInformation *getHeap(u32 heapId) {
auto found = heapInformationList.find(heapId);
if (found == heapInformationList.end()) {