Implement & link m_diary, m_scene_table

This commit is contained in:
Cuyler36
2024-11-01 05:15:01 -04:00
parent 541fddf061
commit 97487ed354
5 changed files with 512 additions and 534 deletions
+3 -3
View File
@@ -1381,7 +1381,7 @@ config.libs = [
Object(Matching, "game/m_debug_mode.c"),
Object(Matching, "game/m_demo.c"),
Object(NonMatching, "game/m_design_ovl.c"),
Object(NonMatching, "game/m_diary.c"),
Object(Matching, "game/m_diary.c"),
Object(NonMatching, "game/m_diary_ovl.c"),
Object(Matching, "game/m_eappli.c"),
Object(Matching, "game/m_editEndChk_ovl.c"),
@@ -1464,9 +1464,9 @@ config.libs = [
Object(Matching, "game/m_room_type.c"),
Object(Matching, "game/m_scene.c"),
Object(Matching, "game/m_scene_ftr.c"),
Object(NonMatching, "game/m_scene_table.c"),
Object(Matching, "game/m_scene_table.c"),
Object(Matching, "game/m_select.c"),
Object(NonMatching, "game/m_shop.c"),
Object(Equivalent, "game/m_shop.c"),
Object(Matching, "game/m_skin_matrix.c"),
Object(Matching, "game/m_snowman.c"),
Object(Matching, "game/m_soncho.c"),
+1
View File
@@ -21,6 +21,7 @@ typedef struct diary_data_s {
} mDi_data_c;
extern int mDi_strlen(u8* str, int max_len, u8 end_char);
extern void mDi_init_diary(mDi_entry_c* entry_p);
#ifdef __cplusplus
}
+28
View File
@@ -0,0 +1,28 @@
#include "m_diary.h"
#include "libultra/libultra.h"
#include "m_lib.h"
#include "m_font.h"
extern int mDi_strlen(u8* str, int max_len, u8 end_char) {
int i;
str += max_len - 1;
for (i = max_len; i != 0; i--) {
if (*str != end_char) {
return i;
}
str--;
}
return 0;
}
static void mDi_clear_diary(mDi_entry_c* entry_p) {
bzero(entry_p->text, sizeof(entry_p->text));
mem_clear(entry_p->text, sizeof(entry_p->text), CHAR_SPACE);
}
extern void mDi_init_diary(mDi_entry_c* entry_p) {
mDi_clear_diary(entry_p);
}
+3
View File
@@ -0,0 +1,3 @@
#include "m_scene.h"
Scene_data_status_c scene_data_status[SCENE_NUM] = {};
+477 -531
View File
File diff suppressed because it is too large Load Diff