diff options
Diffstat (limited to 'src/ug.c')
-rw-r--r-- | src/ug.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -377,12 +377,21 @@ UG_API int ug_disable_effect(ui_gadget_h ug) UG_API int ug_is_installed(const char *name) { + int ret = 1; + char *ug_file_path = NULL; + if (name == NULL) { _ERR("name is null"); return -1; } - return ug_exist(name); + if (!ug_module_get_file_path(name, &ug_file_path)) + ret = 0; + + if (ug_file_path) + free(ug_file_path); + + return ret; } #ifdef ENABLE_UG_CREATE_CB |