Skip to main content

load_pro_pedal_sub

Function load_pro_pedal_sub 

Source
pub fn load_pro_pedal_sub(pro_sub_path: &str) -> Option<String>
Expand description

Try to load a file at pro_sub_path (relative to the pedalkernel-pro repo root, e.g. "crates/acidattack/acidattack-core/tb303_filter.pedal" or "pedals/legends/screamer.pedal").

Tries several candidate ../ depths from CARGO_MANIFEST_DIR so that tests work in both normal checkout and git-worktree layouts.

Returns None — never panics — when the pro repo is absent, so callers can skip gracefully via [skip_if_missing!].