mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-11 05:04:40 -04:00
f9380b3e05
* d_a_obj_carry work, SETUP_ACTOR macro * rm headers, add script * progress * macro rename, consistent spacing
45 lines
814 B
C
45 lines
814 B
C
/**
|
|
* usr_put.c
|
|
* Description:
|
|
*/
|
|
|
|
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h"
|
|
// #include "dolphin/os/OS.h"
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
// void OSReport(char* fmt, ...) causes extra crclr instruction.
|
|
// look into issue later
|
|
void OSReport(char* fmt);
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 8036DB10-8036DB14 368450 0004+00 0/0 1/1 0/0 .text usr_put_initialize */
|
|
void usr_put_initialize() {}
|
|
|
|
/* 8036DB14-8036DB9C 368454 0088+00 0/0 2/2 0/0 .text usr_puts_serial */
|
|
BOOL usr_puts_serial(const char* msg) {
|
|
BOOL connect_ = FALSE;
|
|
char c;
|
|
char buf[2];
|
|
|
|
while (!connect_ && (c = *msg++) != '\0') {
|
|
BOOL connect = GetTRKConnected();
|
|
|
|
buf[0] = c;
|
|
buf[1] = '\0';
|
|
|
|
SetTRKConnected(FALSE);
|
|
OSReport(buf);
|
|
|
|
SetTRKConnected(connect);
|
|
connect_ = FALSE;
|
|
}
|
|
|
|
return connect_;
|
|
}
|