summaryrefslogtreecommitdiff
path: root/src/m_Do/m_Do_printf.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-05-06 21:49:41 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2026-05-06 21:49:41 -0400
commit88992615b905fbd122235bbfe420e5cd341af6a4 (patch)
tree5ef22c914a9a07ac1450c864ea6611aec8ea69d7 /src/m_Do/m_Do_printf.cpp
parent7838465e48ba26c44d9e4a645d436784c57b8ae5 (diff)
m_Do_printf OK for demo
Diffstat (limited to 'src/m_Do/m_Do_printf.cpp')
-rw-r--r--src/m_Do/m_Do_printf.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/m_Do/m_Do_printf.cpp b/src/m_Do/m_Do_printf.cpp
index 5753ae05..9c21dc62 100644
--- a/src/m_Do/m_Do_printf.cpp
+++ b/src/m_Do/m_Do_printf.cpp
@@ -26,7 +26,10 @@ extern "C" void* OSGetCallerPC(int param_0) {
}
/* 80006640-800066B0 .text OSGetActiveThreadID */
-extern "C" int OSGetActiveThreadID(OSThread* thread) {
+#if VERSION > VERSION_DEMO
+extern "C"
+#endif
+int OSGetActiveThreadID(OSThread* thread) {
OSThread* r31;
int id = -1;
BOOL enable = OSDisableInterrupts();
@@ -205,6 +208,7 @@ void OSPanic(const char* file, s32 line, const char* fmt, ...) {
u32 i;
u32* p;
u32* tmp;
+ u32 tmp2;
OSDisableInterrupts();
va_start(args, fmt);
@@ -217,7 +221,8 @@ void OSPanic(const char* file, s32 line, const char* fmt, ...) {
OSReport("0x%08x: 0x%08x 0x%08x\n", p, p[0], p[1]);
}
- tmp = (u32*)0x1234567; // ??????
- *tmp = 0x1234567;
+ tmp2 = 0x1234567;
+ tmp = (u32*)tmp2;
+ *tmp = tmp2;
PPCHalt();
}