diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2023-04-21 02:02:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-21 02:02:03 -0700 |
| commit | f5fc527d39c754fde87aeb90033d2efd698ad7e2 (patch) | |
| tree | bce002e621968da87e420d06d09193840a381c9b /src/m_Do/m_Do_printf.cpp | |
| parent | 472340e2d65914f3a19aa332ad31939755ee4579 (diff) | |
add MSL_C/stdio.h (#317)
Diffstat (limited to 'src/m_Do/m_Do_printf.cpp')
| -rw-r--r-- | src/m_Do/m_Do_printf.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/m_Do/m_Do_printf.cpp b/src/m_Do/m_Do_printf.cpp index 4b61d7155d..ce5b2b8ea8 100644 --- a/src/m_Do/m_Do_printf.cpp +++ b/src/m_Do/m_Do_printf.cpp @@ -4,13 +4,13 @@ */ #include "m_Do/m_Do_printf.h" +#include "MSL_C/stdio.h" #include "Runtime.PPCEABI.H/__va_arg.h" #include "dol2asm.h" #include "dolphin/os/OS.h" #include "dolphin/types.h" #include "m_Do/m_Do_ext.h" #include "dolphin/base/PPCArch.h" -#include "MSL_C/MSL_Common/Src/file_io.h" /* 80450B98-80450B9C -00001 0004+00 0/0 6/6 0/0 .sbss None */ u8 __OSReport_disable; @@ -37,7 +37,7 @@ asm void OSSwitchFiberEx(u32 param_0, u32 param_1, u32 param_2, u32 param_3, u32 /* 800067C8-800067F4 001108 002C+00 3/3 0/0 0/0 .text my_PutString__FPCc */ void my_PutString(const char* string) { - fputs(string, &__files.stdout); + fputs(string, stdout); } /* 800067F4-80006814 001134 0020+00 3/3 0/0 0/0 .text OSVAttention__FPCcP16__va_list_struct */ @@ -178,7 +178,7 @@ void OSReport_FatalError(char* fmt, ...) { OSVAttention(fmt, args); my_PutString("***** FATAL ERROR *****\n\x1B[m"); OSReportForceEnableOff(); - fflush(&__files.stdout); + fflush(stdout); print_errors++; va_end(args); @@ -195,7 +195,7 @@ void OSReport_Error(char* fmt, ...) { OSVReport(fmt, args); my_PutString("\x1B[m"); OSReportForceEnableOff(); - fflush(&__files.stdout); + fflush(stdout); va_end(args); } } @@ -211,7 +211,7 @@ void OSReport_Warning(char* fmt, ...) { OSVAttention(fmt, args); my_PutString("\x1B[m"); OSReportForceEnableOff(); - fflush(&__files.stdout); + fflush(stdout); va_end(args); } } |
