mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 14:19:51 +00:00
Dont save dir. variables in project scripts ##projects
This commit is contained in:
parent
5cacea41f8
commit
41a21d33b2
@ -196,6 +196,19 @@ R_API void r_config_list(RConfig *cfg, const char *str, int rad) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'r':
|
||||
r_list_foreach (cfg->nodes, iter, node) {
|
||||
if (!str || (str && (!strncmp (str, node->name, len)))) {
|
||||
if (r_str_startswith (node->name, "bin.laddr")) {
|
||||
continue;
|
||||
}
|
||||
if (r_str_startswith (node->name, "dir.")) {
|
||||
continue;
|
||||
}
|
||||
config_print_node (cfg, node, "\"e ", "\"", verbose, json);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
r_list_foreach (cfg->nodes, iter, node) {
|
||||
if (!str || (str && (!strncmp (str, node->name, len)))) {
|
||||
@ -259,7 +272,7 @@ R_API void r_config_list(RConfig *cfg, const char *str, int rad) {
|
||||
break;
|
||||
case 'J':
|
||||
verbose = true;
|
||||
/* fallthrou */
|
||||
/* fallthrou */
|
||||
case 'j':
|
||||
isFirst = true;
|
||||
if (verbose) {
|
||||
|
@ -486,7 +486,7 @@ R_API bool r_core_project_save_script(RCore *core, const char *file, int opts) {
|
||||
// new behaviour to project load routine (see io maps below).
|
||||
if (opts & R_CORE_PRJ_EVAL) {
|
||||
r_str_write (fd, "# eval\n");
|
||||
r_config_list (core->config, NULL, true);
|
||||
r_config_list (core->config, NULL, 'r');
|
||||
r_cons_flush ();
|
||||
}
|
||||
r_core_cmd (core, "o*", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user