diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-09-19 13:17:14 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-09-19 13:32:32 +1200 |
commit | bb1aa5958d1b67707dcf0f6b08bfaf0b408bd46e (patch) | |
tree | b26d07ed58aaf7a5230fc3e28c103d616abfa9b8 /arm9/source/config.h | |
parent | 9612c307f00c4313d73fe0c3a86c05c8d8cd514e (diff) | |
download | bedrock-nds-bb1aa5958d1b67707dcf0f6b08bfaf0b408bd46e.zip |
Massive rewrite
This commit rewrites the emulator halfway from scratch to make it
easier to change and maintain in the future. The emulator core was
rewritten to adhere to the released Bedrock specification (earlier
versions implemented an older prototype specification, which is no
longer relevant).
This commit also adds proper support for running multiple concurrent
Bedrock instances. This was previously supported in a limited manner
for the on-screen keyboard, but now works for any regular program as
well, with switching being performed by pressing the L or R bumper
buttons. This is disabled by default, as programs will still need to
be baked into the emulator and hand-loaded.
Diffstat (limited to 'arm9/source/config.h')
-rw-r--r-- | arm9/source/config.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arm9/source/config.h b/arm9/source/config.h new file mode 100644 index 0000000..ae27fba --- /dev/null +++ b/arm9/source/config.h @@ -0,0 +1,22 @@ + +#ifndef CONFIG_H_ + #define CONFIG_H_ + + #include "bang.h" + + + // Allow the user to switch between instances with the L and R buttons. + #define SWITCH_BETWEEN_INSTANCES false + + // The number of Bedrock instances to initialise. This will determine + // the maximum number of programs that can run simultaneously (including + // the keyboard program). Should be at least 2. + #define NUM_INSTANCES 2 + + // Number of instances reserved for user programs. + #define USER_INSTANCES (NUM_INSTANCES-1) + + // Index of the keyboard instance, which will display on the bottom + // screen when the main instance is on the top screen. + #define KEY_INSTANCE (NUM_INSTANCES-1) +#endif |