feat: add backend for template launching

This commit is contained in:
DecDuck
2025-04-07 13:52:52 +10:00
parent 3e074abc0a
commit 6b9b9e3606
5 changed files with 47 additions and 1 deletions

View File

@ -54,6 +54,10 @@ pub enum ApplicationTransientStatus {
Running {},
}
fn default_template() -> String {
"{}".to_owned()
}
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct GameVersion {
@ -64,9 +68,14 @@ pub struct GameVersion {
pub launch_command: String,
pub launch_args: Vec<String>,
#[serde(default = "default_template")]
pub launch_command_template: String,
pub setup_command: String,
pub setup_args: Vec<String>,
#[serde(default = "default_template")]
pub setup_command_template: String,
pub only_setup: bool,