mirror of https://github.com/WerWolv/ImHex.git
fix: Diffing plugin not registering localization strings correctly
This commit is contained in:
parent
1af3bf5da7
commit
0aaa02b347
|
@ -20,6 +20,9 @@ using namespace hex::plugin::diffing;
|
||||||
IMHEX_PLUGIN_SETUP("Diffing", "WerWolv", "Support for diffing data") {
|
IMHEX_PLUGIN_SETUP("Diffing", "WerWolv", "Support for diffing data") {
|
||||||
hex::log::debug("Using romfs: '{}'", romfs::name());
|
hex::log::debug("Using romfs: '{}'", romfs::name());
|
||||||
|
|
||||||
|
for (auto &path : romfs::list("lang"))
|
||||||
|
hex::ContentRegistry::Language::addLocalization(nlohmann::json::parse(romfs::get(path).string()));
|
||||||
|
|
||||||
registerDiffingAlgorithms();
|
registerDiffingAlgorithms();
|
||||||
|
|
||||||
ContentRegistry::Views::add<ViewDiff>();
|
ContentRegistry::Views::add<ViewDiff>();
|
||||||
|
|
Loading…
Reference in New Issue