-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement & link m_diary, m_scene_table
- Loading branch information
Showing
5 changed files
with
487 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "m_scene.h" | ||
|
||
Scene_data_status_c scene_data_status[SCENE_NUM] = {}; |
Oops, something went wrong.