File tree Expand file tree Collapse file tree 5 files changed +33
-25
lines changed Expand file tree Collapse file tree 5 files changed +33
-25
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include < cstdint>
4
4
5
- namespace gc ::os {
5
+ namespace gc ::OSAlloc {
6
6
7
7
struct ChunkInfo
8
8
{
@@ -20,6 +20,14 @@ struct HeapInfo
20
20
21
21
extern " C" {
22
22
23
+ // DLInsert
24
+ // OSAllocFromHeap
25
+ // OSFreeToHeap
26
+ // OSSetCurrentHeap
27
+ // OSInitAlloc
28
+ // OSCreateHeap
29
+ // OSDestroyHeap
30
+
23
31
extern HeapInfo *HeapArray;
24
32
extern int32_t NumHeaps;
25
33
Original file line number Diff line number Diff line change 1827
1827
// OSAlloc.c
1828
1828
// text
1829
1829
// 8029A238:DLInsert
1830
- 8029A2E4:OSAllocFromHeap
1831
- 8029A3E0:OSFreeToHeap
1832
- 8029A45C:OSSetCurrentHeap
1833
- 8029A46C:OSInitAlloc
1834
- 8029A4DC:OSCreateHeap
1835
- 8029A548:OSDestroyHeap
1830
+ // 8029A2E4:OSAllocFromHeap
1831
+ // 8029A3E0:OSFreeToHeap
1832
+ // 8029A45C:OSSetCurrentHeap
1833
+ // 8029A46C:OSInitAlloc
1834
+ // 8029A4DC:OSCreateHeap
1835
+ // 8029A548:OSDestroyHeap
1836
1836
// data
1837
1837
8042B9E0:HeapArray
1838
1838
8042B9E4:NumHeaps
Original file line number Diff line number Diff line change 1823
1823
// OSAlloc.c
1824
1824
// text
1825
1825
// 802903E8:DLInsert
1826
- 80290494:OSAllocFromHeap
1827
- 80290590:OSFreeToHeap
1828
- 8029060C:OSSetCurrentHeap
1829
- 8029061C:OSInitAlloc
1830
- 8029068C:OSCreateHeap
1831
- 802906F8:OSDestroyHeap
1826
+ // 80290494:OSAllocFromHeap
1827
+ // 80290590:OSFreeToHeap
1828
+ // 8029060C:OSSetCurrentHeap
1829
+ // 8029061C:OSInitAlloc
1830
+ // 8029068C:OSCreateHeap
1831
+ // 802906F8:OSDestroyHeap
1832
1832
// data
1833
1833
80418EA0:HeapArray
1834
1834
80418EA4:NumHeaps
Original file line number Diff line number Diff line change 1824
1824
// OSAlloc.c
1825
1825
// text
1826
1826
// 80296400:DLInsert
1827
- 802964AC:OSAllocFromHeap
1828
- 802965A8:OSFreeToHeap
1829
- 80296624:OSSetCurrentHeap
1830
- 80296634:OSInitAlloc
1831
- 802966A4:OSCreateHeap
1832
- 80296710:OSDestroyHeap
1827
+ // 802964AC:OSAllocFromHeap
1828
+ // 802965A8:OSFreeToHeap
1829
+ // 80296624:OSSetCurrentHeap
1830
+ // 80296634:OSInitAlloc
1831
+ // 802966A4:OSCreateHeap
1832
+ // 80296710:OSDestroyHeap
1833
1833
// data
1834
1834
8041F070:HeapArray
1835
1835
8041F074:NumHeaps
Original file line number Diff line number Diff line change 8
8
#include " patch.h"
9
9
10
10
#include < gc/OSCache.h>
11
- #include < gc/os .h>
11
+ #include < gc/OSAlloc .h>
12
12
#include < ttyd/item_data.h>
13
13
#include < ttyd/seq_mapchange.h>
14
14
#include < ttyd/seqdrv.h>
@@ -498,16 +498,16 @@ void checkHeaps()
498
498
char *tempDisplayBuffer = DisplayBuffer;
499
499
500
500
// Check the standard heaps
501
- int32_t TotalHeaps = gc::os ::NumHeaps;
502
- gc::os ::HeapInfo *HeapArray = gc::os ::HeapArray;
501
+ int32_t TotalHeaps = gc::OSAlloc ::NumHeaps;
502
+ gc::OSAlloc ::HeapInfo *HeapArray = gc::OSAlloc ::HeapArray;
503
503
504
504
for (int32_t i = 0 ; i < TotalHeaps; i++)
505
505
{
506
- const gc::os ::HeapInfo &heap = HeapArray[i];
506
+ const gc::OSAlloc ::HeapInfo &heap = HeapArray[i];
507
507
bool valid = true ;
508
508
509
- gc::os ::ChunkInfo *currentChunk = nullptr ;
510
- gc::os ::ChunkInfo *prevChunk = nullptr ;
509
+ gc::OSAlloc ::ChunkInfo *currentChunk = nullptr ;
510
+ gc::OSAlloc ::ChunkInfo *prevChunk = nullptr ;
511
511
for (currentChunk = heap.firstUsed ; currentChunk; currentChunk = currentChunk->next )
512
512
{
513
513
// Check pointer sanity
You can’t perform that action at this time.
0 commit comments