Skip to content
Snippets Groups Projects
Verified Commit c81ba40f authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: code format

parent eda36015
No related branches found
No related tags found
No related merge requests found
Pipeline #2849 passed
...@@ -14,7 +14,7 @@ use crate::{ ...@@ -14,7 +14,7 @@ use crate::{
gen::{COMPILATION_DATE, COMPILATION_TIME, COMPILER, COMPILER_VERSION, VERSION}, gen::{COMPILATION_DATE, COMPILATION_TIME, COMPILER, COMPILER_VERSION, VERSION},
mmu::Mmu, mmu::Mmu,
pad::{Pad, PadKey}, pad::{Pad, PadKey},
ppu::{Ppu, PpuMode, Tile, FRAME_BUFFER_SIZE, DISPLAY_WIDTH, DISPLAY_HEIGHT}, ppu::{Ppu, PpuMode, Tile, DISPLAY_HEIGHT, DISPLAY_WIDTH, FRAME_BUFFER_SIZE},
rom::{Cartridge, RamSize}, rom::{Cartridge, RamSize},
serial::{NullDevice, Serial, SerialDevice}, serial::{NullDevice, Serial, SerialDevice},
timer::Timer, timer::Timer,
......
...@@ -42,7 +42,11 @@ pub fn run_serial_test(rom_path: &str, max_cycles: Option<u64>, options: TestOpt ...@@ -42,7 +42,11 @@ pub fn run_serial_test(rom_path: &str, max_cycles: Option<u64>, options: TestOpt
game_boy.serial().device().state() game_boy.serial().device().state()
} }
pub fn run_image_test(rom_path: &str, max_cycles: Option<u64>, options: TestOptions) -> [u8; FRAME_BUFFER_SIZE] { pub fn run_image_test(
rom_path: &str,
max_cycles: Option<u64>,
options: TestOptions,
) -> [u8; FRAME_BUFFER_SIZE] {
let mut game_boy = run_test(rom_path, max_cycles, options); let mut game_boy = run_test(rom_path, max_cycles, options);
*game_boy.frame_buffer() *game_boy.frame_buffer()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment