Fix asm. options lost after pdc issue

This commit is contained in:
pancake 2015-04-16 10:30:36 +02:00
parent 43dfbd9820
commit 153be0ce0a

View File

@ -15,6 +15,11 @@ R_API int r_core_pseudo_code (RCore *core, const char *input) {
int asmfcnlines = r_config_get_i (core->config, "asm.fcnlines");
int asmcomments = r_config_get_i (core->config, "asm.comments");
int asmfunctions = r_config_get_i (core->config, "asm.functions");
if (!fcn) {
eprintf ("Cannot find function in 0x%08"PFMT64x"\n",
core->offset);
return R_FALSE;
}
r_config_set_i (core->config, "asm.pseudo", 1);
r_config_set_i (core->config, "asm.decode", 0);
r_config_set_i (core->config, "asm.lines", 0);
@ -24,11 +29,6 @@ R_API int r_core_pseudo_code (RCore *core, const char *input) {
r_config_set_i (core->config, "asm.fcnlines", 0);
r_config_set_i (core->config, "asm.comments", 0);
r_config_set_i (core->config, "asm.functions", 0);
if (!fcn) {
eprintf ("Cannot find function in 0x%08"PFMT64x"\n",
core->offset);
return R_FALSE;
}
db = sdb_new0 ();