ds_rom/rom/config.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
use std::path::PathBuf;
use serde::{Deserialize, Serialize};
/// Config file mainly consisting of paths to extracted files.
#[derive(Serialize, Deserialize, Clone)]
pub struct RomConfig {
/// Byte value to append between ROM sections
pub padding_value: u8,
/// Path to header YAML
pub header: PathBuf,
/// Path to header logo PNG
pub header_logo: PathBuf,
/// Path to ARM9 binary
pub arm9_bin: PathBuf,
/// Path to ARM9 YAML
pub arm9_config: PathBuf,
/// Path to ARM7 binary
pub arm7_bin: PathBuf,
/// Path to ARM7 YAML
pub arm7_config: PathBuf,
/// Path to ITCM binary
pub itcm_bin: PathBuf,
/// Path to ITCM YAML
pub itcm_config: PathBuf,
/// Path to DTCM binary
pub dtcm_bin: PathBuf,
/// Path to DTCM YAML
pub dtcm_config: PathBuf,
/// Path to ARM9 overlays YAML
pub arm9_overlays: Option<PathBuf>,
/// Path to ARM7 overlays YAML
pub arm7_overlays: Option<PathBuf>,
/// Path to banner YAML
pub banner: PathBuf,
/// Path to asset files directory
pub files_dir: PathBuf,
/// Path to path order file
pub path_order: PathBuf,
}