Scripting: Make mScriptContextLoad run the script too

This commit is contained in:
Vicki Pfau 2025-01-02 01:43:21 -08:00
parent fe37fa2ab2
commit ef6659d587
1 changed files with 4 additions and 1 deletions

View File

@ -421,7 +421,10 @@ bool mScriptContextLoadVF(struct mScriptContext* context, const char* name, stru
if (!info.context) {
return false;
}
return info.context->load(info.context, name, vf);
if (!info.context->load(info.context, name, vf)) {
return false;
}
return info.context->run(info.context);
}
#ifdef ENABLE_VFS