Skip to content

Commit

Permalink
Move language initialization to main method
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Dec 3, 2024
1 parent 9981119 commit b92e47d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <lvgl/lvgl.h>
#include <minIni.h>

#include "lang/language.h"

#ifdef EMULATOR_BUILD
#include "SDLaccess.h"
SDL_mutex *global_sdl_mutex;
Expand Down Expand Up @@ -155,6 +157,7 @@ int main(int argc, char *argv[]) {
// 1. Recall configuration
settings_init();
settings_load();
language_init();
vclk_phase_init();

// 2. Initialize communications.
Expand Down
2 changes: 0 additions & 2 deletions src/core/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,6 @@ void settings_load(void) {
g_setting.language.lang = ini_getl("language", "lang", g_setting_defaults.language.lang, SETTING_INI);
}

language_init();

// Check
if (fs_file_exists(SELF_TEST_FILE)) {
unlink(SELF_TEST_FILE);
Expand Down

0 comments on commit b92e47d

Please sign in to comment.