Skip to content

Commit

Permalink
actually fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pineman committed Jan 8, 2024
1 parent 9a426d3 commit 6803759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fpt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Gameboy {
}
}

pub fn load_rom(&mut self, rom: &Vec<u8>) {
pub fn load_rom(&mut self, rom: &[u8]) {
self.bus.load_cartridge(rom);
}

Expand Down
4 changes: 2 additions & 2 deletions fpt/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub mod map {
/// 0x4000..0x8000 From cartridge, switchable bank via mapper (if any)
pub const USER_PROGRAM: MemoryRange = 0x0000..0x8000;

/// Video RAM (8 KB) - In CGB mode, switchable bank 0/1
/// Video RAM (8 KB) - In CGB mode, switchable bank 0/1
pub const VRAM: MemoryRange = 0x8000..0xA000;

/// External Expansion Working RAM (8 KB) - From cartridge, switchable bank if any
Expand Down Expand Up @@ -231,7 +231,7 @@ impl Bus {
self.clone_from_slice(map::BOOTROM, bootrom);
}

pub fn load_cartridge(&mut self, cartridge: &Vec<u8>) {
pub fn load_cartridge(&mut self, cartridge: &[u8]) {
if cartridge.len() < 0x8000 {
println!("This is not a rom, fuck you!");
panic!();
Expand Down

0 comments on commit 6803759

Please sign in to comment.