diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-11-22 16:04:33 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-11-22 16:07:48 +1300 |
commit | fcbc3968bd95e4d19b37d9fa4bca51b1db8596ff (patch) | |
tree | 333c6cf63f4b2aea513a9691b29c8f397e139c46 /arm9/source/main.c | |
parent | e05888d141bc64e92d81859af0d87627e6fbc477 (diff) | |
download | bedrock-nds-fcbc3968bd95e4d19b37d9fa4bca51b1db8596ff.zip |
Implement name and author ports in system device
Diffstat (limited to 'arm9/source/main.c')
-rw-r--r-- | arm9/source/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arm9/source/main.c b/arm9/source/main.c index 8bb78d8..ae983b3 100644 --- a/arm9/source/main.c +++ b/arm9/source/main.c @@ -14,6 +14,8 @@ Bedrock *br_main; Bedrock *br_sub; bool main_on_bottom = TRUE; +char *system_name = "bedrock-nds, 0.1.0-alpha"; +char *system_authors = "Ben Bridle, 2024"; u8 main_program[] = { #include "../include/cobalt.br.inc" @@ -57,9 +59,11 @@ int main(void) { #define AWAKE(br) (br && br->alive && br->awake) #define ASLEEP(br) (br && br->alive && !br->awake) - // Set memory identifiers. + // Set memory identifiers and system device strings. for (int i=0; i<NUM_BR; i++) { br[i].mem.id = i+1; + br[i].sys.name.mem = (u8*) &system_name[0]; + br[i].sys.authors.mem = (u8*) &system_authors[0]; } init_screens(); |