diff options
Diffstat (limited to 'src/box64context.c')
| -rw-r--r-- | src/box64context.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/box64context.c b/src/box64context.c index b302b777..679ee108 100644 --- a/src/box64context.c +++ b/src/box64context.c @@ -21,6 +21,7 @@ #include "signals.h" #include "rcfile.h" #include "gltools.h" +#include "rbtree.h" EXPORTDYN void initAllHelpers(box64context_t* context) @@ -264,6 +265,10 @@ box64context_t *NewBox64Context(int argc) context->globdata = NewMapSymbols(); initAllHelpers(context); + + #ifdef DYNAREC + context->db_sizes = init_rbtree(); + #endif return context; } @@ -359,6 +364,11 @@ void FreeBox64Context(box64context_t** context) FreeMapSymbols(&ctx->globdata); +#ifdef DYNAREC + //dynarec_log(LOG_INFO, "BOX64 Dynarec at exit: Max DB=%d, righter=%d\n", ctx->max_db_size, rb_get_righter(ctx->db_sizes)); + delete_rbtree(ctx->db_sizes); +#endif + finiAllHelpers(ctx); #ifdef DYNAREC |