Merge pull request #10 from mxve/iw4x_note

This commit is contained in:
2025-06-12 22:01:07 +02:00
committed by GitHub
parent 2bd2a28ac7
commit baf90de24e

View File

@@ -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] #[tokio::main]
async fn main() { async fn main() {
#[cfg(windows)] #[cfg(windows)]
@@ -648,6 +658,10 @@ async fn main() {
let mut args: Vec<String> = env::args().collect(); let mut args: Vec<String> = env::args().collect();
if args.iter().any(|arg| arg == "iw4x") {
show_iw4x_info();
}
if arg_bool(&args, "--help") { if arg_bool(&args, "--help") {
println!("CLI Args:"); println!("CLI Args:");
println!(" <client>: Specify the client to launch"); 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 g in games.iter() {
for c in g.client.iter() { for c in g.client.iter() {
if c == &game { if c == &game {