1
0
mirror of synced 2024-09-24 19:48:25 +02:00
ImHex/plugins/ui/source/library_ui.cpp

16 lines
451 B
C++

#include <hex/plugin.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/helpers/logger.hpp>
#include <romfs/romfs.hpp>
#include <ui/hex_editor.hpp>
#include <ui/pattern_drawer.hpp>
#include <ui/widgets.hpp>
IMHEX_LIBRARY_SETUP() {
hex::log::debug("Using romfs: '{}'", romfs::name());
for (auto &path : romfs::list("lang"))
hex::ContentRegistry::Language::addLocalization(nlohmann::json::parse(romfs::get(path).string()));
}