mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
Merge pull request #10 from mxve/iw4x_note
This commit is contained in:
18
src/main.rs
18
src/main.rs
@@ -622,6 +622,16 @@ fn arg_remove_value(args: &mut Vec<String>, arg: &str) {
|
||||
};
|
||||
}
|
||||
|
||||
fn show_iw4x_info() {
|
||||
println!(
|
||||
"{}",
|
||||
"IW4x is not provided through AlterWare anymore.".bright_red()
|
||||
);
|
||||
println!("Please use iw4x-launcher.exe instead or visit www.iw4x.dev/install");
|
||||
misc::stdin();
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
#[cfg(windows)]
|
||||
@@ -648,6 +658,10 @@ async fn main() {
|
||||
|
||||
let mut args: Vec<String> = env::args().collect();
|
||||
|
||||
if args.iter().any(|arg| arg == "iw4x") {
|
||||
show_iw4x_info();
|
||||
}
|
||||
|
||||
if arg_bool(&args, "--help") {
|
||||
println!("CLI Args:");
|
||||
println!(" <client>: Specify the client to launch");
|
||||
@@ -916,6 +930,10 @@ async fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
if game == "iw4x" {
|
||||
show_iw4x_info();
|
||||
}
|
||||
|
||||
for g in games.iter() {
|
||||
for c in g.client.iter() {
|
||||
if c == &game {
|
||||
|
||||
Reference in New Issue
Block a user