summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorPrakxo <87568477+Prakxo@users.noreply.github.com>2024-04-03 00:09:06 +0200
committerGitHub <noreply@github.com>2024-04-02 15:09:06 -0700
commit1ffded6b490c23db809aa46c5c186dd8d554b271 (patch)
treee7b151646dc53d793c931f8f60107e1aa112a8d6 /include/m_string.h
parentd8789801b89077422faa376de4bb7f2d564c1103 (diff)
m_string OK (#162)
* m_string OK * replace with defines
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/m_string.h b/include/m_string.h
new file mode 100644
index 0000000..f336639
--- /dev/null
+++ b/include/m_string.h
@@ -0,0 +1,19 @@
+#ifndef C_6E7AD0_H
+#define C_6E7AD0_H
+
+#include "ultra64.h"
+#include "lb_rtc.h"
+#include "libc/stdint.h"
+
+void mString_Get_StringDataAddressAndSize(s32 idx, uintptr_t* vramp, size_t* size);
+void mString_Load_StringFromRom(char* dst, s32 dstLen, s32 strIdx);
+s32 mString_Load_YearStringFromRom(char* dst, lbRTC_year_t year);
+s32 mString_Load_MonthStringFromRom(char* dst, lbRTC_month_t month);
+s32 mString_Load_WeekStringFromRom(char* dst, lbRTC_weekday_t weekday);
+s32 mString_Load_DayStringFromRom(char* dst, lbRTC_day_t day);
+s32 mString_Load_HourStringFromRom(char* dst, lbRTC_hour_t hour);
+s32 mString_Load_MinStringFromRom(char* dst, lbRTC_min_t min);
+s32 mString_Load_SecStringFromRom(char* dst, lbRTC_sec_t sec);
+s32 mString_Load_NumberStringAddUnitFromRom(char* dst, u16 num, s32 idx);
+
+#endif