From 47b276e197bfe266b545ce3fda2a3aafada2f26d Mon Sep 17 00:00:00 2001 From: Clyde013 <40514241+Clyde013@users.noreply.github.com> Date: Sat, 31 Jan 2026 19:22:54 +0800 Subject: [PATCH] fix: handle game executables with extensions --- src/record/recorder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/record/recorder.rs b/src/record/recorder.rs index 4654ae2..9323e34 100644 --- a/src/record/recorder.rs +++ b/src/record/recorder.rs @@ -172,9 +172,9 @@ impl Recorder { ); }; - let game_exe_without_extension = game_exe - .split('.') - .next() + let game_exe_without_extension = std::path::Path::new(&game_exe) + .file_stem() + .and_then(|s| s.to_str()) .unwrap_or(&game_exe) .to_lowercase(); if let Some(unsupported) = unsupported_games.get(&game_exe_without_extension) {