impr: Rewrite Localization Manager to use more standard format and load localizations on the fly

This commit is contained in:
WerWolv
2025-08-12 18:00:10 +02:00
parent 25c8f4b588
commit b5a3a8b4c2
153 changed files with 18215 additions and 18475 deletions

View File

@@ -53,8 +53,9 @@ IMHEX_PLUGIN_SETUP("Windows", "WerWolv", "Windows-only features") {
using namespace hex::plugin::windows;
hex::log::debug("Using romfs: '{}'", romfs::name());
for (auto &path : romfs::list("lang"))
hex::ContentRegistry::Language::addLocalization(nlohmann::json::parse(romfs::get(path).string()));
hex::LocalizationManager::addLanguages(romfs::get("lang/languages.json").string(), [](const std::filesystem::path &path) {
return romfs::get(path).string();
});
hex::ContentRegistry::Views::add<ViewTTYConsole>();