Add a hidden preference to skip the Spiderweb logo at startup

The same preference also skips the scenario editor startup splash
In order to enable that, the scenario editor now loads prefs.
This commit is contained in:
2020-01-19 14:42:38 -05:00
parent 36b4f6edc1
commit e4b98a1634
2 changed files with 8 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
#include "choicedlog.hpp"
#include "scen.menus.hpp"
#include "res_image.hpp"
#include "prefs.hpp"
/* Globals */
bool All_Done = false;
@@ -101,7 +102,7 @@ static void init_sbar(std::shared_ptr<cScrollbar>& sbar, rectangle rect, int pgS
void init_scened(int argc, char* argv[]) {
init_directories(argv[0]);
init_menubar();
// TODO: Sync and load prefs
sync_prefs();
init_shaders();
init_tiling();
init_snd_tool();
@@ -151,7 +152,8 @@ void init_scened(int argc, char* argv[]) {
load_graphics();
cDialog::init();
});
run_startup_g();
if(get_bool_pref("ShowStartupLogo", true))
run_startup_g();
init_thread.join();
set_cursor(sword_curs);