3 ms·
Plugin systems in a lot of software effectively are just dll/so files loaded at runtime, you could even enable reloading them at runtime. Usually you would wan
by jpc0 3y ago
Plugin systems in a lot of software effectively are just dll/so files loaded at runtime, you could even enable reloading them at runtime.
Usually you would want to hot reload the code sections though and allow the application to change the data section which is significantly more intuitive than changing source code to change data.
Edit:
On that note most game engines serialise state to disk, pretty sure it would be easy to just read the state from like a yaml file and update the state if you really don't want to write an interface.
TLDR:
There are significantly easier solutions to "how do I update the value of a variable at runtime" than hooking into the running process and changing the variable in memory.
- cxr 3y ago... what? Why is this posted as a reply to my question for examples?
- jpc0 3y agoThese are examples
- deleted 3y ago[deleted]
- cxr 3y agoThere are zero examples named in your comment, and your TLDR ("hooking into the running process and changing the variable") has no relevance to either the question you're ostensibly responding to ("Can you point to examples") or the subject of the blog post I originally mentioned ("a TWEAK macro to do this at the source level"). It's a baffling reply all-around.