> The answer is that the Raylib DLL is implicitly pulled in by game.dll, but unloading game.dll does not unload the implicitly pulled in Raylib DLL<p>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.<p>So if you really want to make this work on both windows and linux, you'd insert<p><pre><code> @require import "vendor:raylib"
_ :: raylib
</code></pre>
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.