From ae1221de81328f6f26cd3f502221315b8b40698a Mon Sep 17 00:00:00 2001 From: jaby Date: Sun, 20 Aug 2023 14:27:15 +0200 Subject: [PATCH] Support section infos in list mode --- src/Tools/psxreadmap/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/psxreadmap/src/lib.rs b/src/Tools/psxreadmap/src/lib.rs index 402ab37e..311fcc26 100644 --- a/src/Tools/psxreadmap/src/lib.rs +++ b/src/Tools/psxreadmap/src/lib.rs @@ -394,7 +394,7 @@ impl ConsoleUI { .highlight_style(Style::default().bg(Color::White)); let top_section = &data.section_info[section_selection.get_selection_for(ListSectionMode::TopSection) + 1]; - let info_text = Paragraph::new(format!("Name: {}", top_section.name)) + let info_text = Paragraph::new(format!("Name: {}\nAdr: 0x{:X} - 0x{:X}\nSize: {} Bytes", top_section.name, top_section.start_adr, top_section.get_end_adr(), top_section.size)) .style(Style::default().fg(Color::White)) .alignment(Alignment::Left) .block(Block::default()