From 71a51c80b441678639a9361d8be44e5314224ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Thu, 27 Apr 2023 09:17:08 +0100 Subject: [PATCH] chore: more print format options --- frontends/sdl/src/main.rs | 8 +++++++- src/rom.rs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontends/sdl/src/main.rs b/frontends/sdl/src/main.rs index 1bc7d23e..3d5862ec 100644 --- a/frontends/sdl/src/main.rs +++ b/frontends/sdl/src/main.rs @@ -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" diff --git a/src/rom.rs b/src/rom.rs index 38c2816d..5b568592 100644 --- a/src/rom.rs +++ b/src/rom.rs @@ -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(), -- GitLab