Inital commit

This commit is contained in:
Paul Black 2023-12-21 20:02:49 -07:00
commit ac268c2368
4 changed files with 36 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View file

@ -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"

8
Cargo.toml Normal file
View file

@ -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]

20
src/main.rs Normal file
View file

@ -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),
}
}