Mercurial > repos > blastem
diff menu.c @ 1326:071e761bcdcf
Fix a deficiency in the way types were handled in my ternary tree. Fixes in which some paths that were constructed from a template with variables would sometimes get an extra garbage character thrown in
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 21 Apr 2017 23:35:32 -0700 |
parents | 72ea3885e7b5 |
children | e6efe6b2aee9 |
line wrap: on
line diff
--- a/menu.c Fri Apr 21 01:22:52 2017 -0700 +++ b/menu.c Fri Apr 21 23:35:32 2017 -0700 @@ -166,7 +166,7 @@ menu_context *menu = gen->extra; if (!menu) { gen->extra = menu = calloc(1, sizeof(menu_context)); - menu->curpath = tern_find_path(config, "ui\0initial_path\0").ptrval; + menu->curpath = tern_find_path(config, "ui\0initial_path\0", TVAL_PTR).ptrval; if (!menu->curpath){ #ifdef __ANDROID__ menu->curpath = get_external_storage_path();