Skip to content

Comments

Drop explicit setup calls#72

Open
erdnaxe wants to merge 1 commit intoLedger-Donjon:masterfrom
erdnaxe:remove_setup
Open

Drop explicit setup calls#72
erdnaxe wants to merge 1 commit intoLedger-Donjon:masterfrom
erdnaxe:remove_setup

Conversation

@erdnaxe
Copy link
Contributor

@erdnaxe erdnaxe commented Aug 28, 2025

Rainbow currently requires to explicitly call setup() method to setup Unicorn-Engine hooks.
Because of current design, it is impossible to cleanly change hooking configuration between two emulator run.

This patch proposes to keep track of all engine hooks registered, and to remove/update them accordingly to chosen configuration. For example it is possible to start emulation, update print_config, then start emulation again with updated configuration.

Because the hooking setup function can now be called multiple times without creating duplicated hooks, I propose to remove the explicit call to the setup() method, making Rainbow a bit easier to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant