feat: add backend for template launching

This commit is contained in:
DecDuck
2025-04-07 13:52:52 +10:00
parent 11b602a81e
commit a013282ac5
5 changed files with 47 additions and 1 deletions
@@ -9,6 +9,8 @@ use std::{
thread::spawn,
};
use dynfmt::Format;
use dynfmt::SimpleCurlyFormat;
use log::{debug, info, warn};
use serde::{Deserialize, Serialize};
use shared_child::SharedChild;
@@ -259,6 +261,11 @@ impl ProcessManager<'_> {
install_dir,
);
let launch_string = SimpleCurlyFormat
.format(&game_version.launch_command_template, &[launch_string])
.map_err(|e| ProcessError::FormatError(e.to_string()))?
.to_string();
info!("launching process {} in {}", launch_string, install_dir);
#[cfg(target_os = "windows")]