impr: Merge in script loader structure improvements from python branch

This commit is contained in:
WerWolv
2024-05-17 21:01:35 +02:00
parent 663b99ed64
commit f6953fd829
20 changed files with 130 additions and 80 deletions

View File

@@ -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())

View File

@@ -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();
}