summaryrefslogtreecommitdiff
path: root/src/destroy_tracker.cpp
blob: 15bace99140bff30db49f09b221846c72c4d2114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <common.h>

// @@ %SET_OFFSET 817F4000

// @@ %IFREGION pal
// @@ %PATCH 801626C0 %b:817F4000
// @@ %ENDIF

int trackDestroy(int objptr) {
	int oldLR;
	__asm__ __volatile__ (
		"mflr %0"
		: "=r" (oldLR)
	);
	OSReport("D%x @%x", objptr, oldLR);
	return objptr;
}