Files
STARTLINER/rust/src/start.rs
akanyan a29bce2227 feat: phase 2
Newfound motivation
2025-02-23 05:12:21 +01:00

16 lines
469 B
Rust

use anyhow::Result;
use tokio::process::{Child, Command};
use crate::profile::Profile;
use crate::util;
#[cfg(target_os = "linux")]
pub fn start(p: &Profile) -> Result<Child> {
Ok(Command::new(p.wine_runtime.as_ref().unwrap())
.env(
"SEGATOOLS_CONFIG_PATH",
util::profile_dir(&p).join("segatools.ini"),
)
.env("WINEPREFIX", p.wine_prefix.as_ref().unwrap())
.arg(p.path.join("start.bat"))
.spawn()?)
}