m_Do_printf OK for demo

This commit is contained in:
LagoLunatic
2026-05-06 21:49:41 -04:00
parent 7838465e48
commit 88992615b9
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ config.libs = [
"host": True,
"objects": [
Object(Matching, "m_Do/m_Do_main.cpp"),
Object(MatchingFor("GZLJ01", "GZLE01", "GZLP01"), "m_Do/m_Do_printf.cpp"),
Object(Matching, "m_Do/m_Do_printf.cpp"),
Object(MatchingFor("GZLJ01", "GZLE01", "GZLP01"), "m_Do/m_Do_audio.cpp"),
Object(MatchingFor("GZLJ01", "GZLE01", "GZLP01"), "m_Do/m_Do_controller_pad.cpp"),
Object(NonMatching, "m_Do/m_Do_graphic.cpp"),
+8 -3
View File
@@ -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();
}