| 907 | |
| 908 | std::once_flag init_once; |
| 909 | void Qi::init() |
| 910 | { |
| 911 | std::call_once(init_once, [] { |
| 912 | Qi::screen = System::screenSize(); |
| 913 | Qi::display_update.start(); |
| 914 | QiJson::LoadJson(); |
| 915 | |
| 916 | Init_Sound(); |
| 917 | |
| 918 | Init_Style(); |
| 919 | if (Qi::set.theme >= Qi::ui.themes.size()) Qi::set.theme = 0; |
| 920 | |
| 921 | QiFn::InitOcr(false); |
| 922 | #ifdef Q_DRIVER |
| 923 | if (Qi::set.driver) QiFn::InitDriver(false); |
| 924 | #endif |
| 925 | |
| 926 | QiScriptInterpreter::init(); |
nothing calls this directly
no test coverage detected