one var for bootrom
This commit is contained in:
parent
1b9e7de589
commit
7fb8b06ff9
|
@ -65,11 +65,10 @@ type FrameReceiver = Mutex<Option<Receiver<Vec<[u8; 4]>>>>;
|
|||
type JoypadSender = Mutex<Option<Sender<(JoypadButtons, bool)>>>;
|
||||
|
||||
const FRAMES_TO_BUFFER: usize = 1;
|
||||
const INCLUDE_BOOTROM: bool = false;
|
||||
const DOWNSAMPLE_TYPE: DownsampleType = DownsampleType::ZeroOrderHold;
|
||||
|
||||
const ROM: &[u8; 65536] = include_bytes!("../../test-roms/mGB1_3_0.gb");
|
||||
const BOOTROM: &[u8; 256] = include_bytes!("../../bootrom/dmg_boot.bin");
|
||||
const BOOTROM: Option<&[u8; 256]> = None;
|
||||
|
||||
impl Plugin for GameboyEmu {
|
||||
const NAME: &'static str = "Gameboy";
|
||||
|
@ -225,12 +224,7 @@ impl Plugin for GameboyEmu {
|
|||
vars.emulator_core.replace_output(output);
|
||||
vars.rx = rx;
|
||||
} else {
|
||||
let bootrom = if INCLUDE_BOOTROM {
|
||||
Some(RomFile::Raw(BOOTROM.to_vec()))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
let bootrom = BOOTROM.map(|v| RomFile::Raw(v.to_vec()));
|
||||
let rom = RomFile::Raw(ROM.to_vec());
|
||||
|
||||
let (sender, receiver) = channel::<EmulatorMessage>();
|
||||
|
|
Loading…
Reference in a new issue