diff options
author | Hop311 <hop3114@gmail.com> | 2023-09-14 10:34:54 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-09-14 10:34:54 +0200 |
commit | 5f3e1f3b1b021cbee243236ad8947f203d0416be (patch) | |
tree | 07ea9839190239544fe055812bf3fccce4c245a2 /src/headless | |
parent | 6278a35f4704574933464700026d8deb997da5c1 (diff) |
Region + localisation loading
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/headless/main.cpp b/src/headless/main.cpp index 3ae08f0..dfaf654 100644 --- a/src/headless/main.cpp +++ b/src/headless/main.cpp @@ -42,6 +42,14 @@ static bool headless_load(Dataloader::path_vector_t const& roots) { Logger::error("Failed to load hardcoded defines!"); ret = false; } + if (!dataloader.load_localisation_files( + [](std::string_view key, Dataloader::locale_t locale, std::string_view localisation) -> bool { + return true; + } + )) { + Logger::error("Failed to load localisation!"); + ret = false; + } return ret; } |