1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Mark plugins that errored in main as started (#17207)

This is to make sure plugin still runs stop / clean up code before it is unloaded. Otherwise context menu items etc. are not removed.
This commit is contained in:
Ted John
2022-05-14 15:44:35 +01:00
committed by GitHub
parent 16585ecaf2
commit 3acec45f97

View File

@@ -97,7 +97,6 @@ void Plugin::Start()
{
auto val = std::string(duk_safe_to_string(_context, -1));
duk_pop(_context);
_hasStarted = false;
throw std::runtime_error("[" + _metadata.Name + "] " + val);
}
duk_pop(_context);