desktop: Add a flag to disable AS3 warning popup

This commit is contained in:
Adrian Wielgosik 2021-07-05 18:08:43 +02:00 committed by Adrian Wielgosik
parent d9b5b1a0af
commit 35d543b610
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,9 @@ struct Opt {
#[clap(long, case_insensitive = true, takes_value = false)]
timedemo: bool,
#[clap(long, case_insensitive = true, takes_value = false)]
dont_warn_on_unsupported_content: bool,
}
#[cfg(feature = "render_trace")]
@ -285,6 +288,7 @@ impl App {
{
let mut player_lock = player.lock().unwrap();
player_lock.set_warn_on_unsupported_content(!opt.dont_warn_on_unsupported_content);
if let Some(movie) = &movie {
player_lock.set_root_movie(movie.to_owned());
player_lock.set_is_playing(true); // Desktop player will auto-play.