mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fixes for the previous commit
This commit is contained in:
parent
86760900b1
commit
360280a9b2
@ -51,7 +51,7 @@ R_API char *r_cons_hud_string(const char *s, const bool usecolor) {
|
||||
entry. If all words are present, the function returns true.
|
||||
The mask is a character buffer wich is filled by 'x' to mark those characters
|
||||
that match the filter */
|
||||
static bool *strmatch(char *entry, char *filter, char* mask, const int mask_size) {
|
||||
static bool strmatch(char *entry, char *filter, char* mask, const int mask_size) {
|
||||
char *p, *current_token = filter;
|
||||
const char *next_match;
|
||||
int token_len, i;
|
||||
|
@ -143,17 +143,18 @@ static int zoom = 0;
|
||||
R_API int r_core_visual_hud(RCore *core) {
|
||||
const char *c = r_config_get (core->config, "hud.path");
|
||||
const char *f = R2_LIBDIR"/radare2/"R2_VERSION"/hud/main";
|
||||
int use_color = core->print->flags & R_PRINT_FLAGS_COLOR;
|
||||
char *homehud = r_str_home (R2_HOMEDIR"/hud");
|
||||
char *res = NULL;
|
||||
char *p = 0;
|
||||
|
||||
showcursor (core, true);
|
||||
if (c && *c && r_file_exists (c))
|
||||
res = r_cons_hud_file (c, r_config_get_i (core->config, "scr.color"));
|
||||
res = r_cons_hud_file (c, use_color);
|
||||
if (!res && homehud)
|
||||
res = r_cons_hud_file (homehud, r_config_get_i (core->config, "scr.color"));
|
||||
res = r_cons_hud_file (homehud, use_color);
|
||||
if (!res && r_file_exists (f))
|
||||
res = r_cons_hud_file (f, r_config_get_i (core->config, "scr.color"));
|
||||
res = r_cons_hud_file (f, use_color);
|
||||
if (!res)
|
||||
r_cons_message ("Cannot find hud file");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user