mirror of
https://github.com/modrinth/code.git
synced 2026-08-28 02:24:56 +00:00
fix(app): make per-instance launch hooks clearable (#3757)
* fix(app): make per-instance launch hooks clearable * chore(apps/app-frontend): fix Prettier lints
This commit is contained in:
@@ -247,9 +247,13 @@ pub struct WindowSize(pub u16, pub u16);
|
||||
|
||||
/// Game initialization hooks
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
#[serde_with::serde_as]
|
||||
pub struct Hooks {
|
||||
#[serde_as(as = "serde_with::NoneAsEmptyString")]
|
||||
pub pre_launch: Option<String>,
|
||||
#[serde_as(as = "serde_with::NoneAsEmptyString")]
|
||||
pub wrapper: Option<String>,
|
||||
#[serde_as(as = "serde_with::NoneAsEmptyString")]
|
||||
pub post_exit: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user