From 068a0ada518f59829a3fe689f4903e5c40588c0a Mon Sep 17 00:00:00 2001 From: Edoardo Borgia Leiva Date: Wed, 18 Dec 2024 16:18:28 +0100 Subject: [PATCH] Removed discarded code --- src/main.rs | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4c0c3c2..deeb09d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,9 +5,7 @@ use log::*; use colog; use std::env::args; use std::io::Write; - use std::process::Command; -use std::process::Stdio; use crate::auth::*; @@ -54,13 +52,13 @@ fn main() { .https_only(true) .user_agent(concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"),)); - let http_client = http_client_builder.build().unwrap_or(reqwest::blocking::Client::new()); + let http_client = http_client_builder.build() + .unwrap_or(reqwest::blocking::Client::new()); // Authentication code from user input print!("Insert AuthCode > "); std::io::stdout().flush().unwrap(); - - + // Getting temporal info to create persistent login info let mut auth_code: String = "".to_string(); let _ = std::io::stdin().read_line(&mut auth_code).unwrap(); @@ -87,31 +85,6 @@ fn main() { let mut uid_argument = String::from("-epicuserid="); uid_argument.push_str(persistent_credentials.account_id.as_str()); - /*let game_path = "D:\\Games\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe"; - let game_arguments = vec![ - "/d", - "D:\\Games\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe", "FortniteLauncher.exe", - "-obfuscationid=iDkaKzl08diwOpawKkaeEkwihUB0Og", - "-AUTH_LOGIN=unused", - &auth_password_argument, - "-AUTH_TYPE=exchangecode", - "-epicapp=Fortnite", - "-epicenv=Prod", - "-EpicPortal", - "-steamimportavailable", - &uid_argument, - "-epiclocale=en", - "-epicsandboxid=fn", - ];*/ - /* - Command::new(game_path) - .args(game_arguments) - .stdout(Stdio::null()) - .stderr(Stdio::null()) - .spawn() - .unwrap(); - */ - let command = Command::new("cmd") .arg("/C") // '/C' executes the command and terminates the command shell .arg("start")