Fix init order so ForceEnglish option actually works.

This commit is contained in:
J-D-K
2025-08-20 18:56:27 -04:00
parent 2a48b18b49
commit 280e5d6cb9
5 changed files with 17 additions and 10 deletions

View File

@@ -60,6 +60,9 @@ JKSV::JKSV()
ABORT_ON_FAILURE(JKSV::initialize_sdl());
ABORT_ON_FAILURE(curl::initialize());
input::initialize();
config::initialize();
ABORT_ON_FAILURE(strings::initialize()); // This is fatal now.
const char *translationFormat = strings::get_by_name(strings::names::TRANSLATION, 0);
@@ -68,9 +71,6 @@ JKSV::JKSV()
m_translationInfo = stringutil::get_formatted_string(translationFormat, author);
m_buildString = stringutil::get_formatted_string("v. %02d.%02d.%04d", BUILD_MON, BUILD_DAY, BUILD_YEAR);
input::initialize();
config::initialize();
// This needs the config init'd or read to work.
JKSV::create_directories();