feat: 添加获批整合包同步与 StarLight 实例模式
This commit is contained in:
1 parent
fbcaed528b
commit
2a1dfa3c42
29 files changed
+1891
-225
No files matched your search
@@ -125,8 +125,10 @@ pub(crate) async fn create_instance(
|
||||
created: now,
|
||||
modified: now,
|
||||
};
|
||||
let launch_overrides =
|
||||
let mut launch_overrides =
|
||||
InstanceLaunchOverrides::empty(instance_id.clone());
|
||||
launch_overrides.instance_mode =
|
||||
Some(crate::state::InstanceMode::Local);
|
||||
let loader_components = LoaderComponent::from_legacy_projection(
|
||||
instance_id.clone(),
|
||||
input.loader,
|
||||
|
||||
@@ -54,6 +54,7 @@ pub struct EditInstance {
|
||||
|
||||
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
||||
pub struct InstanceLaunchOverridesPatch {
|
||||
pub instance_mode: Option<crate::state::InstanceMode>,
|
||||
#[serde(
|
||||
default,
|
||||
skip_serializing_if = "Option::is_none",
|
||||
@@ -369,6 +370,9 @@ fn apply_launch_overrides_patch(
|
||||
if let Some(game_resolution) = patch.game_resolution {
|
||||
overrides.game_resolution = game_resolution;
|
||||
}
|
||||
if let Some(mode) = patch.instance_mode {
|
||||
overrides.instance_mode = Some(mode);
|
||||
}
|
||||
if let Some(timeout) = patch.launch_preparation_timeout {
|
||||
overrides.launch_preparation_timeout = timeout;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user