mirror of
https://github.com/a-mayb3/godo-launcher.git
synced 2026-03-21 18:05:39 +01:00
Removed discarded code
This commit is contained in:
parent
bb08930e55
commit
068a0ada51
1 changed files with 3 additions and 30 deletions
33
src/main.rs
33
src/main.rs
|
|
@ -5,9 +5,7 @@ use log::*;
|
||||||
use colog;
|
use colog;
|
||||||
use std::env::args;
|
use std::env::args;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
use std::process::Stdio;
|
|
||||||
|
|
||||||
use crate::auth::*;
|
use crate::auth::*;
|
||||||
|
|
||||||
|
|
@ -54,13 +52,13 @@ fn main() {
|
||||||
.https_only(true)
|
.https_only(true)
|
||||||
.user_agent(concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"),));
|
.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
|
// Authentication code from user input
|
||||||
print!("Insert AuthCode > ");
|
print!("Insert AuthCode > ");
|
||||||
std::io::stdout().flush().unwrap();
|
std::io::stdout().flush().unwrap();
|
||||||
|
|
||||||
|
|
||||||
// Getting temporal info to create persistent login info
|
// Getting temporal info to create persistent login info
|
||||||
let mut auth_code: String = "".to_string();
|
let mut auth_code: String = "".to_string();
|
||||||
let _ = std::io::stdin().read_line(&mut auth_code).unwrap();
|
let _ = std::io::stdin().read_line(&mut auth_code).unwrap();
|
||||||
|
|
@ -87,31 +85,6 @@ fn main() {
|
||||||
let mut uid_argument = String::from("-epicuserid=");
|
let mut uid_argument = String::from("-epicuserid=");
|
||||||
uid_argument.push_str(persistent_credentials.account_id.as_str());
|
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")
|
let command = Command::new("cmd")
|
||||||
.arg("/C") // '/C' executes the command and terminates the command shell
|
.arg("/C") // '/C' executes the command and terminates the command shell
|
||||||
.arg("start")
|
.arg("start")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue