summaryrefslogtreecommitdiff
path: root/src/m_Do/m_Do_machine_exception.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2021-09-27 18:42:36 -0700
committerGitHub <noreply@github.com>2021-09-27 18:42:36 -0700
commit4efaff5faf5cb5e333629553e1a826cb8e046493 (patch)
treed85f9c5049adf9f59339623b97d9dc794710fbc6 /src/m_Do/m_Do_machine_exception.cpp
parent512cc73cd7dc9af497e698e0ddcbfad3de53bf37 (diff)
parent0a5d76de76c6041e5a81790ab107497cf11353fb (diff)
Merge pull request #151 from TakaRikka/pr___
m_Do_printf / JUTConsole
Diffstat (limited to 'src/m_Do/m_Do_machine_exception.cpp')
-rw-r--r--src/m_Do/m_Do_machine_exception.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/m_Do/m_Do_machine_exception.cpp b/src/m_Do/m_Do_machine_exception.cpp
index 39d2d97291..5e91299570 100644
--- a/src/m_Do/m_Do_machine_exception.cpp
+++ b/src/m_Do/m_Do_machine_exception.cpp
@@ -7,6 +7,7 @@
#include "JSystem/JFramework/JFWSystem.h"
#include "JSystem/JKernel/JKRAram.h"
#include "JSystem/JUtility/JUTConsole.h"
+#include "Runtime.PPCEABI.H/__va_arg.h"
#include "d/com/d_com_inf_game.h"
#include "dol2asm.h"
#include "dolphin/types.h"
@@ -26,7 +27,6 @@ struct DynamicModuleControlBase {
//
extern "C" void dump__24DynamicModuleControlBaseFv();
-extern "C" void JUTConsole_print_f_va_();
//
// Declarations:
@@ -39,15 +39,12 @@ static JUTConsole* sConsole;
u8 struct_80450C94[4];
#pragma pop
-/* 80017D7C-80017E08 0126BC 008C+00 3/3 0/0 0/0 .text print_f__FPCce */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-static asm void print_f(char const* param_0, ...) {
- nofralloc
-#include "asm/m_Do/m_Do_machine_exception/print_f__FPCce.s"
+void print_f(char const* fmt, ...) {
+ va_list args;
+ va_start(args, fmt);
+ JUTConsole_print_f_va_(sConsole, fmt, args);
+ va_end(args);
}
-#pragma pop
void print(char const* string) {
sConsole->print(string);