mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Merge in script loader structure improvements from python branch
This commit is contained in:
@@ -184,7 +184,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
const auto& error = m_runtime.getError();
|
||||
const auto& error = m_runtime.getEvalError();
|
||||
|
||||
log::error("Failed to execute custom inspector file '{}'!", wolv::util::toUTF8String(filePath));
|
||||
if (error.has_value())
|
||||
|
||||
@@ -1662,7 +1662,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
m_lastEvaluationResult = runtime.executeString(code, pl::api::Source::DefaultSource, envVars, inVariables);
|
||||
if (!m_lastEvaluationResult) {
|
||||
*m_lastEvaluationError = runtime.getError();
|
||||
*m_lastEvaluationError = runtime.getEvalError();
|
||||
*m_lastCompileError = runtime.getCompileErrors();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user