From ac268c236867ea7038daf782b6089940e8fc9a91 Mon Sep 17 00:00:00 2001 From: Techwizz Date: Thu, 21 Dec 2023 20:02:49 -0700 Subject: [PATCH] Inital commit --- .gitignore | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ src/main.rs | 20 ++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..f8fbdc1 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "eq2_opener" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..aa25927 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "eq2_opener" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..7929036 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,20 @@ +use std::process::Command; + +fn main() { + // Command for PacketCollector.exe + let mut packet_collector_command = Command::new("PacketCollector/PacketCollector.exe"); + + // Command for LaunchPad-real.exe + let mut launchpad_command = Command::new("LaunchPad-real.exe"); + + // Spawn both processes concurrently + match packet_collector_command.spawn() { + Ok(_) => println!("PacketCollector.exe started successfully"), + Err(err) => eprintln!("Error starting PacketCollector.exe: {}", err), + } + + match launchpad_command.spawn() { + Ok(_) => println!("LaunchPad-real.exe started successfully"), + Err(err) => eprintln!("Error starting LaunchPad-real.exe: {}", err), + } +}