Show some helpful error when --run-game cannot work

Instead of just try to run UI with invalid argument to fail,
it will just fail with better error messages.

Fixes #327
This commit is contained in:
Jeong, Hun 2024-03-24 11:17:36 -07:00
parent e4bc7afa74
commit 860a8474d3

View file

@ -241,6 +241,10 @@ fn main() -> anyhow::Result<()> {
return Ok(()); return Ok(());
} }
LauncherState::PredownloadAvailable { .. } if run_game => {
return Err(anyhow::anyhow!("Predownload available. Use --just-run-game to run anyway, or open the UI to download it"));
}
_ => () _ => ()
} }
} }