mirror of https://github.com/mgba-emu/mgba.git
Scripting: Make mScriptContextLoad run the script too
This commit is contained in:
parent
fe37fa2ab2
commit
ef6659d587
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue