patterns: Updated pattern language

This commit is contained in:
WerWolv
2024-02-11 20:44:21 +01:00
parent 0aae605ac4
commit 27a78a00fd
2 changed files with 4 additions and 2 deletions

View File

@@ -96,10 +96,12 @@ namespace hex::plugin::diffing {
m_diffTask = TaskManager::createTask("Diffing...", commonSize, [this, providerA, providerB](Task &) {
auto differences = m_algorithm->analyze(providerA, providerB);
auto providers = ImHexApi::Provider::getProviders();
// Move the calculated differences over so they can be displayed
for (size_t i = 0; i < m_columns.size(); i++) {
auto &column = m_columns[i];
auto &provider = ImHexApi::Provider::getProviders()[column.provider];
auto &provider = providers[column.provider];
column.differences = differences[i].overlapping({ provider->getBaseAddress(), provider->getBaseAddress() + provider->getActualSize() });
std::ranges::sort(