There was a crash that happened if you tried to re-start the game from the editor on macOS with the game already running. In that case, Defold reused the process but the NSWindow handle changed and the old one kept by init_window() was invalid, causing crashes. I fixed it by getting the handle to the window in InitializeDefos().
I also enforced indentation consistency because it tickled my OCD. 😄
There was a crash that happened if you tried to re-start the game from the editor on macOS with the game already running. In that case, Defold reused the process but the
NSWindow
handle changed and the old one kept byinit_window()
was invalid, causing crashes. I fixed it by getting the handle to the window inInitializeDefos()
.I also enforced indentation consistency because it tickled my OCD. 😄