feat(genshin): added YuanShen.exe to the game's running status check

Hello, fellow Chinese players. Why didn't you tell me about it???????
This commit is contained in:
Observer KRypt0n_ 2023-08-01 00:10:18 +02:00
parent e9814f33dd
commit 9670c02ecf
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -309,7 +309,7 @@ pub fn run() -> anyhow::Result<()> {
let output = Command::new("ps").arg("-A").stdout(Stdio::piped()).output()?; let output = Command::new("ps").arg("-A").stdout(Stdio::piped()).output()?;
let output = String::from_utf8_lossy(&output.stdout); let output = String::from_utf8_lossy(&output.stdout);
if !output.contains("GenshinImpact.e") && !output.contains("unlocker.exe") { if !output.contains("GenshinImpact.e") && !output.contains("YuanShen.exe") && !output.contains("unlocker.exe") {
break; break;
} }
} }