Dont save dir. variables in project scripts ##projects

This commit is contained in:
pancake 2022-05-04 12:34:43 +02:00 committed by pancake
parent 5cacea41f8
commit 41a21d33b2
2 changed files with 15 additions and 2 deletions

View File

@ -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) {

View File

@ -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);