Removed loading screen animation preference

This was added several years ago as a workaround to crashes when the loading screen implementation was less stable.
This commit is contained in:
Charles Dang 2020-10-07 17:53:35 +11:00
parent 20e8fae7e2
commit dba77791cc
3 changed files with 1 additions and 19 deletions

View File

@ -202,15 +202,10 @@ loading_screen::~loading_screen()
void loading_screen::display(std::function<void()> f)
{
const bool use_loadingscreen_animation = !preferences::disable_loadingscreen_animation();
if(singleton_ || CVideo::get_singleton().faked()) {
f();
} else if(use_loadingscreen_animation) {
loading_screen(f).show();
} else {
loading_screen(std::function<void()>()).show();
f();
loading_screen(f).show();
}
}

View File

@ -925,16 +925,6 @@ void set_disable_auto_moves(bool value)
preferences::set("disable_auto_moves", value);
}
bool disable_loadingscreen_animation()
{
return get("disable_loadingscreen_animation", false);
}
void set_disable_loadingscreen_animation(bool value)
{
set("disable_loadingscreen_animation", value);
}
bool damage_prediction_allow_monte_carlo_simulation()
{
return get("damage_prediction_allow_monte_carlo_simulation", true);

View File

@ -242,9 +242,6 @@ namespace preferences {
bool disable_auto_moves();
void set_disable_auto_moves(bool value);
bool disable_loadingscreen_animation();
void set_disable_loadingscreen_animation(bool value);
bool damage_prediction_allow_monte_carlo_simulation();
void set_damage_prediction_allow_monte_carlo_simulation(bool value);