Read configuration values from hexrays.cfg (and ida.cfg)

I have found

ida_hexrays.change_hexrays_config()

which can set values but I want to read them instead so I was hoping to find something in the style of:

ida_hexrays.read_hexrays_config()
ida_hexrays.get_hexrays_config()

or that the change_hexrays_config() would return the value it was before it changed it but I cannot find anything like that.

What I am really trying to do: I’m running decompile_many() but since I have set COLLAPSE_LVARS = YES in my hexrays.cfg (I want it that way when I do manually work) the decompiled C file have no local variables. I can fix this by setting the COLLAPSE_LVARS = NO but I want to set that variable back to whatever it was set to before I started the decompile_many()

Hello Harding,
Let me ask my colleagues if anybody has a potential solution for you. We’ll keep you posted.

Hello again,
Currently, it looks like we don’t have an out-of-the-box solution for it. However, we noticed this situation in the ticket for future improvements, so chances are high we get back with positive news soon.

1 Like