This commit is contained in:
1 parent
037bff2db3
commit
7f3ab9d79b
1 file changed
+9
-1
@@ -333,6 +333,12 @@ pub struct EditInstance {
|
|||||||
)]
|
)]
|
||||||
pub launch_preparation_timeout: Option<Option<u64>>,
|
pub launch_preparation_timeout: Option<Option<u64>>,
|
||||||
pub hooks: Option<Hooks>,
|
pub hooks: Option<Hooks>,
|
||||||
|
#[serde(
|
||||||
|
default,
|
||||||
|
skip_serializing_if = "Option::is_none",
|
||||||
|
with = "serde_with::rust::double_option"
|
||||||
|
)]
|
||||||
|
pub window_title: Option<Option<String>>,
|
||||||
|
|
||||||
#[serde(
|
#[serde(
|
||||||
default,
|
default,
|
||||||
@@ -531,7 +537,8 @@ fn edit_to_core(edit_instance: EditInstance) -> Result<CoreEditInstance> {
|
|||||||
|| edit_instance.maximize_window.is_some()
|
|| edit_instance.maximize_window.is_some()
|
||||||
|| edit_instance.game_resolution.is_some()
|
|| edit_instance.game_resolution.is_some()
|
||||||
|| edit_instance.launch_preparation_timeout.is_some()
|
|| edit_instance.launch_preparation_timeout.is_some()
|
||||||
|| edit_instance.hooks.is_some();
|
|| edit_instance.hooks.is_some()
|
||||||
|
|| edit_instance.window_title.is_some();
|
||||||
if has_launch_change {
|
if has_launch_change {
|
||||||
Some(InstanceLaunchOverridesPatch {
|
Some(InstanceLaunchOverridesPatch {
|
||||||
player: None,
|
player: None,
|
||||||
@@ -546,6 +553,7 @@ fn edit_to_core(edit_instance: EditInstance) -> Result<CoreEditInstance> {
|
|||||||
launch_preparation_timeout: edit_instance
|
launch_preparation_timeout: edit_instance
|
||||||
.launch_preparation_timeout,
|
.launch_preparation_timeout,
|
||||||
hooks: edit_instance.hooks,
|
hooks: edit_instance.hooks,
|
||||||
|
window_title: edit_instance.window_title,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|||||||
Reference in new issue
Block a user