forked from akanyan/STARTLINER
feat: start checks
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use ini::Ini;
|
||||
use crate::{model::config::BepInEx, profiles::ProfilePaths};
|
||||
use crate::{model::profile::BepInEx, profiles::ProfilePaths};
|
||||
|
||||
impl BepInEx {
|
||||
pub fn line_up(&self, p: &impl ProfilePaths) -> Result<()> {
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
use crate::model::config::{Display, DisplayMode};
|
||||
use crate::model::profile::{Display, DisplayMode};
|
||||
use anyhow::Result;
|
||||
use displayz::{query_displays, DisplaySet};
|
||||
use tauri::{AppHandle, Listener};
|
||||
|
@ -2,7 +2,7 @@ use std::{path::PathBuf, process::Command};
|
||||
use yaml_rust2::YamlLoader;
|
||||
use anyhow::{Result, anyhow};
|
||||
use ini::Ini;
|
||||
use crate::model::config::{Network, NetworkType};
|
||||
use crate::model::profile::{Network, NetworkType};
|
||||
|
||||
impl Network {
|
||||
pub fn line_up(&self, ini: &mut Ini) -> Result<()> {
|
||||
@ -48,9 +48,10 @@ impl Network {
|
||||
cmd = Command::new("cmd.exe");
|
||||
cmd.arg("/C");
|
||||
|
||||
if self.local_console == true {
|
||||
cmd.arg("start");
|
||||
}
|
||||
// if self.local_console == true {
|
||||
cmd.arg("start");
|
||||
cmd.arg("/min");
|
||||
// }
|
||||
} else {
|
||||
cmd = Command::new("sh");
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ use std::path::PathBuf;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use ini::Ini;
|
||||
use crate::{model::{config::Segatools, segatools_base::segatools_base}, profiles::ProfilePaths, util::{self, PathStr}};
|
||||
use crate::{model::{profile::Segatools, segatools_base::segatools_base}, profiles::ProfilePaths, util::{self, PathStr}};
|
||||
|
||||
impl Segatools {
|
||||
pub async fn line_up(&self, p: &impl ProfilePaths) -> Result<Ini> {
|
||||
|
Reference in New Issue
Block a user