diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-11-22 16:04:20 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-11-22 16:15:11 +1300 |
commit | 4f8805869c469cb1b3685e03c3ea34d7654b5cb7 (patch) | |
tree | efe555c1064b7a69738e3cf7fd107af7bdc0155f /arm9/source/core.h | |
parent | fcbc3968bd95e4d19b37d9fa4bca51b1db8596ff (diff) | |
download | bedrock-nds-4f8805869c469cb1b3685e03c3ea34d7654b5cb7.zip |
Implement file device
There is still a small amount of work to be done on the file device:
- Read file size only when requested
- Hide '.' and '..' directories
- Resize files
Diffstat (limited to 'arm9/source/core.h')
-rw-r--r-- | arm9/source/core.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/arm9/source/core.h b/arm9/source/core.h index fde13a7..ec3f2fc 100644 --- a/arm9/source/core.h +++ b/arm9/source/core.h @@ -2,11 +2,12 @@ #define CORE_H_ #include "devices/system.h" + #include "devices/memory.h" + #include "devices/math.h" #include "devices/clock.h" #include "devices/input.h" - #include "devices/math.h" #include "devices/screen.h" - #include "devices/memory.h" + #include "devices/file.h" #define WST br->wst #define RST br->rst @@ -74,12 +75,13 @@ ProgramMemory prg; // program memory StackMemory wst, rst; // working and return stacks - SystemDevice sys; - MemoryDevice mem; - MathDevice math; - ClockDevice clk; - InputDevice inp; - ScreenDevice scr; + SystemDevice sys; + MemoryDevice mem; + MathDevice math; + ClockDevice clk; + InputDevice inp; + ScreenDevice scr; + FileDevice fs; } Bedrock; void reset_br(Bedrock *br); |