Compare commits

...

2 Commits

Author SHA1 Message Date
WerWolv 94723dbba3 build: Updated libromfs 2022-12-05 10:08:25 +01:00
WerWolv 6e0b92a4de sys: Added logging for which romfs is being used 2022-12-05 09:31:16 +01:00
4 changed files with 7 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4a056a51a95536255d42fc98be4297251ca6b735
Subproject commit 86d8d8fdc88a5f8f732075a1b444c994fac203e7

View File

@ -89,6 +89,7 @@ namespace hex::init {
}
bool WindowSplash::loop() {
hex::log::debug("Using romfs: '{}'", romfs::name());
auto splash = romfs::get("splash.png");
ImGui::Texture splashTexture = ImGui::Texture(reinterpret_cast<const ImU8 *>(splash.data()), splash.size());

View File

@ -1,6 +1,8 @@
#include <hex/plugin.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/helpers/logger.hpp>
#include <romfs/romfs.hpp>
#include <nlohmann/json.hpp>
@ -37,6 +39,7 @@ IMHEX_PLUGIN_SETUP("Built-in", "WerWolv", "Default ImHex functionality") {
using namespace hex::plugin::builtin;
hex::log::debug("Using romfs: '{}'", romfs::name());
for (auto &path : romfs::list("lang"))
hex::ContentRegistry::Language::addLocalization(nlohmann::json::parse(romfs::get(path).string()));

View File

@ -1,6 +1,7 @@
#include <hex/plugin.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/helpers/logger.hpp>
#include <romfs/romfs.hpp>
#include <nlohmann/json.hpp>
@ -57,6 +58,7 @@ static void checkBorderlessWindowOverride() {
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()));