diff --git a/src/lib/game.rs b/src/lib/game.rs index f62a350..66cc488 100644 --- a/src/lib/game.rs +++ b/src/lib/game.rs @@ -1,4 +1,3 @@ -use std::path::Path; use std::process::Command; use anime_game_core::genshin::telemetry; @@ -67,7 +66,7 @@ pub fn try_get_terminal() -> Option { pub fn run() -> anyhow::Result<()> { let config = config::get()?; - if !Path::new(&config.game.path).exists() { + if !config.game.path.exists() { return Err(anyhow::anyhow!("Game is not installed")); } diff --git a/src/main.rs b/src/main.rs index bc323a2..8a5656f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,6 +112,7 @@ fn main() { lib::launcher::states::LauncherState::Launch => { main.update(ui::main::Actions::PerformButtonEvent).unwrap(); + std::thread::sleep(std::time::Duration::from_secs(5)); std::process::exit(0); }, _ => main.show()