mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
feat: Implement Myers' diffing algorithm (#1508)
This commit is contained in:
27
plugins/diffing/source/plugin_diffing.cpp
Normal file
27
plugins/diffing/source/plugin_diffing.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <hex/plugin.hpp>
|
||||
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include <romfs/romfs.hpp>
|
||||
|
||||
#include "content/views/view_diff.hpp"
|
||||
|
||||
|
||||
namespace hex::plugin::diffing {
|
||||
|
||||
void registerDiffingAlgorithms();
|
||||
|
||||
}
|
||||
|
||||
using namespace hex;
|
||||
using namespace hex::plugin::diffing;
|
||||
|
||||
IMHEX_PLUGIN_SETUP("Diffing", "WerWolv", "Support for diffing data") {
|
||||
hex::log::debug("Using romfs: '{}'", romfs::name());
|
||||
|
||||
registerDiffingAlgorithms();
|
||||
|
||||
ContentRegistry::Views::add<ViewDiff>();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user