User Tools

Site Tools


wswan:guide:wfconfig

wfconfig.toml

wfconfig.toml serves as a project-wide configuration file.

cartridge

  • rom_banks - The number of 64KB ROM banks used by your project; normally, this value is calculated automatically as your project grows in scope.
  • save_type - The save type of your cartridge. The following values are supported:
    • “NONE” - no save memory,
    • “SRAM_8KB” - 8 kilobytes of SRAM,
    • “SRAM_32KB” - 32 kilobytes of SRAM,
    • “SRAM_128KB” - 128 kilobytes of SRAM,
    • “SRAM_256KB” - 256 kilobytes of SRAM,
    • “SRAM_512KB” - 512 kilobytes of SRAM,
    • “EEPROM_128B” - 128 bytes of EEPROM,
    • “EEPROM_2KB” - 2048 bytes of EEPROM,
    • “EEPROM_1KB” - 1024 bytes of EEPROM.
  • vertical - Set to true if your program starts out in the vertical orientation; this adjusts the boot ROM's splash screen appropriately.

Metadata only

The following fields have no effect on execution and exist solely as metadata:

  • publisher_id, game_id, game_version - Numeric fields describing the game's unique ID.
  • color - Set to true if your program uses Color modes (regardless of whether it's mandatory or optional).
  • mapper - The mapper used by your cartridge. The following values are supported:
    • “2001” - Bandai 2001 mapper. Supports EEPROM communication.
    • “2003” - Bandai 2003 mapper. Supports RTC communication, GPIO pins.

Advanced

Don't touch these unless you're building custom hardware.

  • rom_bus_width - Can be set to 8 or 16.
  • rom_speed - Set to 2 to enable an extra waitstate, slowing ROM reads down.
  • unlock_internal_eeprom - Set to true if your program intends to read to the normally locked area of internal EEPROM. Note that, if used irresponsibly, this can lead to a brick on Color consoles!
  • disable_custom_boot_splash - Set to true to force using the default boot splash on Color consoles, as opposed to the one stored in the internal EEPROM. May be used to unbrick consoles in some cases.
wswan/guide/wfconfig.txt · Last modified: 2024/02/17 13:05 by asie