From 1c7fdbd871d2da458bdba9b9ccaa26c5b21f15c6 Mon Sep 17 00:00:00 2001 From: wakeboxer <75230324+ljhmd0825@users.noreply.github.com> Date: Tue, 10 Feb 2026 15:14:52 +0900 Subject: [PATCH] fbscreenshot mod The binary was cross-compiled on Ubuntu 18.04 WSL using Rust 1.88.0 and the aarch64-linux-gnu linker to ensure maximum compatibility with the TrimUI Smart Pro's SpruceOS. Fixed the white/transparent screenshot issue by forcing the Alpha channel to 255 Improved screenshots of PPSSPP and NDS on TSP. (For GameSwitcher) --- fbscreenshot/src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fbscreenshot/src/main.rs b/fbscreenshot/src/main.rs index be33e46..3c7e104 100644 --- a/fbscreenshot/src/main.rs +++ b/fbscreenshot/src/main.rs @@ -85,18 +85,18 @@ fn fbscreenshot(output: &str, rotation: Rotation) -> Result<(), Box> 11) & 0x1F) as u8; @@ -131,7 +131,7 @@ fn main() -> Result<(), Box> { match fbscreenshot(&args.output, args.rotation) { Ok(()) => { println!("fbscreenshot: Saved screenshot to '{}'", &args.output); - Ok(()) + unsafe { nix::libc::_exit(0); } } Err(e) => { eprintln!("fbscreenshot: Failed saving screenshot to '{}': {e}", &args.output);