mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
sys: Updated more code to libwolv
This commit is contained in:
@@ -316,8 +316,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
if (drawDefaultTextEditingTextBox(address, this->m_inputBuffer, ImGuiInputTextFlags_None)) {
|
||||
hex::trim(this->m_inputBuffer);
|
||||
if (auto result = hex::parseBinaryString(this->m_inputBuffer); result.has_value()) {
|
||||
if (auto result = hex::parseBinaryString(wolv::util::trim(this->m_inputBuffer)); result.has_value()) {
|
||||
*data = result.value();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -294,9 +294,8 @@ namespace hex::plugin::builtin {
|
||||
if (yr_compiler_add_file(compiler, file.getHandle(), nullptr, nullptr) != 0) {
|
||||
std::string errorMessage(0xFFFF, '\x00');
|
||||
yr_compiler_get_error_message(compiler, errorMessage.data(), errorMessage.size());
|
||||
hex::trim(errorMessage);
|
||||
|
||||
TaskManager::doLater([this, errorMessage] {
|
||||
TaskManager::doLater([this, errorMessage = wolv::util::trim(errorMessage)] {
|
||||
this->clearResult();
|
||||
|
||||
this->m_consoleMessages.push_back("Error: " + errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user