mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-11 13:08:34 -04:00
Implement & link m_diary, m_scene_table
This commit is contained in:
+3
-3
@@ -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"),
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
#include "m_scene.h"
|
||||
|
||||
Scene_data_status_c scene_data_status[SCENE_NUM] = {};
|
||||
+477
-531
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user