hotfix + launch_game refactor to avoid premature end

This commit is contained in:
Santiago Fisela 2026-03-12 16:48:59 -03:00
parent 56853682a7
commit 8720f111ea
2 changed files with 5 additions and 3 deletions

View file

@ -244,15 +244,14 @@ async fn launch_game(app: AppHandle, instanceId: String) -> Result<(), String> {
return Ok(());
}
}
return Err("No Linux runner selected in settings.".into());
Err("No Linux runner selected in settings.".into())
}
#[cfg(not(target_os = "linux"))]
{
let _ = Command::new(&game_exe).spawn().map_err(|e| e.to_string())?;
Ok(())
}
Ok(())
}
pub fn run() {

View file

@ -2,5 +2,8 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
#[cfg(target_os = "linux")]
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
emerald_legacy_launcher_lib::run()
}