mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 20:49:01 -04:00
remember the onload callback like we used too.
This commit is contained in:
parent
03d5e4852b
commit
f958d86616
@ -104,6 +104,7 @@ kore_module_load(const char *path, const char *onload, int type)
|
||||
TAILQ_INSERT_TAIL(&modules, module, list);
|
||||
|
||||
if (onload != NULL) {
|
||||
module->onload = kore_strdup(onload);
|
||||
module->ocb = kore_malloc(sizeof(*module->ocb));
|
||||
module->ocb->runtime = module->runtime;
|
||||
module->ocb->addr = module->fun->getsym(module, onload);
|
||||
|
Loading…
x
Reference in New Issue
Block a user