From 40a29d927fe89718ec6a041a94cb28468ce5ace7 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Thu, 14 May 2026 10:34:42 +0200 Subject: [PATCH] shorten some messages (#887) --- src/device/controller.rs | 2 +- src/savestates.rs | 4 ++-- src/ui/video.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device/controller.rs b/src/device/controller.rs index 87db1d2..1fd76eb 100644 --- a/src/device/controller.rs +++ b/src/device/controller.rs @@ -76,7 +76,7 @@ pub fn process(device: &mut device::Device, channel: usize) { device::events::create_event( device, device::events::EVENT_TYPE_PAK, - device.cpu.clock_rate, // 1 second + device.cpu.clock_rate / 2, // 500ms ) } } diff --git a/src/savestates.rs b/src/savestates.rs index 3a23a2a..41a91cf 100644 --- a/src/savestates.rs +++ b/src/savestates.rs @@ -97,7 +97,7 @@ pub fn create_savestate(device: &device::Device) { "Savestate created in slot {}", device.ui.storage.save_state_slot ), - ui::video::MESSAGE_LENGTH_MESSAGE_SHORT, + ui::video::MESSAGE_LENGTH_MESSAGE_VERY_SHORT, ); } else { ui::video::onscreen_message( @@ -237,7 +237,7 @@ pub fn load_savestate(device: &mut device::Device) { "Savestate loaded from slot {}", device.ui.storage.save_state_slot ), - ui::video::MESSAGE_LENGTH_MESSAGE_SHORT, + ui::video::MESSAGE_LENGTH_MESSAGE_VERY_SHORT, ); } else { ui::video::onscreen_message( diff --git a/src/ui/video.rs b/src/ui/video.rs index e5838ab..165ec6b 100644 --- a/src/ui/video.rs +++ b/src/ui/video.rs @@ -219,7 +219,7 @@ pub fn check_callback(device: &mut device::Device) -> (bool, bool) { if device.ui.storage.save_state_slot != callback.save_state_slot { onscreen_message( &format!("Switching savestate slot to {}", callback.save_state_slot), - ui::video::MESSAGE_LENGTH_MESSAGE_SHORT, + ui::video::MESSAGE_LENGTH_MESSAGE_VERY_SHORT, ); device.ui.storage.save_state_slot = callback.save_state_slot; device