git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-support/bankpack/options.h

      1 // This is free and unencumbered software released into the public domain.
      2 // For more information, please refer to <https://unlicense.org>
      3 // bbbbbr 2022
      4 
      5 
      6 #define ARG_BANK_RESERVE_SIZE_MAX_LEN 256u   //  -reserve=255:4000
      7 #define ARG_BANK_RESERVE_SIZE_REC_COUNT_MATCH 3u
      8 #define ARG_BANK_RESERVE_SIZE_MAX_SPLIT_WORDS (ARG_BANK_RESERVE_SIZE_REC_COUNT_MATCH + 1u)
      9 
     10 #define ARG_BANK_SET_TYPE_MAX_LEN 256u   //  -banktype=255:LIT
     11 #define ARG_BANK_SET_TYPE_REC_COUNT_MATCH 3u
     12 #define ARG_BANK_SET_TYPE_MAX_SPLIT_WORDS (ARG_BANK_RESERVE_SIZE_REC_COUNT_MATCH + 1u)
     13 
     14 #define PLATFORM_GB                 0
     15 #define PLATFORM_SMS                1
     16 #define PLATFORM_DEFAULT            PLATFORM_GB
     17 
     18 #define PLATFORM_STR_GB             "gb"
     19 #define PLATFORM_STR_AP             "ap"     // Uses PLATFORM_GB
     20 #define PLATFORM_STR_DUCK           "duck"   // Uses PLATFORM_GB
     21 #define PLATFORM_STR_NES            "nes"    // Uses PLATFORM_GB
     22 #define PLATFORM_STR_SMS            "sms"
     23 #define PLATFORM_STR_GG             "gg"     // Uses PLATFORM_SMS
     24 #define PLATFORM_STR_MSXDOS         "msxdos" // Uses PLATFORM_SMS
     25 
     26 
     27 void option_set_verbose(bool is_enabled);
     28 bool option_get_verbose(void);
     29 
     30 void option_set_cartsize(bool is_enabled);
     31 bool option_get_cartsize(void);
     32 
     33 void option_set_random_assign(bool is_enabled);
     34 bool option_get_random_assign(void);
     35 
     36 int  option_bank_reserve_bytes(char * arg_str);
     37 int option_bank_set_type(char * arg_str);
     38 
     39 void option_set_platform(char * platform_str);
     40 int  option_get_platform(void);
     41 
     42 int  option_get_mbc_type(void);
     43 void option_set_mbc(int);
     44 void option_mbc_by_rom_byte_149(int);
     45 
     46 void option_set_nes_mapper(int mapper_type);
     47 
     48 uint32_t option_banks_calc_cart_size(void);
     49 
     50 bool option_banks_set_min(uint16_t bank_num);
     51 bool option_banks_set_max(uint16_t bank_num);
     52 
     53 void option_banks_set_random(bool is_random);
     54 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.