summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-08-01 16:34:28 +0200
committerTreeki <treeki@gmail.com>2011-08-01 16:34:28 +0200
commitb00170de3f2c15f8088a2329f51b86bba24abfd7 (patch)
tree49be454d91c0a048f53373eeffd4da0751c1fa08 /src
parent9e6e6cecaaec6cf27fd818a66a18edadd6804a2b (diff)
downloadkamek-b00170de3f2c15f8088a2329f51b86bba24abfd7.tar.gz
kamek-b00170de3f2c15f8088a2329f51b86bba24abfd7.zip
added actor logging
Diffstat (limited to 'src')
-rwxr-xr-xsrc/destroy_tracker.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/destroy_tracker.cpp b/src/destroy_tracker.cpp
new file mode 100755
index 0000000..15bace9
--- /dev/null
+++ b/src/destroy_tracker.cpp
@@ -0,0 +1,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;
+}
+
+