mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
Attempt to make save status
This commit is contained in:
1 parent
e1ce6c061e
commit
b12fbb9d3e
1 file changed
+20
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user