RATools icon indicating copy to clipboard operation
RATools copied to clipboard

[Feature Request] `prev()` applied to functions should apply `prev()` to all memory accessors inside

Open authorblues opened this issue 2 months ago • 0 comments

I feel like there might be a good reason why this doesn't exist, either not possible or produces undesirable results.

Given a function like this:

function paused() => dword_be(0x16F08C)

then

prev(paused())

works as intended.

However, a function like this:

function paused() => dword_be(0x16F08C) == 1

then

prev(paused())

just gives a generic accessor: Cannot convert requirement to memory accessor error.

It should just wrap the memory accessors within the predicate in prev(...). This could work with more complex functions that have more memory accessors, wrapping them all in prev(...). This would be helpful for me, but maybe there is a good reason why such a feature doesn't exist.

authorblues avatar Apr 04 '24 14:04 authorblues