pub fn find_executables(
game_path: impl AsRef<Path>,
) -> Result<impl Iterator<Item = PathBuf>>Expand description
Walk a game directory tree and yield paths to executable files.
Filters by platform-appropriate extensions (.exe on Windows; .exe,
.sh, .x86_64, .x86 on Linux) and skips known crash-handler binaries.
use loadsmith_platform::find_executables;
for exe in find_executables("/path/to/game").unwrap() {
println!("Found executable: {}", exe.display());
}