Re: minisphere 4.2.4
Reply #1380 –
Thanks, it crashes on Win10 too. And, well, this is embarassing. It crashes here:
source = sfs_fslurp(g_fs, filename, NULL, &source_size);
code_string = lstr_from_cp1252(source, source_size);
free(source);
source is NULL because main.js didn't make it into the dist (it's not mentioned in the Cellscript). This ultimately leads to a crash.
It should have given you an error that main.js didn't exist rather than crashing, I'll need to fix that.
edit: By the way, you don't need a game() function for Sphere v2, and in fact unless the engine is running in 1.x compatibility mode the function will be completely ignored. Sphere v2 should be written like you'd write a Node.js script.