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

chore: more print format options

parent f927b4a1
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2590 failed
......@@ -473,7 +473,13 @@ fn main() {
let mode = GameBoyMode::from_str(&args.mode);
// prints the current version of the emulator (informational message)
println!("Boytacean v{} - {}", VERSION, mode);
println!("========= Boytacean =========");
println!("Version {}", VERSION);
println!("Mode {}", mode);
println!("CPU Freq. 4.34 Mhz");
println!("RAM Size 32 KB");
println!("ROM Size 32 KB");
println!("VRAM Size 32 KB");
// creates a new Game Boy instance and loads both the boot ROM
// and the initial game ROM to "start the engine"
......
......@@ -510,7 +510,7 @@ impl Display for Cartridge {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(
f,
"Name => {}\nType => {}\nROM Size => {}\nRAM Size => {}\nCGB Mode => {}",
"Name {}\nType {}\nROM Size {}\nRAM Size {}\nCGB Mode {}",
self.title(),
self.rom_type(),
self.rom_size(),
......
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