jabyengine/config
jaby bf67b83629 Finish integrating custom configs 2024-02-20 22:29:09 -05:00
..
DebugColor Cleanup code 2024-02-20 22:02:41 -05:00
Readme.md Finish integrating custom configs 2024-02-20 22:29:09 -05:00
dummy_default_config.hpp Improve ConfigLibs more 2024-02-20 21:55:56 -05:00

Readme.md

How to create custom configurations

  1. Create folder with name of custom configuration
  2. Add jabyengine_custom_config.hpp to folder
    1. Follow guidelines
  3. Build JabyEngine and select your configuration
  4. Build your application and select your configuration

jabyengine_custom_config.hpp

Default configuration file

// Fix IntelliSense
#include "../dummy_default_config.hpp"

// Overwrite various configurations
struct CustomConfiguration : public DefaultConfiguration {
};

// Define macros here

CustomConfiguration options

When overriding an option make sure to mark the function as override

struct DefaultConfiguration {
    struct BIOSFont {
        // VRAM position and CLUT position to load the BIOS font too
        static constexpr GPU::PositionU16 texture_load_pos();
        static constexpr GPU::PositionU16 CLUT_load_pos();
    };

    struct Periphery {
        // Turns on the second controller port and enables multi tap support
        static constexpr bool include_portB();
        static constexpr bool use_multi_tap();
    };
};

CustomConfiguration macros

#define __USE_DEBUG_COLOR__ // Turns on colored rectangles during boot