Hot Reload Gameplay Code
zylinski.se
zylinski.se
Was about to comment on this one, this only applies on Windows. So far as my experimentation with Hot Reloading with Odin on Linux went though, on linux that would work differently. It seemed as though there was some kind of reference counter on shared objects, so if your main exe didn't use raylib, it would also get yeeted when you unload the game and all of the state would reset.
So if you really want to make this work on both windows and linux, you'd insert
@require import "vendor:raylib"
_ :: raylib
In the main program and iirc you don't have to do anything else. Actually it was like a year ago the last time I did this, I don't remember what the issue was haha. Pretty sure I ran into a bug with GLFW thread locals but yea. no idea.This being manual sounds like a recipe for bugs. Can it not be automated?