mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Move visualizer drawer to correct library
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <hex/ui/view.hpp>
|
||||
#include <hex/ui/visualizer_drawer.hpp>
|
||||
#include <ui/visualizer_drawer.hpp>
|
||||
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/task_manager.hpp>
|
||||
|
||||
#include <wolv/io/file.hpp>
|
||||
|
||||
#include <bit>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "content/views/view_data_inspector.hpp"
|
||||
#include "ui/pattern_drawer.hpp"
|
||||
|
||||
#include <hex/api/achievement_manager.hpp>
|
||||
#include <hex/providers/provider.hpp>
|
||||
@@ -8,8 +7,8 @@
|
||||
|
||||
#include <fonts/codicons_font.h>
|
||||
#include <hex/ui/imgui_imhex_extensions.h>
|
||||
#include <hex/ui/visualizer_drawer.hpp>
|
||||
|
||||
#include <ui/pattern_drawer.hpp>
|
||||
#include <ui/visualizer_drawer.hpp>
|
||||
|
||||
#include <pl/pattern_language.hpp>
|
||||
#include <pl/patterns/pattern.hpp>
|
||||
@@ -183,10 +182,9 @@ namespace hex::plugin::builtin {
|
||||
continue;
|
||||
|
||||
// Set up the editing function if a write formatter is available
|
||||
auto formatWriteFunction = pattern->getWriteFormatterFunction();
|
||||
std::optional<ContentRegistry::DataInspector::impl::EditingFunction> editingFunction;
|
||||
if (!formatWriteFunction.empty()) {
|
||||
editingFunction = [formatWriteFunction, &pattern](const std::string &value,
|
||||
if (!pattern->getWriteFormatterFunction().empty()) {
|
||||
editingFunction = [&pattern](const std::string &value,
|
||||
std::endian) -> std::vector<u8> {
|
||||
try {
|
||||
pattern->setValue(value);
|
||||
|
||||
Reference in New Issue
Block a user