mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-18 00:07:09 +00:00
hotfix + launch_game refactor to avoid premature end
This commit is contained in:
parent
56853682a7
commit
8720f111ea
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue