mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Loading data processor nodes from project thowing errors (#1065)
This will correct the errors `cannot use operator[] with a string argument with string[..]` when loading a project
This commit is contained in:
@@ -322,9 +322,9 @@ namespace hex::plugin::builtin {
|
||||
.basePath = "data_processor.json",
|
||||
.required = false,
|
||||
.load = [this](prv::Provider *provider, const std::fs::path &basePath, Tar &tar) {
|
||||
auto save = tar.readString(basePath);
|
||||
std::string save = tar.readString(basePath);
|
||||
|
||||
ViewDataProcessor::loadNodes(this->m_mainWorkspace.get(provider), save);
|
||||
ViewDataProcessor::loadNodes(this->m_mainWorkspace.get(provider), nlohmann::json::parse(save));
|
||||
this->m_updateNodePositions = true;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user