mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-19 01:43:52 +02:00
Add an option to disable setup checks
The path check should only take a few milliseconds to run, but checking whether yabridge-host.exe runs correctly could take over a second when wineserver isn't already running in the background.
This commit is contained in:
@@ -144,6 +144,7 @@ pub fn set_settings(config: &mut Config, options: &SetOptions) -> Result<()> {
|
||||
|
||||
/// Options passed to `yabridgectl sync`, see `main()` for the definitions of these options.
|
||||
pub struct SyncOptions {
|
||||
pub no_verify: bool,
|
||||
pub prune: bool,
|
||||
pub verbose: bool,
|
||||
}
|
||||
@@ -237,6 +238,10 @@ pub fn do_sync(config: &Config, options: &SyncOptions) -> Result<()> {
|
||||
num_skipped_files
|
||||
);
|
||||
|
||||
if options.no_verify {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if config.method == InstallationMethod::Copy {
|
||||
if let Err(shell_name) = verify_path_setup() {
|
||||
println!(
|
||||
|
||||
Reference in New Issue
Block a user