mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
build: Refactor ContentRegistry into multiple separate files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/content_registry/settings.hpp>
|
||||
|
||||
#include <hex/helpers/fmt.hpp>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/content_registry/settings.hpp>
|
||||
#include <hex/api/content_registry/user_interface.hpp>
|
||||
|
||||
#include <hex/helpers/utils.hpp>
|
||||
|
||||
@@ -19,7 +20,7 @@ namespace hex::plugin::windows {
|
||||
showResourceUsage = value.get<bool>(false);
|
||||
});
|
||||
|
||||
ContentRegistry::Interface::addFooterItem([] {
|
||||
ContentRegistry::UserInterface::addFooterItem([] {
|
||||
if (!showResourceUsage)
|
||||
return;
|
||||
|
||||
@@ -72,7 +73,7 @@ namespace hex::plugin::windows {
|
||||
ImGuiExt::TextFormatted(ICON_VS_DASHBOARD " {0:2}.{1:02}%", u32(cpuUsage), u32(cpuUsage * 100) % 100);
|
||||
});
|
||||
|
||||
ContentRegistry::Interface::addFooterItem([] {
|
||||
ContentRegistry::UserInterface::addFooterItem([] {
|
||||
if (!showResourceUsage)
|
||||
return;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include <hex/plugin.hpp>
|
||||
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/content_registry/settings.hpp>
|
||||
#include <hex/api/content_registry/views.hpp>
|
||||
#include <hex/api/theme_manager.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
#include <hex/api/events/events_gui.hpp>
|
||||
|
||||
Reference in New Issue
Block a user