diff --git a/simulator/src/state/mod.rs b/simulator/src/state/mod.rs index d5be92f..ab40152 100644 --- a/simulator/src/state/mod.rs +++ b/simulator/src/state/mod.rs @@ -72,7 +72,6 @@ pub struct State { pub time_scale: f32, pub port: u16, pub lightweight: bool, - pub lightweight_port: u16, pub vsync: bool, pub settings_dir: String, pub time_step: i32, @@ -108,7 +107,6 @@ impl std::default::Default for State { time_scale: 1.0, port: 8080, lightweight: false, - lightweight_port: 8081, vsync: true, settings_dir: String::new(), time_step: 1000000, @@ -145,7 +143,6 @@ impl State { self.time_scale = state.time_scale; self.port = state.port; self.lightweight = state.lightweight; - self.lightweight_port = state.lightweight_port; self.vsync = state.vsync; self.settings_dir = state.settings_dir; self.debug = state.debug; diff --git a/src-tauri/src/options.rs b/src-tauri/src/options.rs index 1faa2ff..82893f0 100644 --- a/src-tauri/src/options.rs +++ b/src-tauri/src/options.rs @@ -66,7 +66,6 @@ pub struct SimulatorOptions { pub window_height: u32, pub unity: bool, pub lightweight: bool, - pub lightweight_port: u16, } impl Default for SimulatorOptions { @@ -78,7 +77,6 @@ impl Default for SimulatorOptions { window_height: 600, unity: false, lightweight: false, - lightweight_port: 8081, } } } diff --git a/src/lib/UI/Simulator.svelte b/src/lib/UI/Simulator.svelte index b862eb9..29dacc4 100644 --- a/src/lib/UI/Simulator.svelte +++ b/src/lib/UI/Simulator.svelte @@ -41,8 +41,6 @@ ]; if (simulatorOptions.lightweight) { args.push("--lightweight"); - args.push("--lightweight_port"); - args.push(simulatorOptions.lightweight_port.toString()); } command = simulatorOptions.unity ? Command.sidecar("simulator-unity", args) @@ -111,17 +109,6 @@ - {#if simulatorOptions.lightweight} - - - {/if} -