Adds support for modifying volatile scripts after adding them.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-03-27 22:19:18 +01:00
parent 5cfa174396
commit e361507ec9
7 changed files with 91 additions and 14 deletions

View File

@@ -32,7 +32,10 @@ static void TranslateException(asIScriptContext* ctx, void* /*userParam*/) {
try {
// Retrow the original exception so we can catch it again
throw;
} catch (std::exception& e) {
} catch (ArbUt::Exception& e) {
// Tell the VM the type of exception that occurred
ctx->SetException(e.what());
}catch (std::exception& e) {
// Tell the VM the type of exception that occurred
ctx->SetException(e.what());
} catch (...) {